Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- From: "Dvorak" <goran1978@xxxxxxxxx>
- Date: 28 Nov 2006 01:52:06 -0800
Daniel Crichton wrote:
Sorry if this sounds like a stupid suggestion, but did you switch ADO to
free-threaded? By default ADO is apartment-threaded (both-threaded), so
calls will be serialized - this is so that it can support Access/Jet which
uses a single-threaded driver. You can change ADO to free-threaded by
editing the registry, you do this using the ADOFre15.reg file located in the
C:\Program Files\Common Files\System\ADO folder.
I'm using MSSql Server as database, so I don't think that changing in a
free-threaded will do something good. But, I'm somehow desperate and I
tried this too, with no luck of course.
If the database you are connecting to has a driver that support connectionThe connection to the database isn't shared, so I don't have to be
pooling then trying to share a connection via threads may well result in
slower performance. It's also possible that the connection could be dropped
or the link to the server broken in some way, so you'll need to make sure
you handle this possibility too.
Dan
afraid from this part. Only a single thread uses it.
.
- Follow-Ups:
- References:
- ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- From: Dvorak
- Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- From: Stephen Howe
- Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- From: Dvorak
- Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- From: Daniel Crichton
- ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- Prev by Date: Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- Next by Date: Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- Previous by thread: Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- Next by thread: Re: ADO in multithreaded: Application Verifier (with WinDbg) gives "Invalid Handle" at the end of my application
- Index(es):
Relevant Pages
|
|