ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

assertion failed, microsoft visual c++ runtime library error pop-up

Hello,

I have a wierd problem. 

I have a program that sends commands to a DeviceNet device through their API 

DeviceNet : Open

DeviceNet : Send Command

DeviceNet : Close

etc

 

that device is connected to a DeviceNet Network of 9 devices.

so when i am in dev mode it works fine when stop program using send DeviceNet : Close, but gives me microsoft Visual C++ Run-Time Library assertion failed error !! when i send the same command to close in executable , doesnot give me error in dev mode.

 

I am not sure how or what to fix.

 

if i go ahead with retry same pop-up comes back twice and then crashes LabVIEW, abort will just close this window.  any help please ?

 

Assertion Failed error MS Run-Time Library.png

 

0 Kudos
Message 1 of 4
(5,572 Views)

Hi freemason,

 

I wanted to make sure that I understood you correctly. So it works correctly in the executable but not in development mode?

 

Also, is this behavior exhibited if you run one of our examples as an executable?

-----------------------------------------------
Brandon Grey
Certified LabVIEW Architect

0 Kudos
Message 2 of 4
(5,535 Views)

no, it works in dev mode but not in exe

it works with all other LabVIEW exe's i developed. except this one . i am guess it is something to do with the DNET dll they have

0 Kudos
Message 3 of 4
(5,517 Views)

Have you tried building a debuggable executable to see if that gives you any additional information? Have you tried rebuilding the executable?

-----------------------------------------------
Brandon Grey
Certified LabVIEW Architect

0 Kudos
Message 4 of 4
(5,482 Views)