Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 23 total
Thread AV when post a ttable
Tue, Jul 27 2010 10:23 AMPermanent Link

Hershcu Sorin

Hello

I use the 2.03b17.

When i try to run the code TedbMytable.Post  it raise the error AV at
address 0060350E...

Since I know that it's mean that the object doesn't exists
I check the TedbMytable.state with the debugger and it's show "dsInsert"

Any other suggestions what can cause the problem?

Thanks
Sorin

Tue, Jul 27 2010 1:10 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Sorin


The thing that comes to mind is a linked event (eg AfterPost) doing something to a component that hasn't been created yet

Roy Lambert
Wed, Jul 28 2010 4:00 AMPermanent Link

Hershcu Sorin

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
> The thing that comes to mind is a linked event (eg AfterPost) doing
> something to a component that hasn't been created yet

Thanks Roy

but no, there are not events defined on this table

Thanks
Sorin

Wed, Jul 28 2010 4:26 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Sorin


In that case, if you haven't already, install madExcept. That will help you narrow it down.

Roy Lambert [Team Elevate]
Wed, Jul 28 2010 6:57 AMPermanent Link

Hershcu Sorin

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
> In that case, if you haven't already, install madExcept. That will help
> you narrow it down.

Thanks again Roy

It's a tough problem

I install the madExcept and even add some code to test it and it's work
but the TMyTable.Post code line raise the AV error without any reaction from
madExcept

Thanks
Sorin

Wed, Jul 28 2010 8:13 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Sorin

>I install the madExcept and even add some code to test it and it's work
>but the TMyTable.Post code line raise the AV error without any reaction from
>madExcept

I find that very difficult to believe. Have you enabled MadExcept for the project the AV occurs in? Its not automatically enabled for every project.

Roy Lambert [Team Elevate]
Wed, Jul 28 2010 9:15 AMPermanent Link

Dale Derix

Here are a couple of things you might try.

A.  Disconnect any TDataSource controls that are connected to the table.

B.  Run a repair on the table.

C.  Try creating a brand new table and see what happens.

Dale
Wed, Jul 28 2010 4:46 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Sorin,

<< Any other suggestions what can cause the problem? >>

In such cases, it's a good idea to try a similar Post using the EDB Manager.
If it works in the EDB Manager, then it's a problem in your application.  If
you also get an AV in the EDB Manager, then try to repair the table and see
if that helps.

--
Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 29 2010 1:37 AMPermanent Link

Hershcu Sorin

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
> In such cases, it's a good idea to try a similar Post using the EDB
> Manager. If it works in the EDB Manager, then it's a problem in your
> application.  If you also get an AV in the EDB Manager, then try to repair
> the table and see if that helps.

I try with the manager and it's ok.
The problem is in my code but I couldn't find it yet.

Thanks
Sorin

Thu, Jul 29 2010 10:40 AMPermanent Link

Hershcu Sorin

Hello

The workaround I found is to create a new datamodule with a copy of the
problematic ttable.
I leave the new datamodule on the auto-create forms list and thats all. I
never call any method or procedure
on the new datamodule but now the MyTable.post on the old datamodule works
without AV.

I don't see any logic on that workaround.
There is definitely some problem with the create of the old datamodule but I
can't figure out what.
I'll keep on searching.

Thanks
Sorin

Page 1 of 3Next Page »
Jump to Page:  1 2 3
Image