Why oh whyyyyy (pulling my hair out) does my application hang at the final line shown here?
Code:
int Get_idlist(long key, char listdir[256])
{
FILE *fpin, *fpout;
char id_out[256];
sprintf(temp,"%s\\",server_vehicledb);
if( strlen(listdir) > 2 )
{
sprintf(id_out,"%s%d.%s", idlist_dir_online, key, list_ext);
fpout = fopen("C:\\test.temp","wb");
fprintf(fpout, "test");
fclose(fpout);
if( (fpin = fopen(listdir, "rb")) != NULL)
{
fpout = fopen(id_out, "wb");
fprintf(fpout,"testttttt\n");
...
The file C:\test.temp is created without problems... does this have something to do with nesting the fpout inside the if( (fpin.. ? I've used this method many times before, without any problems...
Been pulling my hair out since yesterday afternoon until now... does anyone here have an idea? Thanks!!
René