os_generate_error and postmortems

Stefan Bellon sbellon at sbellon.de
Tue Aug 24 21:00:19 BST 2004


David J. Ruck wrote:
> On 24 Aug 2004 Stefan Bellon <sbellon at sbellon.de> wrote:
> > I'm stumbling over the fact that os_generate_error() always
> > produces a postmortem with stack trace which I don't want. How
> > should I do it if I only want an error message (printed on screen
> > when from within the CLI or in an error box when from within the
> > WIMP) and a return code?

> For the command line fprintf(stdderr,...) for the Wimp
> Wimp_ReportError()

Ok, assuming I have to do this on my own while the BASIC interpreter
does it for me, how do I find out whether the program got started
inside a TaskWindow or from the CLI or whether it got started by
double-clicking it in the Filer?

-- 
Stefan Bellon



More information about the oslib-user mailing list