Hello all,
I was just wondering why HeapSize returns (-1/FFFFFFFF). This indicates
that the function failed but I can't figure out why?
Thanks for any help!
------------------
Cheers
I was just wondering why HeapSize returns (-1/FFFFFFFF). This indicates
that the function failed but I can't figure out why?
Code:
#compile exe #include "win32api.inc" function pbmain as long dim lookup as long ptr dim lsize as long lookup = HeapAlloc(GetProcessHeap,%HEAP_GENERATE_EXCEPTIONS,1024) lsize = HeapSize(GetProcessHeap,0,lookup) msgbox format$(GetProcessHeap) msgbox format$(lookup) & $CRLF & hex$(lsize) lookup = HeapFree(GetProcessHeap,0,lookup) lsize = HeapSize(GetProcessHeap,0,lookup) msgbox format$(lookup) & $CRLF & hex$(lsize) end function
------------------
Cheers
Comment