07-16-2004 07:20 AM
07-19-2004 03:36 AM
07-23-2004 04:28 PM
09-16-2008 10:01 AM
I seem to have a related problem. CVI 8 was hanging when issuing a SetPanelAttribute command. This was in debug mode so it was easy to find. After some thinking and trying things I found that CVI did not like me setting the panel attribute from a different thread than the panel's creator. I re-arranged the code to create the panel in the same thread and it no longer froze. This may help someone else.
Vahid
09-08-2011 09:44 AM
09-08-2011 02:58 PM - edited 09-08-2011 03:02 PM
This is not expected behavior. Can you attach a small program here that reproduces this hang?
Luis
(Never mind, I've since been able to reproduce it with the ATTR_TITLE attribute. I'll keep you posted)
09-08-2011 06:32 PM
Are you seeing this hang with the ATTR_TITLE attribute, as was the case with the original poster in this thread, or are you seeing it with a different panel attribute?
Luis
09-09-2011 02:28 PM
09-12-2011 02:14 PM
Okay, good.
Yes, I did confirm that there is a bug in CVI that can occur when you set the panel title from a thread other than the thread that created the panel. This bug (ID: 314344) will be fixed in an upcoming release. In the meanwhile, the best workaround I can think of is for you to use the PostDeferredCallToThread function to force the title change to take place from the panel's thread.
Luis