Page 1 of 1

Errors when running from Visual, but not from exe

Posted: Mon May 30, 2011 8:38 pm
by MadPumpkin
My program doesn't work right when I run it from visual c++ it says some shit after it opens about assertion and then it fails, when I break it talks about fread and what not. I know that this error has something to do with loading my heightmap, because when I remove those few lines of code, it all works perfectly. BUT if I just build in visual, then run from the .exe in the folder, it runs as expected with no problems.

Re: Errors when running from Visual, but not from exe

Posted: Mon May 30, 2011 9:06 pm
by Falco Girgis
Is your working directory for the project correct?

[SOLVED]Errors when running from Visual, but not from exe

Posted: Tue May 31, 2011 2:51 am
by MadPumpkin
Thanks, easy fix. I thought that I had, because I did it to my other project. Then I remembered copying files over and making a new project instead of moving my entire project. But thanks.