Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: object reference not set to an instance of an object. Pin
OriginalGriff22-May-15 4:26
mveOriginalGriff22-May-15 4:26 
GeneralRe: object reference not set to an instance of an object. Pin
Eddy Vluggen22-May-15 4:36
professionalEddy Vluggen22-May-15 4:36 
SuggestionRe: object reference not set to an instance of an object. Pin
Richard Deeming22-May-15 5:08
mveRichard Deeming22-May-15 5:08 
GeneralRe: object reference not set to an instance of an object. Pin
Eddy Vluggen22-May-15 6:37
professionalEddy Vluggen22-May-15 6:37 
QuestionC# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 2:28
Member 1171127722-May-15 2:28 
AnswerRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 2:42
professionalSascha Lefèvre22-May-15 2:42 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 2:51
Member 1171127722-May-15 2:51 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 3:17
professionalSascha Lefèvre22-May-15 3:17 
Member 11711277 wrote:
1. I open and close the connection for the purpose of the program to keep looping without throwing an exception.
That's strange. It shouldn't be neccessary. Which exception is being thrown if you don't open and close the connection?

Member 11711277 wrote:
2. Obviously I can catch exceptions when in debug mode?
Sure. Are you referring to the option Debug > Exceptions > Break when an exception is thrown? If yes, why do you have the try-catch-blocks in the first place? Not saying it will work if you remove them but empty catch-blocks are just bad practice.

Member 11711277 wrote:
I can't work out which line, but, I know if I remove the mysql lines of code, the program works nicely..
Now you got me confused - didn't you say you have those lines in there to avoid an exception?

Did you run it in the debugger and stepped through it line by line?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 3:22
Member 1171127722-May-15 3:22 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 3:29
professionalSascha Lefèvre22-May-15 3:29 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 3:47
Member 1171127722-May-15 3:47 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 3:57
professionalSascha Lefèvre22-May-15 3:57 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 3:59
Member 1171127722-May-15 3:59 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 4:12
professionalSascha Lefèvre22-May-15 4:12 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 4:15
Member 1171127722-May-15 4:15 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 4:17
Member 1171127722-May-15 4:17 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 4:35
professionalSascha Lefèvre22-May-15 4:35 
Questionhow to keep datagridview in editmode on pressing of arrow keys Pin
Muhammad Waqas Aziz22-May-15 0:32
Muhammad Waqas Aziz22-May-15 0:32 
AnswerRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Sascha Lefèvre22-May-15 1:00
professionalSascha Lefèvre22-May-15 1:00 
GeneralRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Muhammad Waqas Aziz26-May-15 23:31
Muhammad Waqas Aziz26-May-15 23:31 
AnswerRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Simon_Whale22-May-15 1:23
Simon_Whale22-May-15 1:23 
Questionhelp in datagride view CellLeave Pin
aahamdan21-May-15 21:00
aahamdan21-May-15 21:00 
AnswerRe: help in datagride view CellLeave Pin
Sascha Lefèvre22-May-15 0:01
professionalSascha Lefèvre22-May-15 0:01 
AnswerRe: help in datagride view CellLeave Pin
Muhammad Waqas Aziz22-May-15 0:35
Muhammad Waqas Aziz22-May-15 0:35 
GeneralRe: help in datagride view CellLeave Pin
aahamdan26-May-15 13:02
aahamdan26-May-15 13:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.