View Single Post
Old 14 February 2019, 18:29   #18
dissident
Registered User
 
Join Date: Sep 2015
Location: Germany
Posts: 256
Quote:
Originally Posted by Toni Wilen View Post
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 View Post
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.
dissident is offline  
 
Page generated in 0.04467 seconds with 11 queries