Weird error in Release Mode, posting messages
Sorry about my english, I know it doens't very well. Now I will try to explain my problem.
In a Dll, I have defined three user-message types as follow:
---
#define WM_SIMULATION_END (WM_USER + 0x0F0)
#define WM_SIMULATION_ERROR (WM_USER + 0x0F1)
#define WM_THREAD_READY (WM_USER + 0x0F2)
#define WM_INFORM (WM_USER + 0x0F3)
---
When I try to post some of this messages at the window parent (Used PostMessage Function SDK), in Debug mode, all the functionality works correctly, but in Release mode, The Application shows an Exception Error. GetLastError function returns 183. This error means that "A File Exists cannot be created" .(It doesn't mean anything because I don't work with files).
If I debug this Exception Error, the Debugger drives me to the next code lines: (Windows Code)
---
void* CMapPtrToPtr::GetValueAt(void* key) const
// find value (or return NULL -- NULL values not different as a result)
{
if (m_pHashTable == NULL)
return NULL;
UINT nHash = HashKey(key) % m_nHashTableSize;
// see if it exists
CAssoc* pAssoc;
for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
if (pAssoc->key == key)
return pAssoc->value;
}
return NULL;
}
---
What is the meaning of that?
Can you help me??
Thanks for all
Regards
David

