Coder's Guild Mailing List

Re: Memory Writing Problem

Posted by Kspansel@xxx.xxx on 1999-05-02

In a message dated 5/1/99 11:26:11 PM Pacific Daylight Time, 
jletterman@xxxxxxxxxx.xxx writes:

> First, for what platform are you writing the code, 16 or 32 bit?
>  
>  Secondly, what is your method for allocating the memory?
>  

16bit DOS with borland c++ 4.52, if it matters which compiler I have.  
Anyway.  I just allocate memory like this:

char *Buffer;

Buffer = new char [100];
//...do something with buffer;
delete Buffer;

I can't explain it.  Do I need to change my memory model?  It's on large.  I 
not sure..Thanks tho.

Kory