• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED DLL throws 0xc000012f at me.

AceKiron

Member
I'm working on a custom opensource modding language called Axocudo. The DLL works perfectly fine in the unit test (in the source code referred to as Sandbox), but throws three of these 0xc000012f errors at me (probably because I'm calling 3 of the functions.)

Why is this happening? I'm using vs2019 to compile the DLL because it requires C++20. I'm using v2.3.0.529 because I like to stick to the same version unless an update is necessary.

Source code (Axocudo): https://github.com/Axocudo/Axocudo
GMS2 project: https://www.mediafire.com/file/dsriujftgj0gdtl/Test.zip/file
GMS2 project demo: https://www.mediafire.com/file/g79ulz5oaqzjd8x/axocudo_demo.zip/file

The error:

1628095098264.png
 
Last edited:

Evanski

Raccoon Lord
Forum Staff
Moderator
Error 0xc000012f means “Bad image” which denotes that the program's executable or one of the supporting modules is corrupt. Or there is probably a DLL mismatch and especially seen in programs that use Microsoft Visual C++ Redistributables.
Never messed with this .dll before
So my only helpful tip
is to make sure
your .dll is made for the same bit of windows as your game

64 bit windows dll to a 64 bit windows game maker game

32x for 32x

but it mostly just seems like a library or supporting dll isnt working properly and needs to be recompiled and fixed
 

AceKiron

Member
So my only helpful tip
is to make sure
your .dll is made for the same bit of windows as your game

64 bit windows dll to a 64 bit windows game maker game

32x for 32x
Both the DLL and the project are 32 bits

but it mostly just seems like a library or supporting dll isnt working properly and needs to be recompiled and fixed
The DLL works fine in its unit test though.
 

AceKiron

Member
UPDATE: Made sure both are 32 bits another time, this time I also made the DLL export the functions as C functions instead of C++.
 
Top