Question Error in running applicaion

landrovertoo

New member
Joined
Mar 29, 2011
Messages
2
Programming Experience
3-5
I am using VS 2010 Academic edition. I have created an application and want to install it on another machine. I think I have it installed, but when I run it, I get a dialog that says my application has stopped working. Then I get "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

Does anyone know if there is a limitation to deployment of a program using the academic version?

Steve
 
Your application is running but it is throwing an unhandled exception. Assuming a Windows app, you should be handling the UnhandledException event of the application itself to catch any unexpected errors, log them and then shut down gracefully. Once you have the information about the error, you can then adjust your code to either handle it in place and carry on after cleanup, or else prevent it in the first place.
 
Error in running a VB.NET applicaion

I understand what you are saying. However, the application does not even load. I put a msgbox entry at the start of form_load. That is never shown.
How or where else can I look to find the error?

And, is there any limitation to distribution of an app created by the academic version?

Steve
 
Does anyone know if there is a limitation to deployment of a program using the academic version?
The only limitation is that you can't use it for commercial purposes.
 
As I said, you should be handling the UnhandledException event of the application. Open the Application page of the project properties, click the View Events button and then use the drop-down lists at the top of the code window to add an event handler. In there you can do whatever you like to get the information about the exception. Calling ToString on the exception will get the most useful information and then you can display it in a message box or save it to a file or whatever.
 
Back
Top