Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411526 Posts in 69381 Topics- by 58436 Members - Latest Member: GlitchyPSI

May 02, 2024, 12:13:49 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)[SOLVED] OpenGL + Visual Studio 2008 debugging
Pages: [1]
Print
Author Topic: [SOLVED] OpenGL + Visual Studio 2008 debugging  (Read 1746 times)
Cimpresovec
Level 1
*


View Profile
« on: December 09, 2009, 09:02:41 AM »

Hello there. I am having a little problem here. The solution is probably very simple but here it goes. I am having a problem that textures aren't blited when I am in debugging mode in VS. But when I run the app from it project directory everything is blitted fine.

I load a 32 bit PNG image from a directory in the project map. Like "data/image.png".

It isn't really a problem but I would like to see stuff blited and not just squares when I am in debug mode.

I already tried GameDev... no help there. I also tried to put the whole path to the file.

Advices?
« Last Edit: December 09, 2009, 12:15:46 PM by RedReaper132 » Logged

Programming is the closest thing I have to magic.
c-foo peng
Level 3
***


game chef


View Profile WWW
« Reply #1 on: December 09, 2009, 09:17:11 AM »

Most likely a problem with your directory setup? Go to the project properties, and see if the Debugging -> Working Directory is set to the right place.
Logged

Cimpresovec
Level 1
*


View Profile
« Reply #2 on: December 09, 2009, 09:34:29 AM »

Tried that already and tried that again now. Doesn't work. I am using Windows 7 for more info. I also tried to run VS in admin mode and also with XP compability. But that last thing gave me only compiling errors.
Logged

Programming is the closest thing I have to magic.
David Pittman
Level 2
**


MAEK GAEM


View Profile WWW
« Reply #3 on: December 09, 2009, 10:47:09 AM »

Have you stepped through the execution and confirmed that the file is actually being opened? Because it really does sound like it's just a working directory problem.
Logged

Cimpresovec
Level 1
*


View Profile
« Reply #4 on: December 09, 2009, 11:13:36 AM »

I forgot to do that.

And yea you were right. The file isn't loaded in debugging mode. It has a value of 0. Normal start has a value of 1.

So it is a working directory problem. But I tried changing the setting there and it doesn't work. I think it is a windows 7 problem, but I run VS with admin privilegies.

Any good idea?
Logged

Programming is the closest thing I have to magic.
increpare
Guest
« Reply #5 on: December 09, 2009, 11:31:57 AM »

find out what the working directory actually is? 
Logged
Cimpresovec
Level 1
*


View Profile
« Reply #6 on: December 09, 2009, 12:04:09 PM »

??

Well it is: M:\Fall\Fall\Debug

Or what did you wanted to say?
Logged

Programming is the closest thing I have to magic.
powly
Level 4
****



View Profile WWW
« Reply #7 on: December 09, 2009, 12:13:36 PM »

Just copy the media to your project directory and the binary directories? Should work just fine.
Logged
Cimpresovec
Level 1
*


View Profile
« Reply #8 on: December 09, 2009, 12:14:22 PM »

Solved  Smiley Smiley

Thanks guys and thanks David.

I set the working directory to $(TargetDir) and it worked :D
Logged

Programming is the closest thing I have to magic.
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic