Debug DLL doesnt run

Admiral Armada

The Admiral of Armadas
Joined
Sep 11, 2004
Messages
462
Location
Terra
Im trying to figure out why my mod crashes on loading, so i made a debug DLL, the problem is when i try to load using the debug dll, i just get a message box telling me DLL attached, then the civ4beyondsword.exe sits in task manager and nothing else happens. Any ideas what im doing wrong?
 

Attachments

  • Untitled.png
    Untitled.png
    7.2 KB · Views: 60
I assume you waited for some time before giving up. If not - give it a few more seconds. And of course - that you clicked OK on that message box... (did you add it in the DllMain?)

Did you try using a debugger and pausing the process to see where in the code your program hangs, if at all?

Try either running the game from Visual Studio or running the game externally and use 'Tools->Attach To Process' in the Visual Studio. Then you should be able to click on the 'pause' button (or 'Debug -> Break All' in the menu).

You should be able to see the call stack and see if the program hangs in your code.
 
Longest i waited was an hour, shouldn't take more then that right?
What is the DllMain?
Im try to run it from within VS now, and its doing the same thing, it doesnt run enough to let me see the code to figure out what is wrong.
:sad: I guess its back to square one
 
You may wish to use civchecker to find missing art.

It isn't clear exactly what you expect to happen during the hour that you are waiting. All that the debugger does is monitor what is happening in your program. If you aren't doing anything in the program, such as starting a new game using the menu, then nothing will happen. Perhaps you are doing that, but it isn't clear.
 
I will try civchecker.
If i try and start the game with a release version of my dll, i get the initial initialization screen, then a crash. If i try to do the same with a debug Dll, i get nothing.
 
I will try civchecker.
If i try and start the game with a release version of my dll, i get the initial initialization screen, then a crash. If i try to do the same with a debug Dll, i get nothing.

Do you play in full screen mode? Try playing in windowed mode and look for additional windows popups. When you compile in debug mode, all of those "FAssert" statements get applied where they are normally ignored. Any "FAssert" which triggers will cause a popup dialog to appear to let you handle it. If you are running in fullscreen mode, and you have not done this before, you might not know to look. In windowed mode, it is easier to see the dialogs and to navigate to them.
 
...er...an unchanged .dll crashes when you try to use it?
No, my dll when i compile with the release option(?) (i dont know the proper term, equivalent to final_release)

Do you play in full screen mode? Try playing in windowed mode and look for additional windows popups. When you compile in debug mode, all of those "FAssert" statements get applied where they are normally ignored. Any "FAssert" which triggers will cause a popup dialog to appear to let you handle it. If you are running in fullscreen mode, and you have not done this before, you might not know to look. In windowed mode, it is easier to see the dialogs and to navigate to them.

Im doing a remerge, since Fuyu came out with a new version, but ill keep that in mind. Thanks for the help.
 
Back
Top Bottom