Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataModules in COM Servers

Status
Not open for further replies.

MagicFrisbee

Programmer
Feb 22, 2006
74
US
I have designed a COM Server on paper. It will create, edit, and delete object rows in a database. We access our AS/400 databases using BDE.

So, what's my best strategy? Should one DataModule be created for the COM library? When would I create and free it? If I set up my objects with ciMultiInstance and tmApartment parameters, are calls to my datamodule thread-safe (like, can I do a FindKey and 100% expect the next line to be reading the row I found with FindKey?)

Or do I have each object own its own DataModule. Wouldn't that create havoc with the BDE having so many clients?

Dephi documentation is good at explaining COM and good at explaining data modules, but no good at explaining the two technologies put together. Any tips or experience would be appreciated.

"Roj"

GIS Programmer
City of Orem, UT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top