User forums > Help

Project runs fine via F9, but crashes outside?

(1/1)

lmsmi1:
I've built a custom DLL in CodeBlocks 12.11 with MinGW, and have linked my executable to it. When I run the executable via F9 in Code::Blocks, it does everything I want it to do. However when I double-click it outside of Code::Blocks, it opens, but immediately crashes. Is this an issue with MinGW, Code::Blocks, or what? Are there any fixes?

Note: The DLL is in the same folder of the executable that uses the functions inside it.

stahta01:

--- Quote from: lmsmi1 on March 04, 2013, 08:48:44 pm --- Is this an issue with MinGW, Code::Blocks, or what? Are there any fixes?

--- End quote ---

Did you copy the DLLs needed by your project into the same folder as the exe?

If not, you need to do so; or at least make sure the DLLs are in the system PATH.

NOTE: It likely is missing the mingw DLL mingwm10.dll and maybe some other DLLs.

Tim S.

Navigation

[0] Message Index

Go to full version