> A neater way would be to open the file once and close it
> at the end, but I suspect that a crash would leave you in trouble...

Which is exactly what Poser does, which is probably why Steve doesn't see the
file get created.  Poser writes the Log file on an error (crash) or when you
quit Poser.

David's suggestion is a good one, but doesn't necessarily solve Steve's problem,
which is to track events. Poser's logging facility specifically allows this kind
of logging.

David might also want to look into Reporter.  I don't know how it compares for
speed, but it's much better for convenience when you're doing your own logging.

-- Keith Rollin
-- Palm OS Emulator engineer






"David Oakley" <[EMAIL PROTECTED]> on 03/04/2000 03:01:54 PM

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

Sent by:  "David Oakley" <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  RE: POSE Logging Info
      <LYR3109-10494-2000.03.04-11.40.57--smann#[EMAIL PROTECTED]>




Hi Steve,

I couldn't work out what it did either, so I used the facility to write to a
host file:

void _trace(char *text)
{
     HostFILE* hf = HostFOpen("c:\\emulator.log","a");
     HostFPrintF(hf,"@%ld: %s\n",game.time_into_game,text);
     HostFClose(hf);
}

This quite neatly appends to the end of a file, *but* it does slow down
performance a lot. A neater way would be to open the file once and close it
at the end, but I suspect that a crash would leave you in trouble...

Hope that's of use!

David
---
David Oakley - [EMAIL PROTECTED] - ICQ 9610512
partner, Astraware - http://www.astraware.com/
New: Zap!2000 for Palm: http://www.astraware.com/palm/zap2000/?dsig


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Steve
> Mann
> Sent: 04 March 2000 20:12
> To: Palm Developer Forum
> Subject: POSE Logging Info
> <LYR3109-10494-2000.03.04-11.40.57--smann#[EMAIL PROTECTED]>
>
>
> If you turn on specific logging options in POSE (3.0a4), does anyone
> have any idea where that info gets logged to? No files are created as
> far as I can tell. Any clues?
>
> I'm trying to track events with POSE like I used to be able to with
> the Simulator because I can't get the simulator working with any of
> my projects using the latest 3.5. Has anyone had any success with
> that?
>
> Thanks.
>
> Regards,
> Steve Mann
> -------------------------------------------
> Creative Digital Publishing Inc.
> 1315 Palm Street, San Luis Obispo, CA 93401-3117
> -------------------------------------------
> 805.784.9461              805.784.9462 (fax)
> [EMAIL PROTECTED]       http://www.cdpubs.com
>
> --
> 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






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

Reply via email to