Mirko
June 2nd, 1998, 11:38 AM
Hi to All!
We have problem concerning operator new in MFC application: If we use it in the main thread it correctly throws exception CMemoryException (if not enough mem available). But if we use it in a secondary thread, it simply returns zero.
The second thread will be created inside a MFC DLL.
When trace step by step we see that a variable called m_pfnNewHandler should point to a function which would call AfxThrowMemoryException. But this pointer is zero or 0xFFFFFFFF.
Does anyone know this problem or any solution?
Thanx, Mirko
We have problem concerning operator new in MFC application: If we use it in the main thread it correctly throws exception CMemoryException (if not enough mem available). But if we use it in a secondary thread, it simply returns zero.
The second thread will be created inside a MFC DLL.
When trace step by step we see that a variable called m_pfnNewHandler should point to a function which would call AfxThrowMemoryException. But this pointer is zero or 0xFFFFFFFF.
Does anyone know this problem or any solution?
Thanx, Mirko