In order to migrate my app to pocketpc 2003 from pocketpc 2002, I created a
new project, added files, and moved all settings. The code built fine.
However crashes as soon as it is run. It asserts at line 87 of appcore.cpp:
ASSERT(AfxGetThread() == NULL);
My exe uses couple of .dlls. exe and dll use MFC in a shared dll, and I am
not linking with any static lib.

What could be going wrong here?
Thanks

Re: appcore by Mobile

Mobile
Mon Jan 05 14:44:46 CST 2004

Do you create any new threads at initialization? If so, you need to be sure
that your main application object is created (and constructed) from the main
thread, before any other threads are created.

This assertion is firing because, during the application object's creation,
it thinks it's seeing another thread that has already created an application
object. Check the call stack at the assertion, and make sure it's being
called from your main thread.

Hope that helps.

--
Jon Vincent
Software Development Engineer
Mobile Devices Product Group
This posting is provided "AS IS" with no warranties, and confers no rights.


"zombie" <zombie@nospam.com> wrote in message
news:exf2C4V0DHA.1916@TK2MSFTNGP10.phx.gbl...
> In order to migrate my app to pocketpc 2003 from pocketpc 2002, I created
a
> new project, added files, and moved all settings. The code built fine.
> However crashes as soon as it is run. It asserts at line 87 of
appcore.cpp:
> ASSERT(AfxGetThread() == NULL);
> My exe uses couple of .dlls. exe and dll use MFC in a shared dll, and I am
> not linking with any static lib.
>
> What could be going wrong here?
> Thanks
>
>