Article # 39, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Swat error: ILLEGAL_RESOURCE
Question: I get an ILLEGAL_RESOURCE error in my program. Why is that? Answer: 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 how GeodeGetOptrNS works; 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 fourth line so that the system makefile is included during the compile. See also: Multi-Source File Goc Applications