Hi all,
while executing the folowing code I get an SIGSEGV excacltly when I hit
the fopen().
#include <stdio.h>
void main( void ) {
FILE *p_file;
…
if( (p_file = fopen(“foo.bar”, “wb+”)) != NULL ) {
// Write to file
…
fclose(p_file);
}
…
}
The watcom debugger stops at _allocfp + 15
“mov ecx,+4[esi]”
What could be the reason for this strange error?
Thanks,
Jens