|
Prev: TC CJC Accuracy
Next: display proceeding statechart
From: rolfk on 7 May 2008 11:10 Wiebe(a)CARYA wrote:I'd avoid sending a string if possible. If you want to send a status, send an numeric. At least test with numerics, in general they are a lot easier. The problem with strings is that you are passing a pointer. This pointer lives in the memory of the sender, but the receivers wants to read it. The sender should release the memory, but has no idea about when the reader is done with it. So strings are very likelly to cause problems here. On the other hand, there are some windows messages that pass strings, so it might be handled internally. If you use PostLVUserEvent there is no Windows message queue involved. That function takes a pointer to the LabVIEW data of the type as specified when creating the user event. For a string this would be a LabVIEW string handle.Rolf Kalbermatter
|
Pages: 1 Prev: TC CJC Accuracy Next: display proceeding statechart |