Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-03 Thread fredvs via fpc-pascal
Hello. I did try using aligntoqword() but without luck, I only get crash at loading. It is very sad but I dont have the skill to fix this and mse depends of a guru with brave heart to make it compatible with fpc 3.3.1. Anyway, many thanks Martin for your light. Fre;D - Many thanks ;-)

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-02 Thread fredvs via fpc-pascal
Hello Martin. Wow. Indeed, I did a check in mse code and only exists, in msearrayutils.pas: function aligntoptr(p: pointer): pointer; inline; begin {$ifdef FPC_REQUIRES_PROPER_ALIGNMENT} result:= align(p,sizeof(p)); {$else FPC_REQUIRES_PROPER_ALIGNMENT} result:=p; {$endif

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-01 Thread Martin Frb
On 02/02/2020 04:22, fredvs via fpc-pascal wrote: Hello everybody. Good time to go back with that problem and fix it forever the right way! The problem is isolated and is fixed "hardcoded". From rev 42375, in msegui function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; inline;

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-01 Thread fredvs via fpc-pascal
Hello everybody. Good time to go back with that problem and fix it forever the right way! The problem is isolated and is fixed "hardcoded". From rev 42375, in msegui function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; inline; the result is always = 0. This function is used in

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-18 Thread fredvs
Oops, sorry, fake news. It was my mistake, I did compile with fpc 3.0.4. So, no, with last commits, it does not fix the problems. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-18 Thread fredvs
Hello. Great news! With last fpc commits, msegui is fpc compatible again! (And I am very curious what was the problem, if you can explain what you did it would be super.) Anyway, perfect and many thanks. Fre;D - Many thanks ;-) -- Sent from:

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-09 Thread fredvs
Hello Sven. > I can't see any difference in that procedure to the one in Classes.TReader > except for the ifdefs and a few extensions for events and UTF-8 strings, > so the problem must be somewhere else. Ha, we are going forward. so maybe TReader is not the problem. Ok, I will try to

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-09 Thread Sven Barth via fpc-pascal
fredvs schrieb am Fr., 6. Sep. 2019, 22:23: > Hello everybody (included Sven). > > It seems that the problems come from > /mseide-msegui/lib/common/fpccompatibility/mclasses.pas. > > In procedure TReader.ReadPropValue(Instance: TPersistent; PropInfo: > Pointer), IMHO there is something not

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-09 Thread Sven Barth via fpc-pascal
fredvs schrieb am Mi., 9. Okt. 2019, 12:00: > Could it be possible to simplify the life of rtl-users and add methods with > same parameters as previous version and make it compatible with new > features? > Working with the RTTI simply is *not* simple, because you're interfacing with binary data

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-10-09 Thread fredvs
Hello everybody. Sorry to come back with this but I am lost (and all my stock of Aspirina is dead). Could it be possible to simplify the life of rtl-users and add methods with same parameters as previous version and make it compatible with new features? Other wishes: It seems that the updates

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-09-06 Thread fredvs
Hello everybody (included Sven). It seems that the problems come from /mseide-msegui/lib/common/fpccompatibility/mclasses.pas. In procedure TReader.ReadPropValue(Instance: TPersistent; PropInfo: Pointer), IMHO there is something not compatible with rev 42375. It would be wonderful if somebody

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-09-01 Thread fredvs
> sounds like you need a copy of the files before and after so you can easily diff them and see where the difference is... Are you talking about the .sta file? Good, idea, I will see if it is different at saving. But I have doubt because using a fpc < rev 42375 all is ok, even after saving the

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-09-01 Thread wkitty42
On 8/31/19 11:15 AM, fredvs wrote: And rev 42375 was the guilty, before that rev, all is working ok. Do you get a compile error, or do the files no longer read/write properly ? No, no compile error, it is only he files no longer read/write properly. sounds like you need a copy of the

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Sven Barth via fpc-pascal
fredvs schrieb am Sa., 31. Aug. 2019, 22:00: > Hello Sven. > > > Just look at the changes: ... > > OK, but before I have to check my stock of aspirin. > I think I'm going to need a lot this time. > > Many thanks Sven to help me in that complete darkness. > Alternatively try alcohol. ;) And I

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
Hello Sven. > Just look at the changes: ... OK, but before I have to check my stock of aspirin. I think I'm going to need a lot this time. Many thanks Sven to help me in that complete darkness. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Sven Barth via fpc-pascal
Am 31.08.2019 um 18:24 schrieb fredvs: Hello. Type information contains reference to attribute table Old behavior: The first field of the data represented by TTypeData is whatever the sub branch of the case statement for the type contains. New behavior: The first field of the data represented

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
Hello. > Type information contains reference to attribute table > Old behavior: The first field of the data represented by TTypeData is > whatever the sub branch > of the case statement for the type contains. > New behavior: The first field of the data represented by TTypeData is a > reference to

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
Hello Sven. > I assume your code in msegui directly accesses the RTTI instead of using > the types provided by the TypInfo unit. IMHO, after check, it seems that msegui uses the types provided by the TypInfo unit. In each "uses" section of a msegui unit was added "typinfo". So maybe it should

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
Hello Sven. > I assume your code in msegui directly accesses the RTTI instead of using > the types provided by the TypInfo unit. Ha, ok, I will jump into mse + TypInfo and see what it says. Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Sven Barth via fpc-pascal
Am 31.08.2019 um 14:31 schrieb fredvs: Hello everybody and specially Sven Barth. With last trunk of fpc, msegui is no more compatible with fpc. After big fight, it appears that commit of Sven Barth on Jul 13 2019, rev 42375 breaks compatibility ---> "as attributes can be part of any type they

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
> Yes, but that does not tell me why a change in RTTI info would stop this from working. Same for me, I absolutely dont understand why a change in RTTI info would stop this from working. It is why I did the "explorer" way to debug the problem: doing regression from last fpc trunk until a revision

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Michael Van Canneyt
On Sat, 31 Aug 2019, fredvs wrote: What is a sta file ? "sta" file is a stat-like file that contains some infos about msegui widget behavior (and much more if you want). For example you may use mse-sta file as ini (or json) file, used to store parameters of layout of forms of your mse

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
> What is a sta file ? "sta" file is a stat-like file that contains some infos about msegui widget behavior (and much more if you want). For example you may use mse-sta file as ini (or json) file, used to store parameters of layout of forms of your mse application. You may use also mse-sta files

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Michael Van Canneyt
On Sat, 31 Aug 2019, fredvs wrote: Hello Michael. Can you be more precise ? I would like! It appends when reading mse sta files. with that types: tstatreader = class; tstatwriter = class; With rev 42375, some sections of the sta-file are no more recognized, like "layout" section. What

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread fredvs
Hello Michael. > Can you be more precise ? I would like! It appends when reading mse sta files. with that types: tstatreader = class; tstatwriter = class; With rev 42375, some sections of the sta-file are no more recognized, like "layout" section. I have to confess that I am in the dark

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-08-31 Thread Michael Van Canneyt
On Sat, 31 Aug 2019, fredvs wrote: Hello everybody and specially Sven Barth. With last trunk of fpc, msegui is no more compatible with fpc. After big fight, it appears that commit of Sven Barth on Jul 13 2019, rev 42375 breaks compatibility ---> "as attributes can be part of any type they