BUG: VS7.1 - Runtime error for all Samples

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
smjones
Just popping in
Just popping in
Posts: 4
Joined: Wed Jan 18, 2006 22:53
Location: California, United States

BUG: VS7.1 - Runtime error for all Samples

Postby smjones » Fri Jan 20, 2006 19:14

My comments are regarding the VS7.1 (.NET 2003) installation files. Any and all sample apps run from the debugger (important distinction!) have a runtime error. Apps cannot find any of the data files on the harddrive. I fixed this by simply changing the working directory in the project properties to "..\..\bin" (no quotes) to each of the sample apps project properties.

If you compile and run the .exes found in the \bin directory they work fine without making any changes. So this issue is with running the apps from VS debugger only.
Maybe other installations have this problem but I don't know because I only downloaded the .NET 2003 one.

Not a huge deal but I just wanted to bring it up in case anybody cared. :D

Nice work on the library, though. Very good use of OOP and design patterns (Factory, Singleton, Iterator, etc).

-SJ

User avatar
baxissimo
Quite a regular
Quite a regular
Posts: 60
Joined: Tue Feb 22, 2005 08:04
Location: Tokyo, JAPAN
Contact:

Re: BUG: VS7.1 - Runtime error for all Samples

Postby baxissimo » Sat Jan 21, 2006 15:23

Yep. That's a problem with Visual Studio. :? Annoying as all get out too. For some reason Microsoft thinks the working directory for projects doesn't belong in the project files. Instead, the working directory gets saved in the .ncb file that otherwise contains mostly user-specific UI stuff like where you have your breakpoints set and which files you had open last time.

I don't think there's any workaround other than to reorganize CEGUI's directory structure to match Microsoft's notion of default working directory. Which just isn't going to happen.

That said maybe it could be documented better. There should probably be an INSTALL or BUILD text file at the top level of the source distribution that explains gotchas like that for each platform.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests