Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 17 total
Thread Using EDB in a dll
Sat, Jul 28 2007 12:37 PMPermanent Link

Michael Fullerton
Any known problems using EDB in a dll? I am trying to convert over a
Palm conduit from DBISAM to EDB. It crashes right away when its
loaded.
Mon, Jul 30 2007 8:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Any known problems using EDB in a dll? I am trying to convert over a Palm
conduit from DBISAM to EDB. It crashes right away when its loaded. >>

No, it shouldn't be any different than DBISAM in this respect.  Are you
getting an AV, or is it some other error message ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Aug 7 2007 7:39 PMPermanent Link

Michael Fullerton
On Mon, 30 Jul 2007 20:23:10 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Michael,
>
><< Any known problems using EDB in a dll? I am trying to convert over a Palm
>conduit from DBISAM to EDB. It crashes right away when its loaded. >>
>
>No, it shouldn't be any different than DBISAM in this respect.  Are you
>getting an AV, or is it some other error message ?

Yes its an AV. Then I get a 216 runtime error.
Wed, Aug 8 2007 3:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Yes its an AV. Then I get a 216 runtime error. >>

Are you able to debug this in the IDE ?  If so, could you send me the code
that you're using along with where it is raising an AV ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Aug 8 2007 6:04 PMPermanent Link

Michael Fullerton
On Wed, 8 Aug 2007 15:45:04 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Michael,
>
><< Yes its an AV. Then I get a 216 runtime error. >>
>
>Are you able to debug this in the IDE ?  If so, could you send me the code
>that you're using along with where it is raising an AV ?

No I tried setting a breakpoint but it doesn't even get to the first
line of code in the .dpr or Datamodule OnCreate event. When running
from the IDE the first error is a 401 database does not exist. I don't
know why though as the dll is not used until a hot synch. My EDB
components are closed and only opened in the Datamodule OnCreate
event.
Thu, Aug 9 2007 2:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< No I tried setting a breakpoint but it doesn't even get to the first line
of code in the .dpr or Datamodule OnCreate event. When running from the IDE
the first error is a 401 database does not exist. I don't know why though as
the dll is not used until a hot synch. My EDB components are closed and only
opened in the Datamodule OnCreate event. >>

Something is trying to access the database when the DLL is starting up, and
it is encountering an error.  If you set a module load breakpoint in the IDE
(Run/Add Breakpoint/Module Load Breakpoint) you should be able to step
through the code from the point of loading.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Aug 9 2007 6:46 PMPermanent Link

Michael Fullerton
On Thu, 9 Aug 2007 14:54:51 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Michael,
>
><< No I tried setting a breakpoint but it doesn't even get to the first line
>of code in the .dpr or Datamodule OnCreate event. When running from the IDE
>the first error is a 401 database does not exist. I don't know why though as
>the dll is not used until a hot synch. My EDB components are closed and only
>opened in the Datamodule OnCreate event. >>
>
>Something is trying to access the database when the DLL is starting up, and
>it is encountering an error.  If you set a module load breakpoint in the IDE
>(Run/Add Breakpoint/Module Load Breakpoint) you should be able to step
>through the code from the point of loading.

I don't see how that is helpful as I can only step through the
assembly code. The exception appears to be called before any of my
code is even run. It is being raised in the routine called at line
7C812A55 call dword ptr [$7c801508]
Fri, Aug 10 2007 1:16 AMPermanent Link

Michael Fullerton
On Thu, 9 Aug 2007 14:54:51 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Michael,
>
><< No I tried setting a breakpoint but it doesn't even get to the first line
>of code in the .dpr or Datamodule OnCreate event. When running from the IDE
>the first error is a 401 database does not exist. I don't know why though as
>the dll is not used until a hot synch. My EDB components are closed and only
>opened in the Datamodule OnCreate event. >>
>
>Something is trying to access the database when the DLL is starting up, and
>it is encountering an error.  If you set a module load breakpoint in the IDE
>(Run/Add Breakpoint/Module Load Breakpoint) you should be able to step
>through the code from the point of loading.

The 401 error was something else and I've resolved that. However I
still am getting the AV and the 216 error.
Fri, Aug 10 2007 12:19 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< I don't see how that is helpful as I can only step through the assembly
code. The exception appears to be called before any of my code is even run.
It is being raised in the routine called at line 7C812A55 call dword ptr
[$7c801508] >>

The edbcomps.pas unit is in the path for ElevateDB's units, so at the very
least you should be able to step into it if the AV is indeed coming from
EDB.   If the AV is occurring before the initialization section of the
edbcomps.pas unit, then it most likely isn't coming from EDB.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Aug 10 2007 9:32 PMPermanent Link

Michael Fullerton
On Fri, 10 Aug 2007 12:19:01 -0500, "Tim Young [Elevate Software]"
<timyoung@elevatesoft.com> wrote:

>Michael,
>
><< I don't see how that is helpful as I can only step through the assembly
>code. The exception appears to be called before any of my code is even run.
>It is being raised in the routine called at line 7C812A55 call dword ptr
>[$7c801508] >>
>
>The edbcomps.pas unit is in the path for ElevateDB's units, so at the very
>least you should be able to step into it if the AV is indeed coming from
>EDB.   If the AV is occurring before the initialization section of the
>edbcomps.pas unit, then it most likely isn't coming from EDB.

For some reason I can't get breakpoints to work. But through logging I
have traced the problem to the DataModuleDestroy event. All I do there
is set the DBEngine.Active:= False; Why would this cause an AV?
Page 1 of 2Next Page »
Jump to Page:  1 2
Image