Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / problem with executable and picking

Author
Message
Novas
16
Years of Service
User Offline
Joined: 23rd Jul 2008
Location:
Posted: 31st Jul 2008 13:50
Hi everybody!
i have the following problem:
i made my simple game and it runs well when i hit F5 in Visual Studio.

but when i start the *.exe from the release directory by doubleclicking i get problems. first the window opens normally and i can see my gui. i can click the buttons (sprites) and they do what they are supposed to do.

but when i click (which starts a function with picking)on one of my 3d models the game crashes.

i use vectors and had to change things in the configuration but i don't think that this has something to do with that.

maybe i'm doing something wrong when trying to get a release version!?
i click build -> build project and i get the *.exe file in my release directory.

do i have to do something else?
and do i need to add something when giving the game to someone else? (the folder with my images, sounds, *.exe, what else?)

i hope someone can help me...
Dark Gamers
16
Years of Service
User Offline
Joined: 17th Mar 2008
Location:
Posted: 31st Jul 2008 16:50 Edited at: 31st Jul 2008 16:51
select release rather than debug...
and check if you got the following message:

"Debugging information for "project.exe" cannot be found or does not match. Binary was not built with debug information."

do following things:
1) Goto Project->projectName Properties
2) On the left expand "Configuration Properties"
3) Expand "C/C++"
4) On the left, Select "General"
5) On the right, change "Debug Information Format" to "Program Database For Edit And Continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, change "Optimization" to "Disabled (/Od)"
7) On the left, expand "Linker"
8) On the left, select "Debugging"
9) On the right, change "Generate Debug Info" to "Yes"
10) Click ok
11) Set your breakpoints
12) Rebuild your application
Novas
16
Years of Service
User Offline
Joined: 23rd Jul 2008
Location:
Posted: 31st Jul 2008 19:48
thanks for your answer!
i changed everything as you said but still the same...

running from Visual Studio is fine but starting the *.exe will result in a crash when clicking on one of the objects.

i don't get the message you mentioned.
the only one which seems like that:
'beJonesed.exe': Loaded 'C:\Windows\System32\guard32.dll', Binary was not built with debug information.

how can it be that i can play the game when starting from visual studio but not when doubleclicking the exe?!
Novas
16
Years of Service
User Offline
Joined: 23rd Jul 2008
Location:
Posted: 31st Jul 2008 19:54
oh btw: i use Visual Studio 2008 professional
we can have it for free from our university so i used that one...
but that shouldn't be any problem, right?

Login to post a reply

Server time is: 2024-11-20 17:26:44
Your offset time is: 2024-11-20 17:26:44