I get a big crash (it close Purebasic , sometimes i have a black screen etc.) with allocateMemory fonction, a wrinting error.
I read deeply the blog issue on heap corruption and step by step i found the problem wich it comes from ma bad coding way
The error is "AllocateMemory heap corrupted"
Just for explanation, i done this. I used a temporary pointer and an another pointer
Code: Select all
Protected *lpIR.IconResource_Groupe
Protected *lpIR_temp.IconImageCode: Select all
*lpIR = AllocateMemory(SizeOf(ICONRESOURCE) + ((*lpIcon\idCount-1)*SizeOf(ICONIMAGE)))
*lpIR_temp = @*lpIR\IconImagesCode: Select all
*lpIR_temp\dwNumBytes = SizeofResource_(hLibrary, hIconInfo)I change SizeofResource_(hLibrary, hIconInfo) by value 100 and it's the same crash, so the problem comes with my pointer... and the way i use it
