LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net event crashes with Windows 7

Solved!
Go to solution
Highlighted

Hi,

 

I am using an internally developed .net assembly to communicate with some proprietary hardware.  I developed an app in LabVIEW 8.6 and Windows XP which worked as expected.  When I moved to Windows 7 / LabVIEW 2009 I get a crash whenever an event fires.  The dialog that is fired shows "Assertion Failed" and has Abort, Retry, Ignore.   Abort closes LabVIEW.  I have attached a screenshot of the dialog.

 

I made a very simple test vi, which registers the event.  When then event fires, I still get a crash. 

 

Any ideas?  This same concept works in C# with the following code:

 

using Crestron.ActiveCNX; namespace WindowsFormsApplication4 { public partial class Form1 : Form { public Form1() { InitializeComponent(); ActiveCNX cnx = new ActiveCNX(); cnx.onSerial += new ActiveCNXEventHandler(cnx_onSerial); cnx.Connect("192.168.0.30", 3); } void cnx_onSerial(object sender, ActiveCNXEventArgs e) { MessageBox.Show(e.SerialValue); } } }

 

 

Thanks in advance,

John

Download All
0 Kudos
Message 1 of 3
(1,088 Views)
Highlighted
Solution
Accepted by topic author jpsc
Message 2 of 3
(1,065 Views)
Highlighted

Hi John,

 

Thank you for posting the solution to this thread--it will help others who find this forum find their answer. 

 

Cheers, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 3 of 3
(1,035 Views)