|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| Error code: 14001 when loading plugin with 3ds Max 9
|
|
|
I’m compiling a plugin for other people, and the plugin loads fine in 3ds Max 9 for me. But when other people try using the plugin, they get this error:
DLL <C:\Program Files\Autodesk\3ds Max 9\PlugIns\aaaaaaa.dle> failed to initialize.
Error code: 14001 - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
I have Windows XP 32bit installed, and I use Visual Studio 2005 to compile the plugin.
The people who cannot run the plugin also have Windows XP 32bit, but do not have Visual Studio 2005 installed.
What could be causing this issue?
|
|
|
|
Sounds like your plugin could be trying to find a .dll, if you drop your plugin into Dependency Walker you’ll be able to see what dll’s it requires.
You can download it here: http://support.microsoft.com/kb/256872
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
According to that program, the plugin is missing the following DLL’s:
ATL80.DLL
DWMAPI.DLL
MFC80.DLL
MSVCP80.DLL
MSVCR80.DLL
I downloaded the above DLL’s and placed them into C:\Windows\system32 on the machine that is having this error. Dependency Walker then gives no errors. However, Max 9 still displays the same error when loading the plugin. What exactly does the error mean? Could there be other dependencies?
|
|
|
|
Ah ok, in that case it sounds like you need the VS2005 run time installing on the machine you’re trying to run it on.
Download: http://www.microsoft.com/downloa...9C36F85647&displaylang=en
...that should fix it.
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
ok, thanks. I just tried that on the target machines and they get the same error. This is a REALLY old plugin that I am trying to update. Is it possible that it’s using some outdated libs?
From
Configuration Properties->Linker->Input->Additional Dependencies:
d3d9.lib
d3dx9.lib
dinput8.lib
dxguid.lib
bmm.lib
winmm.lib
dsound.lib
MNMath.lib
msacm32.lib
odbc32.lib
odbccp32.lib
comctl32.lib
core.lib
geom.lib
gfx.lib
mesh.lib
maxutil.lib
maxscrpt.lib
paramblk2.lib
|
|
|
|
Ok, try installing the DirectX SDK (same version you built with) onto the target machines, you won’t need to install all of it just the runtime, I had an issue like this a while ago and this fixed it...I can’t remember but it could have been a debug build so it was probably looking for debug .dll’s, anyway it’s well worth a go.
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
...oh and make sure you’ve got the .NET framework runtime installed on the targets as well.
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
ok, I think I am getting closer to the problem. I installed the redistributable packs for the same version of DirectX (June 2008) that I used to compile as well as the .NET Framework on the target machines, and I still got the same error. HOWEVER, as a test, I installed Visual Studio 2005 (plus SP1) on one of the problem computers, and THEN it worked fine.
So, the question now is --- what are the differences between the redistributable packs and actual Visual Studio that would cause such errors? Debug DLL’s perhaps?
|
|
|
|
Ah ok, if the plugin is a debug build then yes, thats the problem or if you’ve linked with any debug libs in the release build (which I imagine isn’t likely, worth a check though).
Also, in your solution go to properties->Manifest Tool->Input and Output->Embed Manifest needs to be YES.
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
For another test you could copy the .dll’s from “C:\Program Files\Microsoft Visual Studio 8\VC\redist” to the same directory as your plugin. In this folder you’ll find the debug versions as well. This should be all the .NET stuff you’ll need...I think.
Technology Programmer / Director.
Red Wasp Design.
|
|
|
|
It’s finally working :) You were right—since the plugin is a Hybrid, I had to copy over some of the stuff in C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist directory into the plugins directory. Thanks for your help!
|
|
|
|
|
|