Hello!

I am using POSE 3.0a8 to profile my software. So far, I have only used
the profiling menu commands, which works perfectly. Now I tried to
switch to the HostProfilexxx API, to get more comparable results. I
tried to instrument my code as illustrated below, where the nextPeriod()
method is invoked in regular intervals. As soon as profiling is started,
POSE hangs, i.e. it sucks up most of the CPU power on my NT machine. My
program in POSE freezes. If I use the menu then in order to stop
profiling or to dump results I get dialog boxes, stating "Unhandled
Exception in WinMain. Dying like a log.".

Also: What are reasonable values for the parameters to
HostProfileInit()?

Cheers,
Tilo


void MyActionEngine::nextPeriod()
{
 if (state.periodCounter == 5)
 {
  // Turn on profiling
  HostProfileInit(1000, 10);
  HostProfileStart();
 }
 else if (state.periodCounter == 250)
 {
  // Turn off profiling after a while
  HostProfileStop();
  HostProfileDump("RazorDump");
  HostProfileCleanup();

  SoundEngine::playFx(0);
 }

 state.periodCounter++;

.... My code ....
}




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to