Article # 508, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
I get an ILLEGAL_RESOURCE error in my program.
Q. I get an ILLEGAL_RESOURCE error in my program. Why is that? A. If you're using GeodeGetOptrNS, make sure your program is multi-launchable. In other words, take out the "single" in the "type" line of your .GP file. This is just how the function works, and you can't avoid making the program multi-launchable. Another way this error could occur is if you forgot to create a LOCAL.MK file with the LINK_FLAGS line in it. You'll need this with multi-source apps when you use GeodeGetOptrNS. Here is a sample: # Pass flag for (somewhat) unsafe resource fixups for # multi-launchability. LINKFLAGS += -r #include <$(SYSMAKEFILE)> You need that third line so that the system makefile is included during the compile.