Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-06

Contribution

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi.

Now I'm working on porting our Delphi database application (cca 100 000 lines) to FreePascal. I have some little patches principally around TDataset. Where can I send this patches?

Our application is now possible to translate in fpc, but first problem was unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is working on Variants or may I try to penetrate into source and try to track down this bug?

Petr Kristan

Ing. Petr Kristan . EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice tel: +420 466335223 Czech Republic (Eastern Europe) fax: +420 466510709

Reply by email

Florian Klaempfl
to Michael Van Canneyt: Send them to me. Maybe Jason Southwell is working on it, but go ahead and change whatever…
Michael Van Canneyt wrote 23 lines
On Wed, 1 Jun 2005 wrote: > Hi. > > Now I'm working on porting our Delphi database application (cca 100 > 000 lines) to FreePascal. I > have some little patches principally around TDataset. Where can I send > this patches? Send them to me. > Our application is now possible to translate in fpc, but first problem > was > unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is > working on Variants or may I try to penetrate into source and try to > track down this bug? Maybe Jason Southwell is working on it, but go ahead and change whatever you think needs changing. Patches can be sent to me.

VarArrayCreate should basically work with 2.0.0.

Reply by email

Michael Van Canneyt
to Unknown author: Hi. Now I'm working on porting our Delphi database application (cca 100 000 lines) to…
Hi. Now I'm working on porting our Delphi database application (cca 100 000 lines) to FreePascal. I have some little patches principally around TDataset. Where can I send this patches?

Send them to me.

Our application is now possible to translate in fpc, but first problem was unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is working on Variants or may I try to penetrate into source and try to track down this bug?

Maybe Jason Southwell is working on it, but go ahead and change whatever you think needs changing. Patches can be sent to me.

Michael.

Reply by email

Unknown author
to Florian Klaempfl: VarArrayCreate should basically work with 2.0.0.
Florian Klaempfl wrote 27 lines
Michael Van Canneyt wrote: > > > On Wed, 1 Jun 2005 wrote: > >> Hi. >> >> Now I'm working on porting our Delphi database application (cca 100 >> 000 lines) to FreePascal. I >> have some little patches principally around TDataset. Where can I send >> this patches? > > > Send them to me. > >> Our application is now possible to translate in fpc, but first problem >> was >> unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is >> working on Variants or may I try to penetrate into source and try to >> track down this bug? > > > Maybe Jason Southwell is working on it, but go ahead and change whatever > you think needs changing. Patches can be sent to me. VarArrayCreate should basically work with 2.0.0.

Yes VarArrayCreate(..., varInteger) works, but VarArrayCreate(..., varVariant) emits "VarArray is locked".
Unfortunately my knowledge about variants internals is zero.

Petr

Ing. Petr Kristan . EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice tel: +420 466335223 Czech Republic (Eastern Europe) fax: +420 466510709

Reply by email

Florian Klaempfl
to Unknown author
Show quoted text 35 lines
On Wed, Jun 01, 2005 at 03:22:10PM +0200, Florian Klaempfl wrote: >Michael Van Canneyt wrote: > > >> >>On Wed, 1 Jun 2005 wrote: >> >> >>>Hi. >>> >>>Now I'm working on porting our Delphi database application (cca 100 >>>000 lines) to FreePascal. I >>>have some little patches principally around TDataset. Where can I send >>>this patches? >> >> >>Send them to me. >> >> >>>Our application is now possible to translate in fpc, but first problem >>>was >>>unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is >>>working on Variants or may I try to penetrate into source and try to >>>track down this bug? >> >> >>Maybe Jason Southwell is working on it, but go ahead and change whatever >>you think needs changing. Patches can be sent to me. > >VarArrayCreate should basically work with 2.0.0. Yes VarArrayCreate(..., varInteger) works, but VarArrayCreate(..., varVariant) emits "VarArray is locked". Unfortunately my knowledge about variants internals is zero.

Can you create a small example which shows the problem? BTW: Which OS do you use? Win or other?

Reply by email

Unknown author
to Florian Klaempfl
Florian Klaempfl wrote 40 lines
wrote: > On Wed, Jun 01, 2005 at 03:22:10PM +0200, Florian Klaempfl wrote: > >>Michael Van Canneyt wrote: >> >> >>> >>>On Wed, 1 Jun 2005 wrote: >>> >>> >>>>Hi. >>>> >>>>Now I'm working on porting our Delphi database application (cca 100 >>>>000 lines) to FreePascal. I >>>>have some little patches principally around TDataset. Where can I send >>>>this patches? >>> >>> >>>Send them to me. >>> >>> >>>>Our application is now possible to translate in fpc, but first problem >>>>was >>>>unfunctional VarArrayCreate([0, 1], varVariant). Is here somebody who is >>>>working on Variants or may I try to penetrate into source and try to >>>>track down this bug? >>> >>> >>>Maybe Jason Southwell is working on it, but go ahead and change whatever >>>you think needs changing. Patches can be sent to me. >> >>VarArrayCreate should basically work with 2.0.0. > > Yes VarArrayCreate(..., varInteger) works, but VarArrayCreate(..., > varVariant) emits "VarArray is locked". > Unfortunately my knowledge about variants internals is zero. Can you create a small example which shows the problem? BTW: Which OS do you use? Win or other?

OS: Linux
fpc 2.1.1 from svn.

----------------------------------------------------------------

program pokus;
uses
  Variants;
var
  v: Variant;
begin
  v := VarArrayCreate([0, 1], varVariant);
end.

----------------------------------------------------------------

emits EVariantBadVarTypeError : Invalid variant type

Sorry for "VarArray is locked" mistake. It was another problem.

Petr

Ing. Petr Kristan . EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice tel: +420 466335223 Czech Republic (Eastern Europe) fax: +420 466510709

Reply by email