Game Development Community

How do I debug Process::processEvents() What does it do?

by Vince Gee · in Torque 3D Professional · 07/18/2012 (9:56 am) · 3 replies

I've got an issue where the engine runs great and then it hangs in the main loop on line

if(!Process::processEvents())
         keepRunning = false;

It goes into the Process::processEvents() and never comes back.

I've been looking at the c++ for a while now and I can't figure out what is going on in there.

I think it is handling keyboard and mouse stuff, but does anyone really know what it does?

Vince

#1
07/18/2012 (10:05 am)
I would look in this call:
Process::get()._signalProcess.trigger();

There is a for loop in there. I bet there is a massive amount of things it is processing. Or it is receiving so many events it cannot keep up in that loop. Hence, never being able to leave? I dunno.
#2
07/18/2012 (3:54 pm)
This is definitely the problem....

So, why would it not crash in debug mode?

Process::get()._signalProcess.trigger();

I really need to understand what is going on here.

hmmm.
#3
07/18/2012 (5:01 pm)
Found it, posting issue.