Access violation writing exception
I am writing a C program using VS2008 for easy debugging, but unfortunately I am running into access violation writing exception. When I executed step by step, I found that fscanf works for reading first few lines of the input text file, but throws access violation exception at a point. It would be great if someone can tell me what might fix this. I have been trying to fix this for long now and would really appreciate some help. The wierd part is it works on linux but I need VS2008 for debugging..
Re: Access violation writing exception
Well you've only posted half the code, and you haven't posted the input file. Don't post the whole lot though: cut it down to the minimum needed to reproduce the problem, and post that. For example if you remove the calls to scheduling_type0(), dispatch(), ifetch_decode_unit() and printqueues(), replacing them with minimal "stub" code needed to let everything else work, and similarly replace the pipe.ifetchqueue statements, plus just enough of the the input file, then we may be able to help.
|All times are GMT +5.5. The time now is 10:30.|