Danyo Posted November 15, 2006 Report Share Posted November 15, 2006 Hello! It's my first project where I deal with .NET events. In particular I want to minimize the frontpanel to a system tray icon and after that restore the window by means of a context menu. However this works only a few times in series. After 5 to 6 times minimizing and restoring LV crashes with the failure notice shown below. That is to say: "LabVIEW 8.2 Development System has detected a problem and must be terminated." Maybe someone could give me an advice what goes wrong in my program?! Any help is appreciated! Daniel Download File:post-5546-1163577366.zip Quote Link to comment
Dirk J. Posted November 15, 2006 Report Share Posted November 15, 2006 I think the problem is that you keep initializing/freeing the references. I've attached a slightly modified version of your VI. The references are being created and freed outside the loop. The callback functions are registered only once (when they are needed for the first time). When running, it simply shows or hide the tray icon. Download File:post-3523-1163592222.vi Quote Link to comment
Danyo Posted November 15, 2006 Author Report Share Posted November 15, 2006 Hello Dirk! Yes, that's it! Thank you very much for your help! Now I understand how to deal correctly with the references! Regards Danyo Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.