Visual C++ express

Logan

21-06-2006 01:36:54

Being more of an artist guy, I'm not equipped with a standard VC compiler, in the past I compiled ogre code with Code Blocks and Microsoft platform sdk, it worked fine. However, that wasn't possible to do with the oSceneLoader demo - so I switched to Visual C++ express.

I've set up everything and manage to build an .exe file with it, unfortunately I'm not able to run it. I've tried a correct osceneLoader.exe and have a scene so it should work. But whenever I try to build that .exe with express the file just crashes on me when I try to run it.

Anyone else had problems with building oSceneLoader on Visual C++ Express?

Kentamanos

21-06-2006 03:20:08

What do you mean it crashes? Does it bring up an exception dialog box? If so, what does it say?

Logan

21-06-2006 13:04:37

I get a "This application must close/Terminate" box the first thing that happens, who ask me if I want to send in an error report to MS. I've looked through the information there, but none the wiser.

Lioric

21-06-2006 17:40:27

It should work correctly, what are the contents of the ogre.log file created in your application folder?

If you debug your application you can see where the error is and solve it

What are the stack trace contents?

Logan

21-06-2006 19:23:07

Debug information says:

Unhandled exception at 0x7c81eb33 in Demo_oSceneLoader.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0013ee64..

Lioric

21-06-2006 20:24:46

We will need the stack trace to help you

Start your application inside the debugger

Or you can use the prebuilt OSM viewer made by IFASS if what you need is the running application

Logan

22-06-2006 16:55:38

Or you can use the prebuilt OSM viewer made by IFASS if what you need is the running application

Actually, I have a running version of the demoloader. But what I would like is to be able to make demos, ie. start camera movement directly when you start the app, and be able to add sound direclty in 3ds max (timed sound).

---
But as you may have noticed I haven't been able to do anything with visual C++ yet, I might have done something wrong setting it up though. I can build the demos that came shipped with ogre using Code Blocks and the Microsoft SDK, no problem. But trying to build them with Visual Express (using the same includes and libs doesn't work. I get linker error. And for the viewer, I can build it, but can't run it.)

Lioric

23-06-2006 00:32:55

Do you see any hint in the ogre.log file, that should be created in your application folder?

Logan

26-06-2006 16:47:20

Do you see any hint in the ogre.log file, that should be created in your application folder?

It doesn't get that far, it just states that it crashed in an unusual way first thing after executing the exe file.

I'm going to try to reinstall visual C++ express and see if I've missed anything out when I get the time.