05-10-2007 05:10 AM
05-10-2007 09:12 AM - edited 05-10-2007 09:12 AM
@Anonymous wrote:
Plz guide me regarding this problem....
I have called a C program using call library function node...that C
program reads some data from a file ....on doing so I encounter an
error during run time which says
debug assertion failed
program:\c:\program files\NI\labview7.1\lv.exe
File Fclose.c
line 58
expression : stream != NULL
then i get a message to retry cancel or abort
on retrying it shows send error message to microsoft
after all this when i try running my C file simply it shows file
cannot be opened
and now i cant open any file through a C program even those which were
running smoothly earlier...
Why is this happening and how can this be resolved.....
thanks.........aparna
It's very simple. Your C program does an illegal operation that the C runtime libraries report with an exception. This exception gets catched by LabVIEW but all LabVIEW can do is inform you about it, as the exception could potentially have corrupted memory or the entire process environment LabVIEW is running in. When you decide to ignore it, LabVIEW continues and the system protection further down the exception chain comes to see it and decides that the application has performed an illegal operation and must be shut down.
The problem is definitely not LabVIEW but your C code or the way you call it from LabVIEW.
Rolf Kalbermatter
Message Edited by rolfk on 05-10-2007 04:13 PM
05-14-2007 06:40 AM