From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net event crashes with Windows 7

Solved!
Go to solution

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
(2,526 Views)
Solution
Accepted by jpsc
Message 2 of 3
(2,503 Views)

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
(2,473 Views)