VC10 Profiling crash

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
pheonixstorm
Space Squid
Posts: 74
Joined: Fri Sep 06, 2013 10:46 am

VC10 Profiling crash

#1 Post by pheonixstorm »

I have started profiling freeorion.exe but have run across a ran odd problem.

If I start profiling directly it compiles (or checks for a current compile) then tries to load freeorion.exe When it does the game crashes with an error about not being able to load the ogre rendering system. If I start freeorion normally I can attach the profiler without issue. Any clue as to why it doesn't want to profile correct from source? I didn't notice any clues in the logs but can provide them if need be.

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: VC10 Profiling crash

#2 Post by adrian_broher »

Guess 1: The working directory is not set properly by the profiler.
Guess 2: The profiler compiles with with debug symbols and the OGRE plugin loader tries to find the non-existing debug variants of the plugins.

Also it's not a crash if it is handled gracefully ("with an error").
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: VC10 Profiling crash

#3 Post by Geoff the Medio »

You probably need to edit the FreeOrion project Configuration Properties / Debugging / Working Directory and set it to $(TargetDir)

Post Reply