Possible pre-main or unixlib problem

Alex Waugh alex at alexwaugh.com
Sun Jan 18 09:46:04 PST 2004

In message <200401172135.20367 at zamez.strcprstskrzkrk.co.uk>
          James Bursa <bursa at users.sourceforge.net> wrote:

> I'm getting some unexpected behaviour from a program compiled using
> recent 3.3  CVS. The code is this:
> If I run the executable on a clean reboot I get the output
>   FAILED: 168: 'ADFS::A7000+.$' is a directory
> Calling the Font_FindFont with identical parameters from BASIC
> succeeds. After  this the executable works (presumably since the font
> is cached).
> Setting a breakpoint with the debugger module shows that the
> parameters to the  SWI call are correct. Using OSLib instead of
> _kernel_swi gives identical  behaviour.
> I don't know what sort of conditions would cause this error, but the
> only  possibility seems to be that there is a problem in the code
> before main() is  reached, which affects the state of RISC OS in some
> way to cause this.

The only thing I can think of offhand is the dde prefix modifications
John has been making are somehow confusing the font manager. Does the
error message vary depending on the CSD/Prefix$Dir?


Alex Waugh                                           alex at alexwaugh.com

PHP, Roots, Subversion, WebJames and more from http://www.alexwaugh.com/

More information about the gcc mailing list