Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: object reference not set to an instance of an object. Pin
abdo.kouta22-May-15 4:13
abdo.kouta22-May-15 4:13 
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 
I open and close the connection for the purpose of the program to keep looping without throwing an exception.

I can see if an exception is thrown when I am stepping through the code in debug mode.

Even with a messagebox.Show(ec.message); It never reaches the code.

It stops executing, it says its running but I know it's not. If I put a break point in between the loop when it seems to of 'crashed' the breakpoint is never reached..

I can't work out which line, but, I know if I remove the mysql lines of code, the program works nicely..

Probably worth noting that this code works perfectly in a console application, I have it coded to insert the data into a mysql database, and it doesn't crash at all.

modified 22-May-15 9:17am.

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 
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 

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.