Unhandled exception at 0x7822119c (mfc80d.dll) in Audio.exe: 0xC0000005: Access violation reading location 0xcdcdcdd9
-
Hi, i am repeatedly getting this error in afxcoll.inl file and the cursor is stopping at the above piece of code in the above file. AFXCOLL_INLINE INT_PTR CPtrArray::Add(void* newElement) { INT_PTR nIndex = m_nSize; SetAtGrow(nIndex, newElement); return nIndex; } Further in my .cpp file i am writing the following code when this error occurs: Collect->m_Tracks.GetAt(i)->fOrder->m_FilesArray.Add(objUnitFile); I am really at loss figuring out how to solve this error. Thanks and Regards
-
Hi, i am repeatedly getting this error in afxcoll.inl file and the cursor is stopping at the above piece of code in the above file. AFXCOLL_INLINE INT_PTR CPtrArray::Add(void* newElement) { INT_PTR nIndex = m_nSize; SetAtGrow(nIndex, newElement); return nIndex; } Further in my .cpp file i am writing the following code when this error occurs: Collect->m_Tracks.GetAt(i)->fOrder->m_FilesArray.Add(objUnitFile); I am really at loss figuring out how to solve this error. Thanks and Regards
Then placea breakpoint on that line of code, look in your debug 'auto' window and check which one of those pointers is equal to 0xCDCDCDCD, then think to yourself, why isn't initialized?
Waldermort
-
Hi, i am repeatedly getting this error in afxcoll.inl file and the cursor is stopping at the above piece of code in the above file. AFXCOLL_INLINE INT_PTR CPtrArray::Add(void* newElement) { INT_PTR nIndex = m_nSize; SetAtGrow(nIndex, newElement); return nIndex; } Further in my .cpp file i am writing the following code when this error occurs: Collect->m_Tracks.GetAt(i)->fOrder->m_FilesArray.Add(objUnitFile); I am really at loss figuring out how to solve this error. Thanks and Regards
Does Collect is valid?