Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > Random crash wh...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 4219 of 4320
Post > Topic >>

Random crash when ADO::Connection->close() is called

by Thomas <sachinladdha@[EMAIL PROTECTED] > Apr 26, 2008 at 02:40 AM

Hi,

I am working on a performance counter dll. In its collect function
database (access database) is queried to get the performance counter
information. The psuedo code is as below -


Collect()
{
CoInitialize(NULL);
{
ConnectionPtr connPtr;
connPtr.CoCreateInstance;


// Fetch data from database
connPtr.Close()// Crash here
connPtr.Release()



}
}


The crash occurs randomly when I call connPtr.Close(). The crash
occurs if I keep perfmon application running for around 10 mins
(sampling interval is 15 seconds).

So ConnPtr.Close() executes successfully for around 10 mins then it
crashes.
What could be the reason?

I am stuck here
any help is appreciated.

Thanks,
sachin
 




 1 Posts in Topic:
Random crash when ADO::Connection->close() is called
Thomas <sachinladdha@[  2008-04-26 02:40:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:51:44 CST 2008.