Lonatico
27th September 2013, 02:24
Hello,
I asked a question sometime back, and none answered :(, I managed to solve the problem by myslef but now I have no idea, and google can't help me much either.
The problem is, my code works fine when I run on debug mode, it opens my .bin files I need to open, perfect.
Although when I try to run on release mode (which I need so I can send the work to my teacher to test and grade) it runs everything alright, except for the file manipulation (opening .bin files in this case), it just won't open my files, I have no ideia why. And yes, the .bin files are on the same directory, I'm trying with the right name too, but it always returns NULL if I check the file pointer.
I'm using the basic stdio.h, so fopen is the opening function, FILE *arq is my pointer, but I can't manage to make it work on release mode. I think there is some library link missing, or something like that, though I don't know exactly, because I'm still a beginner on this subject.
Hope you can understand the question, if you can't, please tell me what you need in a more clear way, so that I can explain, and understand what is wrong.
I asked a question sometime back, and none answered :(, I managed to solve the problem by myslef but now I have no idea, and google can't help me much either.
The problem is, my code works fine when I run on debug mode, it opens my .bin files I need to open, perfect.
Although when I try to run on release mode (which I need so I can send the work to my teacher to test and grade) it runs everything alright, except for the file manipulation (opening .bin files in this case), it just won't open my files, I have no ideia why. And yes, the .bin files are on the same directory, I'm trying with the right name too, but it always returns NULL if I check the file pointer.
I'm using the basic stdio.h, so fopen is the opening function, FILE *arq is my pointer, but I can't manage to make it work on release mode. I think there is some library link missing, or something like that, though I don't know exactly, because I'm still a beginner on this subject.
Hope you can understand the question, if you can't, please tell me what you need in a more clear way, so that I can explain, and understand what is wrong.