Help: Database and Threads

I am trying to connect a TDatabase object to an Oracle database. I set
the connected property to TRUE inside a secondary thread so that the
connection process isnt in the main control flow. The problem is that
thought the TDatabase object is a global variable, when the thread
finishes, any reference to the TDatabase object results in a Access
Violation Error. Has anybody solve this problem ?