Debugging PInvoke DLL not found on Device Emulator

  • Thread starter Thread starter John Rivers
  • Start date Start date
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?
 
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
 
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
 
Back
Top