Click here to Skip to main content
15,897,226 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionAppBars & the ShowDesktop command Pin
TyrionTheImp8-Oct-07 19:33
TyrionTheImp8-Oct-07 19:33 
QuestionPass handle to form Pin
mjanssen6-Oct-07 9:02
mjanssen6-Oct-07 9:02 
AnswerRe: Pass handle to form Pin
Kristian Sixhøj6-Oct-07 9:13
Kristian Sixhøj6-Oct-07 9:13 
GeneralRe: Pass handle to form Pin
mjanssen6-Oct-07 9:34
mjanssen6-Oct-07 9:34 
GeneralRe: Pass handle to form Pin
Eduard Keilholz8-Oct-07 2:23
Eduard Keilholz8-Oct-07 2:23 
QuestionHelp needed with Exceptions! Pin
alesh_nitre5-Oct-07 2:35
alesh_nitre5-Oct-07 2:35 
AnswerRe: Help needed with Exceptions! Pin
Scott Dorman5-Oct-07 12:06
professionalScott Dorman5-Oct-07 12:06 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre7-Oct-07 20:25
alesh_nitre7-Oct-07 20:25 
Thanks for such an urgent reply and sorry for a lousy explanation! But two days back i myself was unable to locate or reason about the cause of the problem. I'll explain better now. (Please ignore previous post)

About "the execution control gets lost" ->

I was debugging the code using VS2005 debugger pressing F10 and F11 along my way. But the moment the exception was thrown following things used to occur
1. The yellow arrow that shows current executing statement used to get lost
2. The call stack window used to go blank suddenly.
3. The application hung.

The app used to hang even in the release mode and so on.
-------------------------------------------------------------------
Neways. Now that i have better idea why this is happening I have summerised the code as follows. Please have a look at this -

private void button1_Click(object sender, EventArgs e)
{

// this code snippets reproduces the problem i stated

MySqlConnection con = new MySqlConnection("server=192.168.1.45;user id=root;Password=pqrs;database=dev");

//(I am using MySql .NET Connector 5.1.2)
con.Open();
try
{
// Select from any table that ***HAS BLOB DATA FIELD***
string selCmd = "SELECT * FROM document";

using (MySqlCommand allDocsCmd = new MySqlCommand(selCmd, con))
{
//Execute Reader
using (MySqlDataReader reader = allDocsCmd.ExecuteReader())
{
// ... some logic may be while(reader.read()) loop etc.

// Say this code throws an excpeption at some point..

throw new ApplicationException("Any exception ..");

// we expect the the execution control to go in the catch block below but
// it gets lost in the manner i told


}
}
}
catch (Exception ee)
{
MessageBox.Show(ee.Message);
}
}
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman8-Oct-07 3:52
professionalScott Dorman8-Oct-07 3:52 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre8-Oct-07 5:16
alesh_nitre8-Oct-07 5:16 
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman8-Oct-07 5:34
professionalScott Dorman8-Oct-07 5:34 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre9-Oct-07 20:36
alesh_nitre9-Oct-07 20:36 
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman10-Oct-07 3:31
professionalScott Dorman10-Oct-07 3:31 
QuestionError:Concurrency violation: the UpdateCommand affected 0 of the expected 1 records Pin
somagunasekaran4-Oct-07 0:31
somagunasekaran4-Oct-07 0:31 
AnswerRe: Error:Concurrency violation: the UpdateCommand affected 0 of the expected 1 records Pin
Urs Enzler4-Oct-07 23:16
Urs Enzler4-Oct-07 23:16 
QuestionCrack Pin
ellllllllie2-Oct-07 20:34
ellllllllie2-Oct-07 20:34 
AnswerRe: Crack Pin
Christian Graus2-Oct-07 21:34
protectorChristian Graus2-Oct-07 21:34 
GeneralRe: Crack Pin
originSH2-Oct-07 22:45
originSH2-Oct-07 22:45 
AnswerRe: Crack Pin
Scott Dorman3-Oct-07 12:01
professionalScott Dorman3-Oct-07 12:01 
AnswerRe: Crack Pin
Dave Kreskowiak3-Oct-07 12:15
mveDave Kreskowiak3-Oct-07 12:15 
GeneralRe: Crack Pin
Pete O'Hanlon4-Oct-07 10:55
mvePete O'Hanlon4-Oct-07 10:55 
GeneralRe: Crack Pin
Paul Conrad6-Oct-07 9:23
professionalPaul Conrad6-Oct-07 9:23 
AnswerRe: Crack Pin
Pete O'Hanlon4-Oct-07 10:57
mvePete O'Hanlon4-Oct-07 10:57 
Answeras Pete suggested Pin
Luc Pattyn4-Oct-07 12:13
sitebuilderLuc Pattyn4-Oct-07 12:13 
GeneralRe: as Pete suggested Pin
Christian Graus4-Oct-07 12:21
protectorChristian Graus4-Oct-07 12:21 

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.