Debugging PInvoke DLL not found on Device Emulator

J

John Rivers

I have a CF 2.0 application using:

OpenNETCF.Compression.zlibCE.dll
- and -
zlibce.dll (compiled for ARM4I - depends on coredll.dll)

which works fine on a Windows CE 5.0 device

but using Visual Studio 2005 SP1 with Device Emulator v3.0 "Pocket PC
2003 SE Emulator"

I get "PInvoke DLL not found"

the correct DLL is in the correct folder, right next to the OpenNETCF
dll

I tried turning on all Exceptions in VS2005 to get an error with more
detail than:

MissingMethodException
Can't find PInvoke DLL 'zlibce'

but that is all I get

I am sure the Device Emulator supports ARM4I as it reports ARM920
which is ARM4I

On desktop PC I could use FileMonitor to watch the loading and
DebugMonitor might help but on PPC I am stuck

How can I debug this?
 
J

John Rivers

zlibce.dll is in the same folder as OpenNETCF.Compression.zlibCE.dll
zlibce.dll is compiled from zlibce_1.2.3 sources for CE 5.0 / ARMV4I

Oh, I see now, PPC 2003 is based on WinCE 4.2

I swapped for zlibce for 4.2 all is well now

Also I see I can download Windows Mobile 5.0 SDK for Pocket PC
which will provide CE 5.0 based emulator images for VS2005

Thanks
 
J

John Rivers

zlibce.dll is in the same folder as OpenNETCF.Compression.zlibCE.dll
zlibce.dll is compiled from zlibce_1.2.3 sources for CE 5.0 / ARMV4I

Oh, I see now, PPC 2003 is based on WinCE 4.2

I swapped for zlibce for 4.2 all is well now

Also I see I can download Windows Mobile 5.0 SDK for Pocket PC
which will provide CE 5.0 based emulator images for VS2005

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top