From: DBI To: "'jesus AT matrust DOT es'" Cc: "'djgpp AT delorie DOT com'" Subject: RE:malloc crash Date: Wed, 10 Apr 96 15:55:00 PDT Message-ID: <316C3C7C@macduff.ficsgrp.com> Encoding: 22 TEXT, 49 UUENCODE I've tried the following program to test the malloc crash and I can conclude: It crashes under CWSDPMI but not under Windows 95. I also noticed that it's on the moment that a malloc fails (or in the next malloc?) that this crash occurs. BTW : I did this test under CWSDPMI Beta 9, not the final release (I'll check that later), so maybe there is no problem? #include void main() { int i; void *ptr; for (i = 0; i < 5000; i++) { ptr = (void *)malloc (10000); printf ("%d:%d\n", i, (ptr==NULL)); } } Dominique Biesmans (sorry for the winmail.dat crap that follows , it's because of our mail server) The following binary file has been uuencoded to ensure successful transmission. Use UUDECODE to extract. begin 600 WINMAIL.DAT M>)\^(BX-`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<` M&````$E032Y-:6-R;W-O9G0 AT 36%I;"Y.;W1E`#$(`0V`!``"`````@`"``$$ M@`$`$````%)%.FUA;&QO8R!C``,P`0```!(` M``!D:F=P<$!D96QOL"@P!0`O()`@!C:`K`0!4`:$A,`P!IQ M8R`%`&%S:'8@`'`9\$D:1GR)X$;HQ]<0A'`))"\ M DOT 2P AT 8QH3"X`'0"`6$.QL91S`&9`H&6`:@-S$K*R;P,[HT037!E3;Q*#5D*1PU*#$WH;PP*33( M.0(%$`(P9B5P$"(E9#H\4%Q<;BHB*S!I*S`H-<$]/:!.54Q,*3KI7!3:#&A(:H3-1V&PN9"+A M'*%P(K0:5%\$(#SA(R(NH!U@=2R!;]\\$`AA,T(#(!&P 1`#T``0````0```!213H`>@,` ` end