ITimer bug

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Aënahel
Posts: 3
Joined: Fri May 11, 2007 11:54 am

ITimer bug

Post by Aënahel »

Hy there ! I've got a problem with ITimer ^^. I want to integrate a timer in my Irrlicht game because it's more fun to play against the time.

So I declare ITimer* chrono;
And then, I use chrono->start() or chrono->stop().
Compilation runs without any problem, but when I try to execute, I get the error "Windows has got an error, send bug report blabla". Any idea where this error comes from ?

Thanx a lot.
Aenahel.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

This is a general problem with your understanding and usage of the C++ language. You declare a pointer to a timer, but you don't actually set that pointer to refer to an actual timer instance. The second problem that you are going to run into is that the ITimer interface isn't the type of timer that you think it is. It is an abstraction that Irrlicht uses to allow the user to slow down or stop time.

It sounds like you are trying to track the amount of time that has elapsed since you started the timer. If you are wanting to do that, you will have to write some code of your own.

Travis
Post Reply