A
Arti Potnis
Hi,
I have an application with a function "myfunction" that opens a file
and writes to it using fprintf.
This application runs on a unix (sun solaris 5.8) system.
I connect to this application from a VB GUi on a windows 2000 system.
The GUI invokes "myfunction".
I get the following error:-
"debug assertion failed str!=NULL fprintf.c"
The check for NULL handler is in place.The code is similar to teh
following lines:-
FILE *fp;
fp=fopen("myfile.txt","a");
if (fp==NULL)
exit(1);
fprintf(fp,"hello");
Since I check for the FILE handler for NULL value before executing
fprintf,why should I get the debug assertion failed error.
Thanks
Arti
I have an application with a function "myfunction" that opens a file
and writes to it using fprintf.
This application runs on a unix (sun solaris 5.8) system.
I connect to this application from a VB GUi on a windows 2000 system.
The GUI invokes "myfunction".
I get the following error:-
"debug assertion failed str!=NULL fprintf.c"
The check for NULL handler is in place.The code is similar to teh
following lines:-
FILE *fp;
fp=fopen("myfile.txt","a");
if (fp==NULL)
exit(1);
fprintf(fp,"hello");
Since I check for the FILE handler for NULL value before executing
fprintf,why should I get the debug assertion failed error.
Thanks
Arti