Hi Hailstone,
Thanks for the reply. That "glist.ini" was a typo in my earlier message. The file on my machine is glest.ini as well.
In terms of what line of code is causing the error, I did the following. In the first line of glestMain, I added the following line of code:
char *c = (char *) malloc(4);
This line of code causes malloc to terminate the program with error code 255. I looked at the assembly code in malloc and here's what it looks like:
01699C9B mov edi,edi
01699C9D push ebp
01699C9E mov ebp,esp
01699CA0 push esi
01699CA1 mov esi,dword ptr [size]
01699CA4 cmp esi,0FFFFFFE0h
01699CA7 ja malloc+0B3h (1699D4Eh)
01699CAD push ebx
01699CAE push edi
01699CAF mov edi,dword ptr [__imp__HeapAlloc@12 (1918A20h)]
01699CB5 cmp dword ptr [__crtheap (19156B8h)],0
01699CBC jne malloc+3Bh (1699CD6h)
01699CBE call @ILT+86470(__FF_MSGBANNER) (14D91CBh)
01699CC3 push 1Eh
01699CC5 call @ILT+13195(__NMSG_WRITE) (14C7390h)
01699CCA push 0FFh
01699CCF call @ILT+35970(___crtExitProcess) (14CCC87h)
01699CD4 pop ecx
01699CD5 pop ecx
01699CD6 mov eax,dword ptr [___active_heap (1915F08h)]
It looks like the following test is failing in my excutable, causing the code the fall through to the ___crtExitProcess
01699CAF mov edi,dword ptr [__imp__HeapAlloc@12 (1918A20h)]
01699CB5 cmp dword ptr [__crtheap (19156B8h)],0
01699CBC jne malloc+3Bh (1699CD6h)
Any ideas why it would fail?
Thanks,
-Wily