Notifications
Clear all

[Closed] SDK help….compiled plugin doesn't work on other machines?

Hey all,

So I’m tearing my hair out at this problem:

I’ve compiled a .dlx for 3dsmax 2009 64-bit using Visual Studio and it works fine on my computer…but if I try to load that same .dlx on ANY other computer, I get an “error code 126: the specified module cannot be found” error. This also occurs even with the sample plugins included with the SDK!

Anyone run into this before? Is the plugin trying to find the SDK folders or something? I’ve tried both “release” and “debug” mode compiles with no luck. I thought plugins were supposed to be self-contained…is it doing some kind of phone-home to the SDK directory and that’s why it won’t load on other machines? It doesn’t help that the error message is also vague as ****…makes it impossible to try and troubleshoot the problem myself, so that’s why I’m posting here. :banghead:

6 Replies

1 : Make sure your plugin is compiled in released AND as Multi-Threaded DLL (Runtime Library)
2 : Download Dependency Walker – http://dependencywalker.com/- . Execute it, drop your dlx in and you’ll see if there’s missing dependencies. Do it on your dev machine and on the others that don’t work. You’ll see what’s the difference and the dependencies (DLLs) that are missing.

EDIT: Maybe you will need to install that in the machine where the dlx doesn’t load : Microsoft Visual C++ 2005 Redistributable Package (x64)

Hey Yannick,

Thanks for the response…

  1. Yep, the .dlx is compiled with multithreaded DLL
  2. I ran dependency walker but it didn’t come up with anything. At first it said it was missing .dlls, but that’s just because they were system .dll that weren’t in the plugin folder. I can only assume that max loads those prior to plugin loading because other plugins give the same missing depedency errors in dependencywalker yet they run fine in max.
  3. I installed that on the problem computer but the plugin still won’t load

Are you using a third-party DLL in your dlx ?

Nope…and this same error occurs even with the example plugins included with the max SDK.

For example, if I load up the intervalArray.vcproj file included with the SDK, compile without making any changes, put the .dlx in the plugins folder and then try to load it with max…the error pops up–but ONLY on the computers where I didn’t compile it.

It might be worth nothing that I’m using Visual Studio 2010 beta.

Aaahhh, you have to install the Microsoft Visual C++ 2010 Redistributable Package for x64 (available ?) on the others computers. They are not installed because Visual Studio 2010 isn’t the supported development platform for 3ds Max 2009, it’s Visual Studio 2005.

Ah ok…thank you!