1 Answer
1

ok its my mistake
actually i open file stream in dll_proc_attach, & i am closing in dll_proc_detach,
the problem was the stream is getting close somehow.
so now i wrote seprate functions to open and close stream and code is working fine.
thanks all for replies.