Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems using CodeGun 4.14

4 views
Skip to first unread message

Eivind Bakkestuen [TPX]

unread,
Nov 3, 2002, 7:59:59 AM11/3/02
to
Why not run codegun under Delphi and see where it breaks in the debugger?

--

Eivind Bakkestuen [TPX]

Please, no private email unless requested.
This newsgroup is searchable at http://www.tamaracka.com
Visit TurboPower's new Foundry at http://community.turbopower.com


"John Myren" <john....@jmdata.no> wrote in message
news:rhODzYzg...@tpsmail01.turbopower.net...
> Delphi 6 update 2, FF2.12, FFSourceWriter 4.14, downloaded source and
> recompiled FFCodeGun.
>
> When in OOP Mode and selecting several tables and hitting the button for
> execute on several tables I alwas get the following error message:
>
> "Access violation at address 00403A82 i module 'FFCG.EXE'. Read of address
> 00000042."
>
> When i try one table at a time it all works just fine.
>
> Can anyone help with this?
>
> John Myren
>
>


John Myren

unread,
Nov 3, 2002, 7:42:38 AM11/3/02
to

John Myren

unread,
Nov 3, 2002, 9:37:01 AM11/3/02
to
When I run CodeGun under the IDE i get the following message:

"Project FFCG.exe raised exception class EAccessViolation with message
'Access violation at address 00403A82 in module 'FFCG.exe'. Read of address
0000002E'."

It stops at line 975 in uSourceGenerator which say
"AddExternalBlob(aIndex, VarName);"


"Eivind Bakkestuen [TPX]" <eivind.b...@tpx.turbopower.com> skrev i
melding news:8Hr6tiz...@tpsmail01.turbopower.net...

John Myren

unread,
Nov 3, 2002, 10:25:43 AM11/3/02
to
When i use Step Into and then Step Over it breaks the second time it passes
line 1162 which says:
"if (Owner as TffTblBaseWriter).WantFieldConstants"

I have also tried the precompiled CodeGun, and I have the same problem
there. Thats why I tried to compile the source.

"Eivind Bakkestuen [TPX]" <eivind.b...@tpx.turbopower.com> skrev i

melding news:umwjLl0g...@tpsmail01.turbopower.net...
> My guess is that it crashes somewhere in the call on the line above (the
> debugger often marks the following line). Put a breakpoint on the
> AddFields() call and trace into that, or trace into the AddExternalBlob
> afterwards.
>
> (FWIW, I've tried running a couple of my databases through the
pre-compiled
> CodeGun utility in OOP mode but I don't get an exception. Do you?)


>
> --
>
> Eivind Bakkestuen [TPX]
>
> Please, no private email unless requested.
> This newsgroup is searchable at http://www.tamaracka.com
> Visit TurboPower's new Foundry at http://community.turbopower.com
>
>
> "John Myren" <john....@jmdata.no> wrote in message

> news:toQ6tY0g...@tpsmail01.turbopower.net...

Eivind Bakkestuen [TPX]

unread,
Nov 3, 2002, 9:58:55 AM11/3/02
to
My guess is that it crashes somewhere in the call on the line above (the
debugger often marks the following line). Put a breakpoint on the
AddFields() call and trace into that, or trace into the AddExternalBlob
afterwards.

(FWIW, I've tried running a couple of my databases through the pre-compiled
CodeGun utility in OOP mode but I don't get an exception. Do you?)

--

Eivind Bakkestuen [TPX]

Please, no private email unless requested.
This newsgroup is searchable at http://www.tamaracka.com
Visit TurboPower's new Foundry at http://community.turbopower.com


"John Myren" <john....@jmdata.no> wrote in message

news:toQ6tY0g...@tpsmail01.turbopower.net...

Jean-Francois Nifenecker

unread,
Nov 3, 2002, 2:54:34 PM11/3/02
to
John Myren wrote:
>
> When I run CodeGun under the IDE i get the following message:
>
> "Project FFCG.exe raised exception class EAccessViolation with message
> 'Access violation at address 00403A82 in module 'FFCG.exe'. Read of address
> 0000002E'."
>
> It stops at line 975 in uSourceGenerator which say
> "AddExternalBlob(aIndex, VarName);"
>

Hi John,
as I've a v.4.15 in the pipeline, I'd wish to check the problem you're
getting and fix it in that release. Seems to me the External blob
handling has a bug, as pointed out by Hannes. I'll work on this
to-morrow and come back then.

Best regards,
----
Jean-Francois Nifenecker, Bordeaux (EU)
jean-francoi...@XlaposteX.XnetX
(remove X's to reply - retirez les X dans l'adresse de reponse)

Hannes Danzl [TPX]

unread,
Nov 3, 2002, 2:38:02 PM11/3/02
to
that means that probably Owner is nil ...

--
Hannes

-> Han...@danzl.lznad.at (remove .lznad) / http://www.danzl.at
FF Foundry at http://community.turbopower.com/
Newsgroup search at http://www.tamaracka.com/search.htm
Fixes and updates at ftp://ftp.turbopower.com/pub/flash/updates/


"John Myren" <john....@jmdata.no> wrote in message

news:P6qf7z0g...@tpsmail01.turbopower.net...

John Myren

unread,
Nov 9, 2002, 11:06:09 AM11/9/02
to
I still have a problem with CodeGun and Sourcewirter 4.15 and marking
several tables to generate sourcecode.

In CodeGun 4.15 I Get the error message:
Violation d'accès à l'adresse 00403D54 dans le module 'FFCG.exe' Lecture de
l'adresse CDECEFF8

I am also not able to compile the ffSouceWriter415.
Wrong unit name JFN_Settings in uSourceSyntax, when correcting this problem
and try to build i get the following error:
[Error] ffCGmain.pas(1928): Cannot assign to a read-only property
[Fatal Error] FFCG.dpr(10): Could not compile used unit 'ffCGmain.pas'

John Myren

"Jean-Francois Nifenecker" <jean-francoi...@XlaposteX.XnetX> skrev
i melding news:3DC64174...@XlaposteX.XnetX...
> John Myren wrote:
> >
> > [...]


> > When in OOP Mode and selecting several tables and hitting the button for
> > execute on several tables I alwas get the following error message:

> > [...]


> > Can anyone help with this?
> >
>

> Hello John and all Flashers,
>
> I've uploaded a preview of v.4.15 in binaries. Seems to work on my
> side ;-)
> Could you test this and report any problem?

Jean-Francois Nifenecker

unread,
Nov 9, 2002, 1:46:45 PM11/9/02
to
John Myren wrote:
>
> I still have a problem with CodeGun and Sourcewirter 4.15 and marking
> several tables to generate sourcecode.
>
> In CodeGun 4.15 I Get the error message:
> Violation d'accès à l'adresse 00403D54 dans le module 'FFCG.exe' Lecture de
> l'adresse CDECEFF8
>
> I am also not able to compile the ffSouceWriter415.
> Wrong unit name JFN_Settings in uSourceSyntax, when correcting this problem
> and try to build i get the following error:
> [Error] ffCGmain.pas(1928): Cannot assign to a read-only property
> [Fatal Error] FFCG.dpr(10): Could not compile used unit 'ffCGmain.pas'
>

John,
I'll look into that before monday and come back asap.

John Myren

unread,
Nov 10, 2002, 10:09:04 AM11/10/02
to
I have sendt you the DB on e-mail.
I have tried the mythic DB and it worked without a problem.
I do not have blobs in my DB.

I will just wait to see what you can find out from my DB.

John

"Jean-Francois Nifenecker" <jean-francoi...@XlaposteX.XnetX> skrev
i melding news:3DCE11BE...@XlaposteX.XnetX...

> John,
>
> I'm afraid I can't reproduce the failure you meet.
> Could you try this, please:
> Using MythicDB and adding dummy external blobs to some tables,
> test with FFCG 4.15. This doesn't hang on my side. What happens
> on yours?
>
> I'd guess there's something else. If you accept, would you send
> me your (empty) DB, together with the corresponding .gun file
> (generated using FFCG 4.15) so that I can find the offending code?

Jean-Francois Nifenecker

unread,
Nov 10, 2002, 2:58:11 PM11/10/02
to
John Myren wrote:
>
> I have sendt you the DB on e-mail.
> I have tried the mythic DB and it worked without a problem.
> I do not have blobs in my DB.
>
> I will just wait to see what you can find out from my DB.

Hello John,

here's what what I've got so far.

I've installed your DB on my local drive. FFCodeGun works OK with that,
using your .gun file (I changed the DB name and path, that's all).
I have sent you the generated source file.

I've noticed the path to your DB is on the network. Could this be the
origin of the error? Would you be kind enough to test the following,
please:

1. put your DB on your local drive, then test again with FFCG.
2. put MythicDB on the network (on another workstation) and test in that
situation, too.
Then send me the results (privately or on the NG, as you wish).

John Myren

unread,
Nov 11, 2002, 9:39:52 AM11/11/02
to
Thank you so much for the work!

"Jean-Francois Nifenecker" <jean-francoi...@XlaposteX.XnetX> skrev
i melding news:3DCFBFAF...@XlaposteX.XnetX...


> John Myren wrote:
> >
> > Delphi 6 update 2, FF2.12, FFSourceWriter 4.14, downloaded source and
> > recompiled FFCodeGun.
> >
> > When in OOP Mode and selecting several tables and hitting the button for
> > execute on several tables I alwas get the following error message:
> >
>

> Hello John,
>
> I've found the bug, which had to see with the validity checks, and
> more precisely fftInt8 and default value of -1 (default value of 0
> was buggy too but didn't crash).
> Things are now working OK on my side with your latest DB, for which
> I have sent you the generated source.
> I've replaced my own VCheck converters (in ffxJFNutils) with FF2 ones
> which were added in between (and noone told me <VBG>).
>
> Please note: ffxJFNutils is now deprecated and will be deleted from
> the next release, conversely you'll have to replace it with FFUtil
> which comes with FF2.
>
> I hope I can upload the next version of FFCG by the end of the week.
>
> Sorry for the inconvenience and best regards,

Jean-Francois Nifenecker

unread,
Nov 11, 2002, 9:33:19 AM11/11/02
to
John Myren wrote:
>
> Delphi 6 update 2, FF2.12, FFSourceWriter 4.14, downloaded source and
> recompiled FFCodeGun.
>
> When in OOP Mode and selecting several tables and hitting the button for
> execute on several tables I alwas get the following error message:
>

Hello John,

0 new messages