Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

"A dynamic link library (DLL) initialization routine failed" loading a custom plugin with no DLL dependancies

"A dynamic link library (DLL) initialization routine failed" loading a custom plugin with no DLL dependancies

livinamukS9FUA
Participant Participant
510 Views
1 Reply
Message 1 of 2

"A dynamic link library (DLL) initialization routine failed" loading a custom plugin with no DLL dependancies

livinamukS9FUA
Participant
Participant


I'm getting the following error trying to load a plugin I am working on..

 

# Error: RuntimeError: file <maya console> line 18: Unable to dynamically load : C:/Project/build/win32/2023/Release/src/ragdoll.mll
# A dynamic link library (DLL) initialization routine failed.

 

The plugin is loaded by Maya just fine until I add the following line.

 

Shaders::VertexColorGL2D _shader;

 

The thing is this object is part of the Magnum graphics framework which is linked statically and doesn't require any DLLs. Is it possible to get more information than is shown in the script editor output window about what DLL failed to initialize?

 

0 Likes
511 Views
1 Reply
Reply (1)
Message 2 of 2

jiajun.coding
Advocate
Advocate

I used to run DependencyWalker for my developed dll to check how many dlls it depends on and if there is circular dependencies. However, DependencyWalker sometimes reported that kernel32.dll has a circular dependency incorrectly under Windows 11.

0 Likes