I am having problems with my PB made program causing a
Kernel32 crash in the RtlFreeHeap function.
I am not using any API functions or DDT. I am using pointers.
I think it is a corrupt heap.
What PB functions/statements misuse/errors could cause
a corrupt heap?
Bad Pointers? Redim?
Is the heap shared by all other programs running on the system?
I.E. could another program cause the heap corruption that is
crashing my program? This is an intermittant NT only problem,
Windows 98 does not crash.
------------------
Kernel32 crash in the RtlFreeHeap function.
I am not using any API functions or DDT. I am using pointers.
I think it is a corrupt heap.
What PB functions/statements misuse/errors could cause
a corrupt heap?
Bad Pointers? Redim?
Is the heap shared by all other programs running on the system?
I.E. could another program cause the heap corruption that is
crashing my program? This is an intermittant NT only problem,
Windows 98 does not crash.
Code:
function: RtlFreeHeap 77f64c69 85db test ebx,ebx 77f64c6b 0f85a1000000 jne RtlFreeHeap+0x1ec (77f64d12) 77f64c71 ffb6b8040000 push dword ptr [esi+0x4b8] ds:001404b8=00140548 77f64c77 e864280000 call RtlLeaveCriticalSection (77f674e0) 77f64c7c e991000000 jmp RtlFreeHeap+0x1ec (77f64d12) 77f64c81 83ef18 sub edi,0x18 77f64c84 85db test ebx,ebx 77f64c86 897df8 mov [ebp-0x8],edi ss:0104e3e6=???????? 77f64c89 8b0f mov ecx,[edi] ds:0023dfb0=7effffff 77f64c8b 8b4704 mov eax,[edi+0x4] ds:0115c9b6=???????? FAULT ->77f64c8e 8908 mov [eax],ecx ds:7dfffff7=???????? 77f64c90 894104 mov [ecx+0x4],eax ds:7ff1ea05=???????? 77f64c93 750b jnz RtlFreeHeap+0x17a (77f64ca0) 77f64c95 ffb6b8040000 push dword ptr [esi+0x4b8] ds:001404b8=00140548 77f64c9b e840280000 call RtlLeaveCriticalSection (77f674e0) 77f64ca0 6800800000 push 0x8000 77f64ca5 8d45fc lea eax,[ebp-0x4] ss:0104e3e6=???????? 77f64ca8 50 push eax 77f64ca9 8d4df8 lea ecx,[ebp-0x8] ss:0104e3e6=???????? 77f64cac c745fc00000000 mov dword ptr [ebp-0x4],0x0 ss:0104e3e6=???????? 77f64cb3 51 push ecx 77f64cb4 6aff push 0xff eax=7dfffff7 ebx=00000000 ecx=7effffff edx=00140548 esi=00140000 edi=0023dfb0 eip=77f64c8e esp=0012f9c8 ebp=0012f9e0 iopl=0 nv up ei pl zr na po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246 *----> Stack Back Trace <----* FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0012f9e0 77f11eb0 00140000 00000000 0023dfd0 00000000 ntdll!RtlFreeHeap 0012fa24 0026eef6 0023dfd0 0026e562 00275484 00000000 kernel32!GlobalFree
------------------
Comment