Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to enable shim engine

19 views
Skip to first unread message

Joel Finkel

unread,
May 21, 2007, 5:22:01 PM5/21/07
to
I am trying to invoke the Application Verifier for Mobile 5.0 but am getting
an "Unable to enable shim engine on device" error. This happens when trying
to connect to an WM 5.0 emulator or a WM 5.0 physical device.

I can successfully connect CETK via ActiveSync in both cases and run, for
example, the CPU monitor.

I am using what I believe to be the latest version of the Application
Verifier from
http://www.microsoft.com/downloads/details.aspx?familyid=d275348a-d937-4d88-ae25-28702c78748d&displaylang=en.

As per the Instructions, I replaced the original Application Verifier
binaries in the Program Files\Windows CE Platform
Builder\5.0\CEPB\wcetk\DDTK\ARMV4I with those downloaded from the link, above.

Thanks in advance for all suggestions.

Marty Larson

unread,
May 22, 2007, 12:28:38 PM5/22/07
to
Hi, Joel,

There are a few things that can cause that error message:
1 -- Shimeng.dll isn't available on the device.
2 -- If the device (real or emulated) implements a trusted loader,
shimeng.dll must be signed to run fully trusted, or you'll need to get one
of the security powertoys and change your device's security settings while
you're testing.
3 -- The shimeng.dll on the device is for the wrong OS.

If the problem is #2 or #3, you'll have to reset your device to clear out
mis-loaded bits -- shimeng.dll is a special in-kernel dll, and one of the
side-effects of that is that it can never be unloaded, even if it didn't
load fully in the first place.

Then, to help with #1 and #3, run through the following steps instead of the
post-install instructions on the download page. This will put the bits in
place to allow the desktop app to find the correct bits to download to the
device. This assumes that you've installed both the Windows CE 5.0 Test Kit
and the Application Verifier for Windows Mobile 5.0 to the default
locations.

md "%ProgramFiles%\Windows CE Platform Builder\5.01\CEPB\wcetk\DDTK\ARMV4I"
md "%ProgramFiles%\Windows CE Platform Builder\5.01\CEPB\wcetk\DDTK\DESKTOP"

copy "%ProgramFiles%\Windows CE Platform
Builder\5.00\CEPB\wcetk\DDTK\ARMV4I\appverif_client.*"
"%ProgramFiles%\Application Verifier for Mobile 5.0\Armv4i"
copy %WinDir%\Microsoft.NET\Framework\v1.1.4322\msvcrt71.dll
"%ProgramFiles%\Application Verifier for Mobile 5.0\Desktop"

copy "%ProgramFiles%\Application Verifier for Mobile 5.0\Armv4i"
"%ProgramFiles%\Windows CE Platform Builder\5.01\CEPB\wcetk\DDTK\ARMV4I"
copy "%ProgramFiles%\Application Verifier for Mobile 5.0\Desktop"
"%ProgramFiles%\Windows CE Platform Builder\5.01\CEPB\wcetk\DDTK\DESKTOP"

reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\appverif_client.exe"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\htracker.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shimeng.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_heap.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_heap.map"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_hleak.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_hleak.map"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_usergdi.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_usergdi.map"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_verifier.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\shim_verifier.map"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\symhlp.dll"
reg add "HKLM\SOFTWARE\Microsoft\CETT\WinCE 5.01\Tools\Application
Verifier\vlog.dll"
reg add "HKLM\SOFTWARE\Microsoft\Platform Builder\5.01\Directories" /v "IDE
Install Dir" /d "C:\Program Files\Windows CE Platform Builder\5.01\"

Finally, make sure you run AppVerifCE.exe from either the WM 5 or the PB
5.01 locations. You'll only want to use the one in the PB 5.00 location when
you're testing a general embedded CE 5.00 device.

--Marty Larson [MSFT]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\5.01\Directories]
"IDE Install Dir"="C:\\Program Files\\Windows CE Platform Builder\\5.01\\"

"Joel Finkel" <JoelF...@discussions.microsoft.com> wrote in message
news:B11B6137-2C07-4A18...@microsoft.com...

Joel Finkel

unread,
May 22, 2007, 3:24:00 PM5/22/07
to
Marty,

Thank you! Your instructions worked flawlessly. I really appreciate your
timely support.

/Joel

0 new messages