22-degrees
Well-known member
A friend of mine has reported a piece of software that I made for him has all of a sudden begun to crash on a regular basis at the same point..
I have narrowed this issue down to the following..
In form_load, the prog checks if a txt file exists, and if yes, reads a bunch of setting data from it to apply to the main prog. If no, it creates the file and prompts the user to manually set all the paramters himself.
Luckily he has vs.net so I was able to help with the debugging.. A breakpoint on the line:
is triggered, but F8 (Step Into) exits the entire sub rather than returning the result of the statement (i.e yes it exists -> do the following) or (no it doesnt exist, create it and do something else)
Is there any reason why something like this would happen? I asked was he using any new software of late or running a defrag or virus scan to which he replied no x 3
It is puzzling me here because i have the exact same program on my PC and it runs just fine.. i even sent him my exact version and it still crashed on his machine due to the missing code that was being skipped as a result of the anomaly..
He claims he was not messing with the data folder but i think it is very strange that his settings can be written to the file, but the existence of the file cannot be verified.
Any thoughts?
I have narrowed this issue down to the following..
In form_load, the prog checks if a txt file exists, and if yes, reads a bunch of setting data from it to apply to the main prog. If no, it creates the file and prompts the user to manually set all the paramters himself.
Luckily he has vs.net so I was able to help with the debugging.. A breakpoint on the line:
VB.NET:
If My.Computer.FileSystem.FileExists("C:\xxxx\Data.txt") Then
is triggered, but F8 (Step Into) exits the entire sub rather than returning the result of the statement (i.e yes it exists -> do the following) or (no it doesnt exist, create it and do something else)
Is there any reason why something like this would happen? I asked was he using any new software of late or running a defrag or virus scan to which he replied no x 3
It is puzzling me here because i have the exact same program on my PC and it runs just fine.. i even sent him my exact version and it still crashed on his machine due to the missing code that was being skipped as a result of the anomaly..
He claims he was not messing with the data folder but i think it is very strange that his settings can be written to the file, but the existence of the file cannot be verified.
Any thoughts?