09-21-2015 02:11 PM
I have a Labview GUI that will display information about my oven.
this is the thread that runs on the background, it querys my oven, then i save the variables to stationglobals and then send a UI message. this works fine.
Now i made an improved OVEN that not only monitors but also controls the oven. It is written in labview.
on the example above i use a statement for the UI Message:
RunState.Thread.PostUIMessageEx(UIMsg_UserMessageBase + 1, 0, "",StationGlobals.ovenDatum, True)
Where StationGolbals.ovenDatum is a container with numbers and strings.
Now on my Labview code
I have this already wire up in labview. So my question is... Can i just wire my ovenDatum Container into the ActiveXdataParameter or do i need to make some kind of conversion.? am i doing it right?
Solved! Go to Solution.
09-22-2015 09:53 AM
I have never used the ActiveX Event Data. Especially when it comes to Numeric Values like an oven's temperature, why should you want to do typecasts to and from variant....
BTW... do you mean to handle this message synchronously?
09-22-2015 09:59 AM
Problem solved after trying and searching for a solutiong...
01-24-2019 10:36 AM - edited 01-24-2019 10:50 AM
I know this conversation is an older one but I want to give my two cents anyway...
Are you aware of the leaking objects in your code?
- The object coming out of "AsPropertyObject" (this one is easy)
- The object coming out of "GetPropertyObject" as well(!) just sinking it into the message will not release it. (This one is a beast)
Execute that code in a loop and watch your computer slowly slowing down for no obvious reason.
I'm not aware of any tools which will point the open references out for you (DesktopExecutionToolkit didn't - at least in the version I used at the time).
Searching this was not funny - finding it even more rewarding...
Edit: My case was a third party ActiveX as a source and sink for the object. I haven't tried with ActiveX-object and PostUIMessageEx but I saw the behavior with several calls so I'm sure it applies there as well.