Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Question about TEDBSession
Wed, Mar 31 2010 11:19 AMPermanent Link

Josselin

Hi,

I use ElevateDB in a program that consists of a main executable and several DLLs.

This program can be used in local session or remote session.

Should I put a TEDBSession component in each dll?
Should I put a TEDBEngine component  in each  dll? Because every time I open a dll I have an error message that tells me that "The Configuration Path is empty".

Thank you for your help.

Bruno
Wed, Mar 31 2010 2:02 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Josselin,

<< Should I put a TEDBSession component in each dll? Should I put a
TEDBEngine component  in each  dll? Because every time I open a dll I have
an error message that tells me that "The Configuration Path is empty". >>

Yes, each DLL will behave like a separate application.  You cannot share
objects between DLLs and the main EXE without configuring the FastMM memory
manager to do so.   What version of Delphi are you using ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Apr 1 2010 3:05 AMPermanent Link

Josselin

I'm using Delphi 2009.

What is the FastMM memory manager ?

Should I put a TEDBEngine component  in each  dll ?

Bruno

"Tim Young [Elevate Software]" wrote:

Josselin,

<< Should I put a TEDBSession component in each dll? Should I put a
TEDBEngine component  in each  dll? Because every time I open a dll I have
an error message that tells me that "The Configuration Path is empty". >>

Yes, each DLL will behave like a separate application.  You cannot share
objects between DLLs and the main EXE without configuring the FastMM memory
manager to do so.   What version of Delphi are you using ?

--
Tim Young
Elevate Software
www.elevatesoft.com
Thu, Apr 1 2010 7:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Josselin,

<< I'm using Delphi 2009.

What is the FastMM memory manager ? >>

It is included with Delphi 2009 as the default memory manager.  You can
enable the shared memory manager for the DLLs by following these notes:

http://edn.embarcadero.com/article/33416#20SharingMemoryManagersBetweenAnApplicationAndLibraries

However, I actually misstated what you can do with the shared memory
manager.  You can share dynamic arrays and strings with it, but I don't
think you can share object instances due to differences in the VMTs (virtual
method tables) for the DLL vs. the EXE.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image