I am using the compass sensor in a .NET application. After updating my OS to 3.2.24012 It does not work any more. Every time i use the compass(DeviceDirection) i get an error : Can't find PInvoke DLL 'PsionSensorsCD.dll' I have copied the dll file to the application directory but it does not work any more.
In previous OS it worked fine, can anyone tell ee what has changed?
Hello Jacques,
Thanx, the PsionSensorsC.Dll was not deployed correct to the EP10. After adding the right version of the dll to the EP10 the application works again.
Best regards Richard
Good morning,
In you run your .NET solution in debug mode, can you please let us know which method call raises such exception?
vvvv
For your information and as depicted below, I have successfully launched and tested the .NET C# Compass solution that comes with our Mobile Devices SDK version 5.4 against an EP10 device running OS version 3.2.24012.0 with Psion Software Advantage version 3.2.24012.0
Can you please provide us your EP10 system properties?See the « Creating a System Properties file » knowledge base article for further details.
Kind regards,Jacques
Hello Jacques
When i start the .NET c# Compass Solution from SDK 5.4 The first log of Visual studio is as follow :
Compass.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\mscorlib.dll''Compass.exe' (Managed): Loaded 'c:\program files (x86)\psion\mobile devices sdk v5.4\samples\dotnet\c_sharp\compass\bin\debug\Compass.exe', Symbols loaded.'Compass.exe' (Managed): Loaded 'System.Windows.Forms.dll''Compass.exe' (Managed): Loaded 'System.dll''Compass.exe' (Managed): Loaded 'System.Drawing.dll''Compass.exe' (Managed): Loaded 'c:\program files (x86)\psion\mobile devices sdk v5.2\dotnet3.5\PsionSensorsNet.dll', Symbols loaded.A first chance exception of type 'System.MissingMethodException' occurred in PsionSensorsNet.dll
Then the EP10 shows the next messagebox
Good morning RTelgenkamp,
According to your Visual Studio Output window, your solution is referencing the PsionSensorsNet.dll library that comes with version 5.2 of our Mobile Devices SDK.
RTelgenkamp'Compass.exe' (Managed): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\mscorlib.dll' 'Compass.exe' (Managed): Loaded 'c:\program files (x86)\psion\mobile devices sdk v5.4\samples\dotnet\c_sharp\compass\bin\debug\Compass.exe', Symbols loaded. 'Compass.exe' (Managed): Loaded 'System.Windows.Forms.dll' 'Compass.exe' (Managed): Loaded 'System.dll' 'Compass.exe' (Managed): Loaded 'System.Drawing.dll' 'Compass.exe' (Managed): Loaded 'c:\program files (x86)\psion\mobile devices sdk v5.2\dotnet3.5\PsionSensorsNet.dll', Symbols loaded. A first chance exception of type 'System.MissingMethodException' occurred in PsionSensorsNet.dll
Can you please confirm/deny the C:\Program Files (x86)\Psion\Mobile Devices SDK V5.2\windowsmobile6\PsionSensorsC.dll library is deployed along with the Compass.exe application.
E.g.
Deployment
------ Build started: Project: Compass, Configuration: Debug Any CPU ------Compass -> E:\Support\IW\Compass\bin\Debug\Compass.exe------ Deploy started: Project: Compass, Configuration: Debug Any CPU ------Deploying 'C:\Program Files\Psion\Mobile Devices SDK V5.2\DotNet3.5\PsionSensorsNet.dll'Deploying 'E:\Support\IW\Compass\bin\Debug\PsionSensorsC.dll'Deploying 'E:\Support\IW\Compass\bin\Debug\Compass.exe'========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==================== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Kind regardsJacques