Click here to Skip to main content
15,914,160 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Shutdown Pin
Dave Kreskowiak21-Sep-07 6:34
mveDave Kreskowiak21-Sep-07 6:34 
AnswerRe: Windows Shutdown Pin
Matthew Cuba21-Sep-07 6:39
Matthew Cuba21-Sep-07 6:39 
QuestionArrhgg.. C++ DLLs make me angry.. [modified] Pin
Dio2221-Sep-07 5:40
Dio2221-Sep-07 5:40 
AnswerRe: Arrhgg.. C++ DLLs make me angry.. Pin
Paul Conrad21-Sep-07 16:46
professionalPaul Conrad21-Sep-07 16:46 
GeneralRe: Arrhgg.. C++ DLLs make me angry.. Pin
Dio2221-Sep-07 17:16
Dio2221-Sep-07 17:16 
AnswerRe: Arrhgg.. C++ DLLs make me angry.. Pin
Paul Conrad22-Sep-07 4:58
professionalPaul Conrad22-Sep-07 4:58 
GeneralRe: Arrhgg.. C++ DLLs make me angry.. Pin
Dio2222-Sep-07 8:50
Dio2222-Sep-07 8:50 
QuestionOleDbConnection question Pin
ForkOffandDie21-Sep-07 4:37
ForkOffandDie21-Sep-07 4:37 
...if calling Dispose() results in an implicit call to Close(), why do people say that you shouldn't rely on Dispose to Close your connections? Take this code for example:

try
{
  if (table != null)
  {
                    
    using (OleDbConnection connection = new OleDbConnection())
    {
      connection.Open();
      using (OleDbCommand command = connection.CreateCommand())
      {
        command.CommandText = "SELECT obj From " + table.Alias;
        using (OleDbDataReader reader = command.ExecuteReader())
        {
           while (reader.Read())
           {
             
             container.Add(new Feature((xx)reader.Getxx(0)));
             //do other things that might cause an exception
           }
        }
       }
     }
   }
}
catch (Exception)
{
    MessageBox.Show("There was a GPS Error");
}

What would have priority over a thrown exception such that it HAD to process before a catch was allowed to handle the Exception? Anything? Dispose?


-- modified at 10:54 Friday 21st September, 2007
AnswerRe: OleDbConnection question Pin
Colin Angus Mackay21-Sep-07 5:01
Colin Angus Mackay21-Sep-07 5:01 
GeneralRe: OleDbConnection question Pin
ForkOffandDie21-Sep-07 5:05
ForkOffandDie21-Sep-07 5:05 
AnswerRe: OleDbConnection question Pin
Scott Dorman21-Sep-07 5:15
professionalScott Dorman21-Sep-07 5:15 
GeneralRe: How to use LoadFile method of RichTextbox ? Pin
nesaver8521-Sep-07 3:56
nesaver8521-Sep-07 3:56 
QuestionPrinttoprinter Pin
Saamir21-Sep-07 3:49
Saamir21-Sep-07 3:49 
AnswerRe: Printtoprinter Pin
Ravi Bhavnani21-Sep-07 3:59
professionalRavi Bhavnani21-Sep-07 3:59 
GeneralRe: Printtoprinter Pin
Saamir21-Sep-07 4:16
Saamir21-Sep-07 4:16 
Questionsaving graph as an xml file Pin
Mamphekgo Bahula21-Sep-07 3:25
Mamphekgo Bahula21-Sep-07 3:25 
AnswerRe: saving graph as an xml file Pin
Ravi Bhavnani21-Sep-07 4:01
professionalRavi Bhavnani21-Sep-07 4:01 
QuestionHow to use LoadFile method of RichTextbox ? Pin
nesaver8521-Sep-07 3:23
nesaver8521-Sep-07 3:23 
AnswerRe: How to use LoadFile method of RichTextbox ? Pin
Luc Pattyn21-Sep-07 3:45
sitebuilderLuc Pattyn21-Sep-07 3:45 
GeneralRe: How to use LoadFile method of RichTextbox ? Pin
nesaver8521-Sep-07 4:28
nesaver8521-Sep-07 4:28 
GeneralRe: How to use LoadFile method of RichTextbox ? Pin
Luc Pattyn21-Sep-07 5:14
sitebuilderLuc Pattyn21-Sep-07 5:14 
AnswerRe: How to use LoadFile method of RichTextbox ? Pin
Pete O'Hanlon21-Sep-07 3:50
mvePete O'Hanlon21-Sep-07 3:50 
QuestionProblem in TreeView Pin
stancrm21-Sep-07 2:18
stancrm21-Sep-07 2:18 
AnswerRe: Problem in TreeView Pin
DaveyM6921-Sep-07 2:24
professionalDaveyM6921-Sep-07 2:24 
QuestionDirectoryInfo UNC Path Pin
TheShihan21-Sep-07 2:18
TheShihan21-Sep-07 2:18 

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.