Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i debug my vb.net project and errors found,it just says "app.exe has encountered a problem and needs to be close"
Posted

Try setting some breakpoints. Creating a catch all to handle the exception and view the details. Writing a file that tells you how far your program gets. All sensible options.
 
Share this answer
 
Comments
Reymelito A. Lemo 9-Jul-10 4:19am    
sir--this is what the Output tells..
---EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.IndexOutOfRangeException' occurred in MySql.Data.dll--it is the error that must be showed in debug..
The program '[3692] gmbCAI.exe: Managed' has exited with code -532459699 (0xe0434f4d).

--i've been introduced in vb.net for almost 2 months now..
Christian Graus 9-Jul-10 4:53am    
I recommend learning VB.NET for a bit longer before doing anything that involves third party dlls, SQL, or databases. If you're writing code for money, that is just a disgrace. If you're teaching yourself, slow down and learn a bit at a time instead of not learning anything because you try to take on too much at once.
To Further Christians advice

You need to pay attention to the code that calls or uses functions / data types from the MySQL.Data.dll

it looks like your either trying to add data that isn't there to the MySql function or read data that again isn't there

this should give you a good starting point
 
Share this answer
 
Comments
Reymelito A. Lemo 9-Jul-10 5:05am    
no sir,,the error that im saying was like a usual windows error..even if the error is non-database same error show..is there any way to post a image in this forum?i think that it is a vb.net error,because all of my applications having a error of the same kind which is "(exe name).exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something...Please tell Microsoft about this problem...(button choices) Debug Send Error Report Dont Send" which is a usual dont send error..
Simon_Whale 9-Jul-10 5:09am    
What I would suggest that you do is put a break point line on the first line of code in the form load or new sub routines of your app. and then step through everyline of your code (step through line by line using F10). what this will show is that if it falls over while executing your code that its something that you've written and not your windows OS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900