This crashes:
This works fine:
When the first crashes, however, and I check the string names in the output or "Autos", filename and filename2 match. What's the problem?
Dim filename As String = System.IO.Path.GetFileName(saveFileDialog1.FileName) file.Save(filename)
This works fine:
Dim filename As String = System.IO.Path.GetFileName(saveFileDialog1.FileName) Dim filename2 As String = "filename" file.Save(filename2)
When the first crashes, however, and I check the string names in the output or "Autos", filename and filename2 match. What's the problem?