|
Hello all,
I am writing a file to generate bitmap file. While i am compiling this program I got no error but, the output isn't right. So I insert a*space space*point, where I think the internal error might occur. I insert the breakpoint in the line of "f_ptr[i]=fopen(filename_ptr, "rb+");"
Supposingly, it doesnt went through the if statement, because f_ptr[i] is not suppose to be NULL.
f_ptr[i]=fopen(filename_ptr, "rb+"); if( f_ptr[i] == 0) { printf("fopen failed\n"); return 0;
}
When I keep pressing F10, then it goes to the "_file.c" and then it give me an error window of:
An unhandled exception of type 'System.NullReferenceException' occurred in bitmap_gen.exe Additional information: Object reference not set to an instance of an object.
And it happens after this state:
EnterCriticalSection( &(((_FILEX *)pf)->lock) );
If any of you guys have experienced with this and have solved this problem, or have some idea that might help me solve this problem please email me/ reply this post.
Thank You
Y!
|