Date: Wed, 22 Jun 94 11:37:11 EDT From: chris AT ralph DOT databasepub DOT com (Chris Lafleur) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Malloc problem I want to test if djgpp can malloc 128+ meg of space but I get the following error message when I malloc 24 megs : General Protection Fault at eip=1256 Call frame traceback EIPs: 0x00001256 When I malloc more than 24 megs my pc reboots. I have included code my the test program, my autoexec.bat, and the makefile. My pc has a STB Horizon Vesa video card, 8 megs of memory, 106 meg of free disk space, a 3 com 16bit etherlink III card using PCI networking software. I tried running the program without PCI loaded and had the same problem. The problem I can see is that I don't have a driver for the STB card. Is this the problem or did I miss something in the documentation ? thanks, chris lafleur my_malloc.c code ********************* size_int=atoi(argv[1]); meg_size=1024*1024; size_of_malloc=(size_int * meg_size); printf ("Size to malloc %d\n", size_int); ptr_buffera=malloc(size_of_malloc); ptr_bufferb=malloc(size_of_malloc); for (i;i