View Single Post
Old 13 February 2019, 22:10   #5
dissident
Registered User
 
Join Date: Sep 2015
Location: Germany
Posts: 260
Quote:
Originally Posted by thomas View Post
Forbid()
ReplyMsg(wbmsg)
return

is the normal ending of a program started from Workbench.

Forbid just sets a flag in the task structure. When the task ends, its Forbid status vanishes along with the task structure.

The above sequence of commands assures that the replied message can be received by Workbench only after the task has already ended.

This is not the cause of your freezes. Of course this part of the program should never be executed if it is run from the Shell. But even if you manage to call this from the Shell, it does not freeze the machine.
Maybe a misunderstanding. The demo is not called by an icon from WB. There is no WB-message that has to be replied. It is called from a shell window on the WB.
dissident is offline  
 
Page generated in 0.07838 seconds with 11 queries