Quote:
Originally Posted by Toni Wilen
Thats standard official startup code. Every program that runs from WB uses it (like was already mentioned above).
|
Yes, I use nearly the same code, but with an additional Permit. This method is confirmed by the Autodocs 1.3/2.0/3.5:
Quote:
Calls to Forbid() nest. In order to restore normal task rescheduling, the programmer must execute exactly one call to Permit() for every call to Forbid().
|
Quote:
Originally Posted by Toni Wilen
You sure there was not some memory corruption or some other random problem that made task exit to hang? (=Forbid state didn't go away)
|
No, in that case, the demo worked properly and didn't corrupt memory areas. My tester on her A4000-060 told me, that without the Permit(), memory used by the task is not given back to the system.