Hi,
I was trying to replace internal WBStartup command with following code (only first part/problematic shown below)
Code:
DEFTYPE.WBStartup *wbmsg
*pr.Process = FindTask_(0)
If( *pr\pr_CLI = 0 )
WaitPort_( *pr\pr_MsgPort )
*wbmsg = GetMsg_( *pr\pr_MsgPort )
EndIf
...
when running it waits forever at WaitPort_() - it means it was started from WB but doesn't get any "back" message from workbench.
What am I doing wrong?
Thanks