Quote:
Originally Posted by thomas
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.