Ado, Threads (and videotape)
From: Josu Z. (josu_at_leako.com)
Date: 03/16/05
- Previous message: Bill C: "Re: Master/Detail with ADODatasets (again)"
- Next in thread: Guillem: "Re: Ado, Threads (and videotape)"
- Reply: Guillem: "Re: Ado, Threads (and videotape)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Mar 2005 12:14:20 +0100
Ado, Threads (and videotape)
The idea is this.
I have an object whose properties can be written and read form different
threads.
I protect the attributes with a TMultiReadExclusiveWriteSynchronizer.
The thing is that i want some of these attributes be persistent in a Access
BD (using ADO). I would like the object to write in the BD, within the
SetValue functions of his properties.
But doing this, I write in the BD within the context of the threads, and any
of the thread should have his own ADOConnection. Shouldn't it?
So How could I use those different ADOConnection within the SetValue of the
property??? Any ideas ???
I have this working with one ADOConnection and using transactions, but don't
seems to be the better way
thanksssss
- Previous message: Bill C: "Re: Master/Detail with ADODatasets (again)"
- Next in thread: Guillem: "Re: Ado, Threads (and videotape)"
- Reply: Guillem: "Re: Ado, Threads (and videotape)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|