You wouldn't believe what a relief this is!
Ok, I think I need to save up and buy a Dell Axim for development - they are very sensitive devices, but it's not that it's their fault....
There were two problems:
- Data alignment issues
- Memory leaks
Any memory leak will cause problems on the Axim, but almost all other devices will handle it without any trouble if the memory leak occurs in the HeapAlloc() area. The memory leak was from my not knowing exactly how virtual functions work when called from destructors - I will post in the developers forum to try and get some clarification because it doesn't make sense to me - I had to do a manual work-around in the inheriting class.
The 80000002 exception is supposed to be related to data alignment, but I think it must also get raised on the Axims in the event of memory leaks.
I will explain more in the thread I have going in the developers forum: