Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

0xC0000005 access violation

Status
Not open for further replies.

JackMorris

Technical User
Jan 30, 2003
18
IE
My program crashes at this point. does anyone has any idea what could be the probable reasons. (these codes are generated by Microsoft visual C++)

============================================================

offRegion = (unsigned int)pvAlloc - (unsigned int)pHeader->pHeapData;
indGroup = offRegion / BYTES_PER_GROUP;
pGroup = &pRegion->grpHeadList[indGroup];

// get size of entry - decrement value since entry is allocated
pEntry = (PENTRY)((char *)pvAlloc - sizeof(int));
sizeEntry = pEntry->sizeFront - 1;

// point to next entry to get its size
pNext = (PENTRY)((char *)pEntry + sizeEntry);
sizeNext = pNext->sizeFront;
 
>> (these codes are generated by Microsoft visual C++)

How did you get VC++ to generate the code for you?

-pete
 
You have an array with no member which you try to access...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top