program does nothing

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

program does nothing

Post by JoeriDC »

I compiled some of the tutorials with devc++ and placed the exe's in the same folder where the other exe's are. When I open the exe, the promt show up and closes immediately.

the compiler gives no errors or warnings.

any idea's?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, learn how your program can be started from command prompt. Then you can read all console output and you know why it fails.
(I already know it without reading them, though. But I'm not sure whether I should tell you - I'd never know if you will learn to start your tool from console, then. Oh no, there are several possibilities, you got to tell us the console output :lol: )
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

you can tell me then. I just want to learn how those things in c++ works :)

after that console thing I want to place it a normal form.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Come on, how long do you use Windows now? Just start the program from the dos box and you can read the output. There are several possibilities. dll not found or wrong, using directx without it being compiled into Irrlicht (which is the most common one), ...
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

I did that and there was no output text, tested the original ones and they give theire output text.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

maybe you just forgot the render loop...
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

it is an example that was included in the SDK. changed nothing to the code.

no errors and waring when i compile

placed it in the same folder where the other binaries are from the examples.

this is getting hopeless i think :(

I want to make my project in c++ instead of vb.net to get all the futures of the engine.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

HELLO :evil:
Didn't you read my posting. You need the console output.
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

if you mean with the console the ms-dos prompt, well I used that
there happens nothing, just jump over to the next line for input.
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Debug it.
No offense :)
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

Here is an update from C++ .NET 2005 ( after installing sdk's and setting up some more reference path's)

------ debug info -----
'HelloWorld.exe': Loaded 'K:\irrlicht-1.0\irrlicht-1.0\examples\01.HelloWorld\Debug\HelloWorld.exe', Symbols loaded.
'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load
The program '[1472] HelloWorld.exe: Native' has exited with code -1073741515 (0xc0000135).

any idea what causes this?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Dll missing :idea:
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

The Irrlicht.NET.DLL and irrlicht.dll are in the same folder, and don't know of any other dependecy's.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There are tools to check dependencies. I only know the name of the cygwin version (cygcheck.exe), but MS also delivers such a tool.
JoeriDC
Posts: 18
Joined: Mon May 22, 2006 5:22 pm

Post by JoeriDC »

I used dependecy walker and there is one function that can cuase an error and it gives an error in a function call in Irrlicht.
Post Reply