In HostControl.cpp, you can change __flush to look as follows:

inline int __fflush (FILE* f)
{
     if (f == hostLogFILE)
     {
          LogDump ();    // <--- Add this line
          return 0;
     }

     return fflush (f);
}

I've just made this change, so it will appear in the next version of Poser.

If you don't want to modify Poser, you could always just write your own logging
routines based on HostFOpen, HostFPrintf, HostFFlush, HostFClose, etc.

If you're running on Windows, you could use the Reporter tool (links on the
Poser Web page) for real-time logging.

-- Keith Rollin
-- Palm OS Emulator engineer





[EMAIL PROTECTED] on 03/23/2000 05:14:42 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  POSE Logging Question




Is there a POSE to write a log file without leaving the emulator?

I am logging in normal mode.  When my program hits a glitch, I want to
examine the log file at that point.  Is there a way of dumping it?  It gets
written when the emulator exits, but I'm never exactly sure at what point it
stops logging.

Thanks,
Alan

--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to