Re: TCPServer & MSSQL & Threads (Newbie Question)



That should have been
DataModuleVariable := TYourDataModule.create(nil);
since referring to the Application in a thread would be a problem

Brian


How do you create an Instance of the DataModule?

DataModuleVariable := TYourDataModule.create(application);

--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: TCPServer & MSSQL & Threads (Newbie Question)
    ... What about the GlobalVariables, does using the 'ThreadVar' work or ... You can create an instance of the datamodule for each ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: Corrupt DataModule?
    ... I still think that problem is somwhere in yours code, ... First thing to check - make sure that DataModule is first ... referring it. ... Prev by Date: ...
    (borland.public.delphi.database.ado)
  • Re: a question about Date Module
    ... There are no hard rules here. ... If it is a large application I may use more than one datamodule ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: Delphi 2005 - Lobotomized!
    ... Deborah Pate (TeamB) wrote: ... once I've created an Active X dll with a Datamodule. ... with the Run/Register ActiveX server option, but if I try to use the ...
    (borland.public.delphi.non-technical)