Contents page

Rules for Tools/I-O Crashes

Disk I/O or printf() crash from Tool window:

Because your Tool's edit routine is called from within a Task and not a DOS Process, it can't do any IO. For Disk I/O, use the Bars&Pipes library routine `doscall()'. `printf()' still won't work because `toolstart.o' doesn't set up `stdout'. Open a file called `"*"', which directs all output to the CLI and use `fprintf()' to write to it. For this to work, you must run Bars&Pipes from the CLI. Remember to call `fopen()', `fprintf()', and `fclose()' with `doscall()'.