12-11-2008 06:34 AM
12-11-2008 07:10 AM
I tried also with update to LV 7.1.1. , without success.
12-11-2008 08:04 AM
12-11-2008 08:51 AM
12-11-2008 09:05 AM
Hi,
I don't use hardware and no dll is called. I can focus then problem on a part of the program which handles a Systray Icon.
http://home.arcor.de/raena2/LabVIEW_Tray_Icon.llb
So just using the sample in this llb shows the probelm when closing the application.
12-12-2008 02:42 AM
strange thing: if I insert a waiting time between closing the systray icon and exiting the program,
no Dr. Watson and no error message comes up.
Does anybody has an idea what the reason could be for this behavior?
12-12-2008 06:44 AM
Hi there
add a Destroy user event" after the unregister event function for each user event in your code.
You are calling external code (axsTrayIcon.ITrayIcon COM-Object), this code may cause the problem.
12-12-2008 08:32 AM - edited 12-12-2008 08:32 AM
12-12-2008 08:41 AM
12-12-2008 08:42 AM
This is wrong. The tunnel of the user event through the event structure is filled with data only in the UserEvent event case, but this case will not stop the while loop, so the tunnel through the while loop is always NULL.
Pass ALL user events created inside "Register Tray Icons Events.vi" to the outside and destroy them after the destroy event registration.