I am porting our application to WM5.0 and everything is compiling properly now however when proceed to launch the debug version of the app I get a number of assertions starting with Appcore line 439 which is the constructor of CWinApp and asserts with a ASSERT(AfxGetThread() == NULL). In tracing through it seems to run through the CWinApp constructor fine about 3 times for dependent DLL's but after the 3rd time it issues this assert.
This app runs fine in previous versions of Windows Mobile so I'm not sure why WM5.0 would cause this to behave differently.