KZero Active Member Licensed User Longtime User Dec 22, 2012 #1 Hi, I'm wondering why i can't use Thread.Start from Service Module it give me this error Error description: Process object is expected. {Type=Object,Rank=0} is an Activity object. Declaring the variable in Sub Globals instead of Sub Process_Globals will solve this problem. Occurred on line: 93 Record.Start(Null,"ThreadSub",Null) Word: null Thanks in advance
Hi, I'm wondering why i can't use Thread.Start from Service Module it give me this error Error description: Process object is expected. {Type=Object,Rank=0} is an Activity object. Declaring the variable in Sub Globals instead of Sub Process_Globals will solve this problem. Occurred on line: 93 Record.Start(Null,"ThreadSub",Null) Word: null Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2012 #2 You should write: Code: Copy Dim args(0) As Object Record.Start(Null, "ThreadSub", args) This issue is related to the casting of Null to an array in service module. Upvote 0
You should write: Code: Copy Dim args(0) As Object Record.Start(Null, "ThreadSub", args) This issue is related to the casting of Null to an array in service module.