Mega Search
23.2 Million


Sign Up

Make a donation  
Sessions and threads and datamodule question  
News Group: embarcadero.public.bde.general

Hi,
can anyone confirm that the dabases (Paradox) created and used by the main 
thread can all use the default Session and only the threads that  access 
these tables needs "private" Sessions?

Second, I started out using a Datamodule to configure the thread database 
access using the IDE and then created the datamodule in my thread 
constructor, the creation works fine but when I try to destroy (delete) the 
datamodule the app hangs. I then tried creating the TTable and TSession 
objects "manually" in the threads constructor and with this way it does not 
hang when I destroy it. Why?

Regards
Goran

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 24-Apr-2012, at 11:33 AM EST
From: Goran Ekstrom
 
Re: Sessions and threads and datamodule question  
News Group: embarcadero.public.bde.general
In BCB Pro 5

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Apr-2012, at 12:09 PM EST
From: Goran Ekstrom