View Single Post
Old 28 September 2018, 22:28   #1
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
substitute for WBStartup

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
peceha is online now  
 
Page generated in 0.07765 seconds with 11 queries