Mail Archives: djgpp/1996/04/29/23:32:28
Reply to message 4262283 from SOLYOM AT EIK DOT BM on 04/29/96 7:05PM
[snip]
>So my question really is this: What are the differences between the compilers
>in V1.12
>and in V2 that can cause different behaviour with the same source? When can I
>expect a
>corrected CWSDPMI, with which I can allocate and deallocate as many times I
>like?
As I understand it, CWSDPMI maintains a limit of about 1K malloc'd regions
of memory simultaneously. Ask Charles Sandmann for details on this.
However, your problem may be simply solved by just allocating a couple
of huge chunks of memory at once and breaking them up into individual
portions for each object you create. If you need 150MB, grab 15 10MB regions,
or 150 1MB regions. This will also probably improve your program's
performance, since calls to malloc() are slow. A program I am working
on has just such an allocation mechanism - I'll give you samples if you want.
John
- Raw text -