Hi guys!
I made this topic becouse I have a problem and I think you guys can help me solving this.
I've got a config file for my program where I set variables, from the program I can change the first line of the config. I get the variables, edit the first variable, delete the config file and rewrite the config file. The first time I do this it works but the second time it crashes and I get this error:
Unhandled exception in 0x5F55E589 (msvcp120.dll) in ConsoleApplication1.exe: 0xC0000005: violation of access during the reading of the route: 0x0E64074A.
(I trasled the error in english so I don't know if it's correct)
violation of access during the reading of the route
A tip: if you want to make the most out of programming resources and search engines, get used to configuring your systems and all your programs to use English.
The original version of this error message is "access violation reading location".
Lines 11-14: There's nothing here preventing i from being incremented well beyond the bounds of config1.
violation of access during the reading of the route
A tip: if you want to make the most out of programming resources and search engines, get used to configuring your systems and all your programs to use English.
The original version of this error message is "access violation reading location".
Lines 11-14: There's nothing here preventing i from being incremented well beyond the bounds of config1.
Thanks a LOT for your help. I was tired when I wrote this code so... Thanks! This did not solved my problem but it gived me an help. I declared the variable behind the #includes so I moved it in main. (I'm an idiot I know) :D