A simple question:
are the standard libraries also limited to 4 tasks?
If you want to use the standard libraries with more than the default number of tasks, events, etc. (the defaults for the standard and freeware libraries are the same), you'll need to add salvosrcmem.c to your project as a node before the standard library you're using. You can then set OSTASKS, OSEVENTS, etc. to whatever numbers you like. Please see "Overriding Default RAM Settings" in the Libraries chapter of the Salvo User Manual for more information. Failure to link in your own mem.obj module will result in non-Salvo-variables being overwritten at runtime.
The mem.obj module in the standard (and freeware) libraries is compiled for the default number of tasks, events, etc. By compiling mem.c with your own OSTASKS, OSEVENTS, etc. settings and linking it into your project before the library, it will be used in place of the one in the library, and will properly allocate space for your additional tasks, events, etc.
This technique won't work with the freeware libraries because they are compiled with OSSET_LIMITS set to TRUE, which prevents the various Salvo services like OSCreateTask() from accepting more than, say, 4 tasks.
Salvo Technical Support
Please request all tech support through the Forums.
[This message has been edited by Salvo Tech Support (edited February 15, 2002).]
Users browsing this forum: No registered users and 1 guest