Skip to main content
Participant
August 6, 2009
Answered

Problem converting panelator sample to release version

  • August 6, 2009
  • 1 reply
  • 2293 views

I can't seem to get panelator to run on a non-dev machine.  I get the "...Panelator.aex" could not be loaded(14001)(48::46) error.  In other samples I fix this by changing the runtime library from debug to regular, MDd to MD and in the compile preprocessor change _DEBUG to NDEBUG.  In the projdumper sample I also had to add a " #undef _DEBUG" line to the header file.  I'm using Visual c++ 2008 Express to compile the samples.  Is it possible to compile the panelator sample to a release version?

Clinton

This topic has been closed for replies.
Correct answer shachar carmi

i can think of a few problems.

1. you're using vs2008.

the sdk is intended for vs2005.

the main difference is that 2008 uses MSVCR90.DLL instead of MSVCR80.DLL

that might cause a problem.

before you downgrade to 2005, try changing /MD to /MT.

that would cause the plug-in to include all possible libraries in it's code and would make it independent.

throw you plug-in into dependency walker.

if you're using /MT it shouldn't be dependent on anything but KERNEL32.DLL, and that should solve this problem.

2. some of the supporting code might have contrary settings.

check the properties of the files in the 'supporting code' folder in the panelator sample.

you might find some files that still have debug symbols or are defined as MD or MDd

in general, windows XP service pack 2 comes with MSVCR and MSCRT version 7.

if you're plug-in is dependent on a higher version than you must put these dlls on the host machine.

vs2005 ships with version 8 of these dlls, and 2009 with version 9.

put dependency walker on the non developer machine and you'll see what your plug-in is missing.

i, personally would use /MT and make the plug-in independent.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
August 7, 2009

i can think of a few problems.

1. you're using vs2008.

the sdk is intended for vs2005.

the main difference is that 2008 uses MSVCR90.DLL instead of MSVCR80.DLL

that might cause a problem.

before you downgrade to 2005, try changing /MD to /MT.

that would cause the plug-in to include all possible libraries in it's code and would make it independent.

throw you plug-in into dependency walker.

if you're using /MT it shouldn't be dependent on anything but KERNEL32.DLL, and that should solve this problem.

2. some of the supporting code might have contrary settings.

check the properties of the files in the 'supporting code' folder in the panelator sample.

you might find some files that still have debug symbols or are defined as MD or MDd

in general, windows XP service pack 2 comes with MSVCR and MSCRT version 7.

if you're plug-in is dependent on a higher version than you must put these dlls on the host machine.

vs2005 ships with version 8 of these dlls, and 2009 with version 9.

put dependency walker on the non developer machine and you'll see what your plug-in is missing.

i, personally would use /MT and make the plug-in independent.

Participant
August 7, 2009

Thank you, that was exactly what I was looking for.  The change from MDd->MT made the panelator run on the non-dev machine.  All the samples are MDd so I thought MD(whatever) was a requirement for the SDK.