Google グループは Usenet の新規の投稿と購読のサポートを終了しました。過去のコンテンツは引き続き閲覧できます。
表示しない

Access violation in New Field Editor

閲覧: 80 回
最初の未読メッセージにスキップ

Gunnar Andersson

未読、
2003/05/20 5:22:192003/05/20
To:
I posted this in delphi.ide but got no answer. Perhaps someone here know
something about this problem:

Suddenly I can't open the New Field Editor without errors. Here are the
steps:

1) Dblclick on a table component.
2) Right click in Field Editor and chose "New Field...".
3) I get an "AV at address 400056FC in module 'rtl70.bpl'. Read of
adress 04ED2BF8."
4) I click OK and the New Field Editor opens.
5) I type one letter in the Name field and get the same error. OK.
6) I chose a field type. After that no more errors and the field is
added when I close the dialog with the OK button.
7) Same procedure every time I open the New Field Editor.

The project is huge with 500+ units and an exe size of 9 Mb. If I start
a new project, add a table component and invokes the New Field Editor
there is no problems.

Any idea what is going on and what I can do to get rid of the AV?

Gunnar Andersson

Dave Nottage (TeamB)

未読、
2003/05/20 5:56:562003/05/20
To:
Gunnar Andersson wrote:
> I posted this in delphi.ide but got no answer. Perhaps someone here
> know something about this problem:
>
> Suddenly I can't open the New Field Editor without errors. Here are
> the steps:
>
> 1) Dblclick on a table component.
> 2) Right click in Field Editor and chose "New Field...".
> 3) I get an "AV at address 400056FC in module 'rtl70.bpl'. Read of
> adress 04ED2BF8."

Strange that I didnt see it, because I was having exactly the same problem.
In any event, its more than likely a 3rd party package/expert. I just
haven't worked out which one I was using that was doing it. (It's not
GExperts, though)

--
Dave Nottage (TeamB)


Gunnar Andersson

未読、
2003/05/20 7:23:052003/05/20
To:
Dave Nottage (TeamB) wrote:
> In any event, its more than likely a 3rd party package/expert. I just
> haven't worked out which one I was using that was doing it. (It's not
> GExperts, though)
>
I googled groups for 'New Field Editor Bug Delphi' and found this
(written 2001-11-06 by Vitaliy Lyanchevskiy in vcl.components.writing):

"It's the bug of Delphi IDE in implementation of
DB.RegisterFieldsProc called during DB.RegisterFields.

RegisterFieldsProc is implemented by procedure RegFields
in \Source\Property Editors\DSDefine.pas

Short description of the BUG:
Field classes are always added to internal list but never removed.
So when having registered fields package are unloaded from IDE (or reloaded)
the list can contain "hanging" field references
what cause AV in 'Fields editor | New Field ...'.
AV happens only when package has been unloaded
or has been loaded into other address space
(e.g. Package have default {$IMAGEBASE $400000})."

I have unchecked all CLX, DevExpress and Bold packages in Project
Options. Could this be an explanation???

Gunnar Andersson

Brian Cook

未読、
2003/05/20 11:55:272003/05/20
To:
> I googled groups for 'New Field Editor Bug Delphi' and found this
> (written 2001-11-06 by Vitaliy Lyanchevskiy in vcl.components.writing):
>
> "It's the bug of Delphi IDE in implementation of
> DB.RegisterFieldsProc called during DB.RegisterFields.
>
> RegisterFieldsProc is implemented by procedure RegFields
> in \Source\Property Editors\DSDefine.pas
>
> Short description of the BUG:
> Field classes are always added to internal list but never removed.
> So when having registered fields package are unloaded from IDE (or
reloaded)
> the list can contain "hanging" field references
> what cause AV in 'Fields editor | New Field ...'.
> AV happens only when package has been unloaded
> or has been loaded into other address space
> (e.g. Package have default {$IMAGEBASE $400000})."
>
> I have unchecked all CLX, DevExpress and Bold packages in Project
> Options. Could this be an explanation???

The problem is also present in Delphi 6. The only reliable work-around I
have discovered is to restart Delphi. Anything else can lead to data
corruption.

The QC report is 2659. Feel free to rate it, vote for it, or provide
comments. And, if you're a sysop, feel free to (finally) open it.

- Brian

Michael Rodriguez

未読、
2003/05/20 17:01:162003/05/20
To:
> Suddenly I can't open the New Field Editor without errors. Here are the
> steps:
>


I get the same thing. All I can do at that point is close and re-start
Delphi.

Mike


Dave Nottage (TeamB)

未読、
2003/05/20 17:35:472003/05/20
To:
Brian Cook wrote:
> The QC report is 2659. Feel free to rate it, vote for it, or provide
> comments. And, if you're a sysop, feel free to (finally) open it.

He's receiving an AV, not a "Class not found" error.

--
Dave Nottage (TeamB)


Brian Cook

未読、
2003/05/20 21:06:282003/05/20
To:
> > The QC report is 2659. Feel free to rate it, vote for it, or provide
> > comments. And, if you're a sysop, feel free to (finally) open it.
>
> He's receiving an AV, not a "Class not found" error.

Two things...

1. It's the same bug just a different symptom.

2. Please read the "steps".

- Brian

Brian Cook

未読、
2003/05/20 21:08:352003/05/20
To:

Which, for this particular bug, is very important. Not restarting Delphi
could lead to data corruption (e.g. corrupt DFM).

- Brian

Gunnar Andersson

未読、
2003/05/21 1:55:022003/05/21
To:
Restart doesn't help me. As soon as I reopen my huge project the bug in
the New Field Editor hits me. So far I have not had any data corruption.

/Gunnar Andersson


Dave Nottage (TeamB)

未読、
2003/05/21 2:17:402003/05/21
To:
Brian Cook wrote:
>> He's receiving an AV, not a "Class not found" error.
>
> Two things...
>
> 1. It's the same bug just a different symptom.

If the steps can produce an AV at the same point, I'll agree with you that
it's probably the same bug.

> 2. Please read the "steps".

Did so. They don't say anything about an AV. When I have some time to look
at it, I'll check what happens.

--
Dave Nottage (TeamB)


Brian Cook

未読、
2003/05/21 2:20:152003/05/21
To:
> Restart doesn't help me. As soon as I reopen my huge project the bug in
> the New Field Editor hits me.

Try this...

- Start Delphi
- Execute Project / Options
- Navigate to the Packages tab
- Make a list of all the packages that are not loaded (not checked)

- Click Cancel to close the dialog
- Open your project
- Execute Project / Options
- Navigate to the Packages tab

Are the two lists different? Which packages are different?


> So far I have not had any data corruption.

I wish you continued good luck and I hope you get passed the access
violations, Brian

Brian Cook

未読、
2003/05/21 3:23:582003/05/21
To:
> >> He's receiving an AV, not a "Class not found" error.
> >
> > Two things...
> >
> > 1. It's the same bug just a different symptom.
>
> If the steps can produce an AV at the same point, I'll agree with you that
> it's probably the same bug.

I know for a fact that it's the same bug described by Vitaliy Lyanchevskiy.
The symptoms are a bit different but the dangling reference is definately
the bug.


> > 2. Please read the "steps".
>
> Did so. They don't say anything about an AV. When I have some time to look
> at it, I'll check what happens.

Look again...

- An access violation should occur in rtl60.bpl

Brian

Dave Nottage (TeamB)

未読、
2003/05/21 3:55:452003/05/21
To:
Brian Cook wrote:
>> Did so. They don't say anything about an AV. When I have some time
>> to look at it, I'll check what happens.
>
> Look again...
>
> - An access violation should occur in rtl60.bpl

OK.. so it was hiding in there <g> Thanks for the correction.

As per above, I'll have a look at it, hopefully soon.

--
Dave Nottage (TeamB)


Brian Cook

未読、
2003/05/21 12:11:162003/05/21
To:

> As per above, I'll have a look at it, hopefully soon.

Thanks. Don't rush. For me, it's annoying but I've learned to live with
it. The report hasn't changed (no new ratings or votes or comments) so
Gunnar and Michael must not be that interested in getting the problem fixed.

- Brian

Gunnar Andersson

未読、
2003/05/21 12:21:092003/05/21
To:
Brian Cook wrote:
> Try this...

> Are the two lists different? Which packages are different?

Thanks Brian! There where differences and when I removed them the New
Field Editor works without AV!

Here are the differences (unchecked bpl):

Delphi at startup With my project loaded
====================== =======================
Borland ADO
Borland Decision Cube
Interbase updatebuilder

I unchecked Decision Cube in Delphi and checked Borland ADO and
Interbase updatebuilder in my project. Then the AV:s disappeared!

Gunnar Andersson


Gunnar Andersson

未読、
2003/05/21 13:23:122003/05/21
To:
Brian Cook wrote:
> Thanks. Don't rush. For me, it's annoying but I've learned to live with
> it. The report hasn't changed (no new ratings or votes or comments) so
> Gunnar and Michael must not be that interested in getting the problem fixed.

Ok, now I downloaded the QC client and tried to vote. But I got
confused: The report 2659 is for D6 and says "class not found" error. I
have (had) the problem in D7 and my symptom was an AV. I need guidance,
please!

Gunnar Andersson


Brian Cook

未読、
2003/05/21 14:37:182003/05/21
To:
> > Thanks. Don't rush. For me, it's annoying but I've learned to live
with
> > it. The report hasn't changed (no new ratings or votes or comments) so
> > Gunnar and Michael must not be that interested in getting the problem
fixed.
>
> Ok, now I downloaded the QC client and tried to vote.

Glad to see your interest!


> But I got confused: The report 2659 is for D6

That's the version of Delphi where I first saw the problem. The "version"
is supposed to indicate the earliest version where the problem can be
confirmed. So, the report also applies to Delphi 7.


> and says "class not found" error.

That's the symptom I encountered from the bug.


> I have (had) the problem in D7 and my symptom was an AV. I need
> guidance, please!

First, read through the "steps" and well as the "description".

If you feel the report does not adaquately describe the problem, add a
comment and give the report a low rating. Be sure to raise the rating if I
make the improvements you've suggested!

If you feel the report doesn't at all describe the problem you've
encountered, create a new report.

If you feel the report is good the way it is, give it a good rating.

If the problem is important to you, give the report some of your five votes.

Does that help?

- Brian

Gunnar Andersson

未読、
2003/05/21 15:24:142003/05/21
To:
Brian Cook wrote:
> Does that help?

Yep, I have added a comment that describes the problems I had and the
fix I used.

Gunnar Andersson

新着メール 0 件