Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: ToolboxBitmap problem??? Pin
Heath Stewart16-Apr-04 10:24
protectorHeath Stewart16-Apr-04 10:24 
General"Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 6:57
RNEELY16-Apr-04 6:57 
GeneralRe: "Go To Error/Tag" and F4 Pin
garythom_work16-Apr-04 7:31
garythom_work16-Apr-04 7:31 
GeneralRe: "Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 8:15
RNEELY16-Apr-04 8:15 
GeneralRe: "Go To Error/Tag" and F4 Pin
Heath Stewart16-Apr-04 7:48
protectorHeath Stewart16-Apr-04 7:48 
GeneralRe: "Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 8:16
RNEELY16-Apr-04 8:16 
GeneralRe: "Go To Error/Tag" and F4 Pin
partyganger16-Apr-04 10:50
partyganger16-Apr-04 10:50 
Generalobject scope and destruction Pin
poolboy16-Apr-04 6:44
poolboy16-Apr-04 6:44 
I am new to c#. I have created an class where an sql connection is opened in the constructor and is closed and disposed in the destructor.

However, it appears that the destructor is not being called when the object goes out of scope. It is not called until I close the form, at which time I get a "Handle is not initialized" error.

Is this the way this is supposed to work? If so, is it possible to have a class that opens a connection upon construction and automatically disposes of it?
GeneralRe: object scope and destruction Pin
Dave Kreskowiak16-Apr-04 6:56
mveDave Kreskowiak16-Apr-04 6:56 
GeneralRe: object scope and destruction Pin
poolboy16-Apr-04 7:31
poolboy16-Apr-04 7:31 
GeneralRe: object scope and destruction Pin
Heath Stewart16-Apr-04 7:49
protectorHeath Stewart16-Apr-04 7:49 
GeneralRe: object scope and destruction Pin
Dave Kreskowiak16-Apr-04 8:16
mveDave Kreskowiak16-Apr-04 8:16 
GeneralRe: object scope and destruction Pin
scadaguy16-Apr-04 7:49
scadaguy16-Apr-04 7:49 
GeneralRe: object scope and destruction Pin
PaleyX26-May-04 11:03
PaleyX26-May-04 11:03 
Questionsystem string size? Pin
Anonymous16-Apr-04 6:24
Anonymous16-Apr-04 6:24 
AnswerRe: system string size? Pin
Heath Stewart16-Apr-04 6:29
protectorHeath Stewart16-Apr-04 6:29 
AnswerRe: system string size? Pin
Jeroen Landheer16-Apr-04 10:34
Jeroen Landheer16-Apr-04 10:34 
Generaltab control slow Pin
robmays16-Apr-04 5:47
robmays16-Apr-04 5:47 
GeneralRe: tab control slow Pin
Heath Stewart16-Apr-04 5:51
protectorHeath Stewart16-Apr-04 5:51 
GeneralRe: tab control slow Pin
robmays16-Apr-04 5:57
robmays16-Apr-04 5:57 
GeneralRe: tab control slow Pin
Heath Stewart16-Apr-04 6:00
protectorHeath Stewart16-Apr-04 6:00 
GeneralRe: tab control slow Pin
robmays16-Apr-04 5:52
robmays16-Apr-04 5:52 
GeneralImplementing Security in C# Through Any Hardware Pin
Hemant Mane16-Apr-04 5:30
Hemant Mane16-Apr-04 5:30 
GeneralRe: Implementing Security in C# Through Any Hardware Pin
Heath Stewart16-Apr-04 6:26
protectorHeath Stewart16-Apr-04 6:26 
GeneralRe: Implementing Security in C# Through Any Hardware Pin
partyganger16-Apr-04 10:57
partyganger16-Apr-04 10:57 

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.