FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

RESOURCES

Bypass Easy Open's bug


There is a simple work around, if you get an -194 error while adding a resource, just detach the handle and try again, eg: (Off the top of my head, please chack before using)

CALL ADDRESOURCE(theHandle&,_"PICT",128,"My Piccy")
osErr% =3D RESERROR
LONG IF osErr% =3D -194
' You will find that this section is rarely invoked,
' But remeber ADDRESOURCE might still fail for other reasons.
  osErr% =3D _noErr
  CALL DETACHRESOURCE(theHandle&)
  osErr% =3D RESERROR
  LONG IF osErr% =3D _noErr ' If that worked, then it was Evil Open's =fault .Or yours
    CALL ADDRESOURCE(theHandle&,_"PICT",128,"My Piccy")
    osErr% =3D RESERROR ' Give-up, time to report an error
  END IF
END IF

Jamin