Jump to content

.NET event crashes LabVIEW


Recommended Posts

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

post-5546-1163577321.jpg?width=400

Download File:post-5546-1163577366.zip

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.