Hello.
I encountered exception ( dbgheap.c at line 1322, Expression: _CrtIsValidHeapPointer(pUserData) ) this error when debuging it pops up after this function, (Guessing some object is deleting and is causing issue)
void Inventory::PickUpItem(int vecPos, en::PosInvQS place1)
{
std::cout<<"PickUpFunc"<<std::endl;
std::auto_ptr<Item> APtempI;
if(place1 == en::PosInvQS::Inventory) APtempI.reset(&itemInventoryList[vecPos]);
else if(place1 == en::PosInvQS::QuickSlot) APtempI.reset(&itemQuickslotList[vecPos]);
else std::cout<<"Error at Picking up item"<<std::endl;
manipulatedItemInvPos = APtempI->position;//save position
APtempI->position = en::ItemPosition::mouse; //set new position
manipulatedItemVecPos = vecPos;//save vectorID
isItemPickedUp = true; // There is a item being manipulated
manipulatedItemPosInvQS = place1;
}
Any suggestions or what should i do to get this error fixed would be greatly appreciated!
Also is there a way to make a "drop down box" i mean that i can put a 1k char code here without making the post visible until user clicks "show" or "open"...
If you require complete code i am willing to post it, just let me know.