Click here to Skip to main content
15,917,177 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can Microsoft beat Apple? Pin
Eric Gunnerson (msft)12-Jun-02 8:10
Eric Gunnerson (msft)12-Jun-02 8:10 
AnswerRe: Can Microsoft beat Apple? Pin
James T. Johnson12-Jun-02 9:51
James T. Johnson12-Jun-02 9:51 
AnswerRe: Can Microsoft beat Apple? Pin
Andy Smith12-Jun-02 19:12
Andy Smith12-Jun-02 19:12 
GeneralRe: Can Microsoft beat Apple? Pin
gicio12-Jun-02 21:49
gicio12-Jun-02 21:49 
GeneralRe: Can Microsoft beat Apple? Pin
Andy Smith13-Jun-02 10:34
Andy Smith13-Jun-02 10:34 
GeneralRe: Can Microsoft beat Apple? Pin
gicio27-Jun-02 3:32
gicio27-Jun-02 3:32 
Question.TTF files? Pin
Rickard Andersson2012-Jun-02 5:46
Rickard Andersson2012-Jun-02 5:46 
GeneralProblem when closing DB in Destructor Pin
LaMagra12-Jun-02 5:12
LaMagra12-Jun-02 5:12 
Im using a mySQL DB and some obj that does the connect to it (called DBOperation).
in the DBOperation() constructor I do my connecting to the DB

myDb = new OleDbConnection(myConnectionString);
myDb.Open();

then i got some funtions for reading/writing..

in my ~DBOperation() destructor I call a Disconnect() fkt where i do:
myDB.Close

but while Calling that i get a Exception : "Handle is not initialized"
here is the full Exception Text:

Exception: Handle is not initialized.
at System.WeakReference.get_Target()
at System.Data.Common.WeakReferenceCollection.Close(Boolean flag)
at System.Data.OleDb.OleDbConnection.CloseReferences(Boolean canceling)
at System.Data.OleDb.OleDbConnection.DisposeManaged()
at System.Data.OleDb.OleDbConnection.Close()
at DBTest.DBOperation.Disconnect()
at DBTest.DBOperation.Finalize()

Can anyone tell me why this happens ... any Help would be great
Yours LaMagra
GeneralRe: Problem when closing DB in Destructor Pin
Rickard Andersson2012-Jun-02 5:44
Rickard Andersson2012-Jun-02 5:44 
GeneralTrim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 0:14
Rickard Andersson2012-Jun-02 0:14 
GeneralRe: Trim() doesn't work!! Pin
David Wengier12-Jun-02 0:46
David Wengier12-Jun-02 0:46 
GeneralRe: Trim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 1:38
Rickard Andersson2012-Jun-02 1:38 
GeneralRe: Trim() doesn't work!! Pin
Nish Nishant12-Jun-02 0:48
sitebuilderNish Nishant12-Jun-02 0:48 
GeneralRe: Trim() doesn't work!! Pin
Rickard Andersson2012-Jun-02 1:40
Rickard Andersson2012-Jun-02 1:40 
GeneralRe: Trim() doesn't work!! Pin
AndyG12-Jun-02 4:05
AndyG12-Jun-02 4:05 
GeneralRe: Trim() DOES work!! Pin
leppie12-Jun-02 22:03
leppie12-Jun-02 22:03 
GeneralControl ID's Pin
vikramlinux11-Jun-02 19:22
vikramlinux11-Jun-02 19:22 
GeneralRe: Control ID's Pin
James T. Johnson11-Jun-02 19:20
James T. Johnson11-Jun-02 19:20 
GeneralRe: Control ID's Pin
vikramlinux11-Jun-02 19:55
vikramlinux11-Jun-02 19:55 
GeneralRe: Control ID's Pin
Rama Krishna Vavilala12-Jun-02 0:12
Rama Krishna Vavilala12-Jun-02 0:12 
GeneralRe: Control ID's Pin
Nish Nishant11-Jun-02 19:38
sitebuilderNish Nishant11-Jun-02 19:38 
GeneralRe: Control ID's Pin
vikramlinux12-Jun-02 0:28
vikramlinux12-Jun-02 0:28 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 0:44
sitebuilderNish Nishant12-Jun-02 0:44 
GeneralRe: Control ID's Pin
vikramlinux12-Jun-02 0:43
vikramlinux12-Jun-02 0:43 
GeneralRe: Control ID's Pin
Nish Nishant12-Jun-02 0:55
sitebuilderNish Nishant12-Jun-02 0:55 

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.