Hello, I am running into some problems with a program that I've written and I need some help. It is a C# .NET 2.0 Winforms application. It is being executed from a network drive, and runs under Windows XPand Windows 7. The platform target is x86. It does some SQL queries, reading and writing to a file stored on a network using SQLite. There are certain operations, which are not repeatable, in which the user will click and the program will simply stall, going into the hourglass (or spinning circle). Usually when this happens, the program will crash with "The application has stopped working" error. I have an exception handler, but apparently it is not catching the problem. What measures can I take to find out the problematic code? Or to correct the errors? The users of the program get frustrated when the crashes occur as it slows down their work. Thanks Mike
eljainc
Posts
-
Application has stopped working error in C# .NET application -
Application could not start error 0xC0000006 starting C# .NET 2.0 programIs there something I'm misisng? I tried this and it still does not correct the problem. I had to use the caspol from the cmd line, using the guidelines seen here: [^] Any other hints? Thanks Mike
-
problem when launching applicationYou must instantiate the connection and then open a database. Here is an example OdbcConnection cnn = new OdbcConnection("DSN=DATABASE"); cnn.Open(); The parameter in this case would be the connection string. There are many different ways the connection string may be formed. It depends partially on which database type you are opening (SQL Server, MsAccess, Oracle, etc)
-
Application could not start error 0xC0000006 starting C# .NET 2.0 programDave, Thank you for your response. How do I go about telling the machine to trust the network source? Is this procedure common for all versions of Windows? (XP, Win7, Win8, Win10, etc). I don't think putting the EXE on a local drive is a good option in our case. For updates, I would have to go to every machine and update. Another vendor, which we interface with their software, they put everything on the network with no problems. Mike
-
Application could not start error 0xC0000006 starting C# .NET 2.0 programHello, I am getting an error 0xC0000006 when starting program that normally starts up and runs fine. It is being executed from a network drive. I am working with .NET 2.0, however some machines that I am using have the .NET 3.5 or .NET 4.0 runtime installed. The machines that are giving the errors are running Windows 7 Professional. Any help or advice is appreciated.
-
Application has stopped respondingHello, I am receiving an "Application has stopped working" error in my C# WinForms application. The running OS versions are Windows 7 Home Premium, Windows 7 Professional and also a few WinXP Home machines. I have an exception handler set up in my code: public void MyExceptionHandler (Object sender, ThreadExceptionEventArgs e) { MessageBox.Show("Internal Error" + "\r\n\r\n" + e.Exception.Message + "\r\n\r\n" + "Stack Trace: " + e.Exception.StackTrace, "Oslermedicine® Manager Notification"); } This code is never called for some reason and Windows handles any errors. I set up the ThreadException in my _load event for the main form: Application.ThreadException += MyExceptionHandler; What would cause this behavior? I tried to put it in the main loop but then the program becomes very unstable, crashing on other handlers. Thanks Mike
-
Improving performance of C# program when run from network driveHello, I am having some problems when running a C# application that I've written. It runs fairly smooth on a local machine (test machine). However, when I am running this from a network drive, the responsiveness is slow. When I click on a button that opens up a form, there is a considerable lag (5-10 seconds sometimes). Is there anything that I can do to speed this up on a network?