C# WPF Program crashing when opened by a different Windows user -
I have created an application that loads data locally from XML files, and with these files this picture, The video, and the EXE that the player can play with the dynamically created button while loading files and images and the EXE is running, I try / catch it at all places to crash.
However, today a user crashed by trying to use it as another Windows user. The files are not protected by a user (as far as I know), but if they are, then the program should capture it. For some reasons it crashes instead of trying / catching. The functions I am using are System.Diagnostics.Process.Start (), File.Exists (), and Directory.GetCurrentDirectory (). Is this a big problem that I am missing when it comes to these files which will be beyond the scope of the general effort / hold of these tasks? Thank you,
Andy
Does the other user's location have their user name?
If the exception is not catching your catch blocks, then you should ensure that you have a top-level exception handler (more applications around your startup code. Disappearance unhindered exception) exception Get caught, post back with a stack trace and I'm sure you will get an answer quickly.
Comments
Post a Comment