Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-03-23 Thread fredvs
Hello everybody.

I am extremely happy to announce that, thanks to Sven, the mse-stat-file bug
with fpc 3.3.1 trunk is fixed.

The fixes are in commit b7530e6.

Tests are highly welcome, this with fpc 3.0.4, fpc 3.2.0 and fpc 3.3.1
trunk.

I did test compiling mseide, ideU and others projects and all seems ok (but
I would be happy to know what appends with yours).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-02-01 Thread Roland Chastain
Hello Fred!

Congratulation for finding the cause of the issue.

About the solution, I have no idea, but I think that we are not in a hurry.
The most important thing is that you spotted the problem.

Regards.

Roland



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-02-01 Thread fredvs
Hello everybody.

Yep, I get it.

I get the guilty and can fix it with a turn-around.

>From rev 42375, in msegui function dynarrayelesize(const typinfo:
pdynarraytypeinfo): sizeint; inline;
the result is always = 0.

This function is used in additempo() function, used mainly in the
msestat.pas file.
This is used to restore, for example, the position and size of windows.

To fix with a turn-around, I did first compile mseide with fpc 3.2.0 to know
what is the value of dynarrayelesize(typeinfo).
It is always 16 and then I use that constant instead of
dynarrayelesize(typeinfo).

It works like charm and can use now fpc 3.3.1 without problems.

Great but, for the Champions, would it be somebody that can explain why the
result is always = 0 from rev 42375 ?

Here the problematic function:
___

function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; inline;
var
 ti: pdynarraytypeinfo;
begin
 ti:= typinfo;
{$ifdef FPC}
 inc(pointer(ti),ord(pdynarraytypeinfo(ti)^.namelen)+2);
 ti:= aligntoptr(ti);
 result:= psizeint(ti)^;
{$else}
 inc(pchar(ti),length(ti^.name));
 result:= ti^.elsize;
{$endif}
end; 
_

Otherwise, after vote, I may commit the turn-around:

Const
dynarrayelesize_of_typeinfo = 16

and use that const instead of dynarrayelesize(typeinfo)

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-13 Thread fredvs
>i don't know where's the layout is saved ,  project file orstatfile ?  . 

Hello.

This is what I understood (maybe I miss something):

In mse-ide, when you load a layout, in fact you load a copy of the loaded
project, that has also .prj as extension.
But in the mse-ide layout-readstat() function, only the data about layout
are assigned, position of forms/pannels/..., docked or no, size, etc...

When you close mse-ide, it will create a status.sta file that is the same
format as a .prj.
It uses the same format as .prj-project file but only the infos about the
forms are stored.
And when you load mse-ide, that status.sta file will be considered as .prj
layout file, but for mse-ide himself.

And for the .prj project file it is in fact a status.sta file with more
infos.

Fre;D 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-13 Thread fredvs
> also i noted tons of warnings during the compilation ,  i remember
> martin said that mseide/msegui should compile without warnings  .
> if i get free time i would like to investigate and try fixing those
> warnings

Ho, it would be great!

And maybe it will help to fix everything.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-13 Thread fredvs
> also load/save layout doesn't work

Yes, it is because the main/only problem.
The section "TForm" in the stat file is not well recognized.
All the data about position, size, options, etc are not assigned to TForms.

The strange thing is that for all other widgets (grid, tedit, tpanel,
etc...) that are child of Tform, all status are correctly assigned.

I did try this for layout: using fpc IniFiles.pas to store status of all the
TForm combined with mse-statfile for all the child.
It works like charm but, I agree, it is a turn-around because you need 2
files: the mse-layout-statfile.prj and the Tform-status.ini.

> i don't know where's the layout is saved ,  project file or statfile ? 

In fact a layout file is a statfile that uses the ".prj" extension.
And a project file is also a statfile that uses the ".prj" extension.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-13 Thread code dz
also load/save layout doesn't work , i don't know where's the layout
is saved ,  project file or
statfile ?  .
also i noted tons of warnings during the compilation ,  i remember
martin said that mseide/msegui should compile without warnings  .
if i get free time i would like to investigate and try fixing those warnings


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-13 Thread fredvs
Hello Roland.

Thanks for the thanks!

Some more infos about the mse-statfile problems with fpc 3.3.1 rev 2375 of
Jul 13 2019.

There is only one problem (I think): status of forms (size and position).
All other widgets are correctly restored, even the data of the widgets.

So if you absolutely want to use trunk fpc 3.3.1, the simplest is to still
use mse-statfile for all the widgets of the project and use fpg_iniutils.pas
(or IniFiles.pas) only for the size and position of the forms.

A other option is to wait that fpc developers fix that problem in their last
commits.
It seems that mse-statfile is not the only one to have problems with 3.3.1
rev 2375 of Jul 13 2019 (take a look at some fpc-mailing and CodeTyphon
forum).

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-12 Thread Roland Chastain
Hello Fred!

Thank you for the information. It's good that you have found a solution.

I have just installed FPC 3.2.0 beta (r43914) with fpcupdeluxe. I will try
to do some compilation tests with it.

Regards.

Roland




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2020-01-10 Thread fredvs
Hello.

I still do not find the cause of the problems of mse-statfile using last fpc
3.3.1 trunk.

But after deep tests it appears that only mse-statfile is concerned with the
problems, all other widgets are working perfectly.

So my solution is to not use mse-statfile anymore but instead use the
Graeme's fpg_iniutils from fpGUI.
It works perfectly with mse and It can do mostly all what mse-statfile can
do.

Of course if somebody has a idea why mse-statfile is not working with last
fpc 3.3.1 trunck, please say it.
But, apart for mse-statfile, all mse projects work perfectly with last fpc
3.3.1.

Fre;D  






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-10-18 Thread fredvs


> Great news: with last commit in fpc 3.3.1 trunk, all seems to be ok now. 

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



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-10-18 Thread fredvs
Hello everybody.

Great news: with last commit in fpc 3.3.1 trunk, all seems to be ok now.

Testers are highly welcome.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-10-10 Thread fredvs
Hello Seighard.

> And I'v ro cicede that I'm just now too busy with other projects to even
> look over any such problems, even the zip-file problem you informed me
>  - sorry.

No problems, me too I am very busy and can give only counted time!

It is why I add here some of my investigations, so I can remember it for
next fight.

About fpc 3.3.1 > rev 2375 of Jul 13 2019, I still try to localize the
problem
Last investigations give:.

In msestat.pas, procedure procedure tstatfile.internalreadstat, see the //
commit, the problem comes from there


procedure tstatfile.internalreadstat;
var
 int1: integer;
begin
 if assigned(fonstatread) or assigned(fonstatupdate) or
  (fsavedmemoryfiles <> '') then begin
  areader.readstat(istatfile(self));
 end;
 if fobjectlinker <> nil then begin
  aclients:= nil;
  aclientcount:= 0;
  
   fobjectlinker.forall({$ifdef
FPC}@{$endif}dolinkstatreading,typeinfo(istatfile));
   
   setlength(aclients,aclientcount);
   sortarray(aclients,sizeof(statclientinfoty),@cmpclients);
   include(fstate,stfs_reading);
  
  try
   int1:= 0;
   while int1 <= high(aclients) do begin
   
with aclients[int1] do begin 

 if intf <> nil then begin// here problem, aclients[int1].intf = nil
with fpc 3.3.1

  areader.readstat(intf);
 
 end;
end;
inc(int1);
   end;
  finally
   exclude(fstate,stfs_reading);
   aclients:= nil;
   fobjectlinker.forall({$ifdef FPC}@{$endif}dolinkstatreaded,
 typeinfo(istatfile));
  end;
 end; 
end;
__

But I did not catch why aclients[int1].intf = nil with fpc > 3.3.1. rev
2375.
The array aclients is defined (imho) by  fobjectlinker.forall({$ifdef
FPC}@{$endif}dolinkstatreading,typeinfo(istatfile));
I am still lost.

Maybe some light will come later.

Anyway, mse is ready for fpc 3.2.0. and this is good.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-10-09 Thread Sieghard
Hello fredvs,

you wrote on Wed, 9 Oct 2019 02:43:57 -0700 (MST):

> Hello everybody.
> 
> I did try deeply mse-gui + mse-ide with fpc 3.2.0 beta:
> 
> https://svn.freepascal.org/svn/fpc/branches/fixes_3_2/
> 
> Till now, I did not find any problems and there are good news, the
> compiled-binary is +- 10 % less big than the same code compiled with fpc
> 3.0.4.

Good news so far, meaning at least till that version msegui should be
usable "productively".

> But for fpc 3.3.1-trunk, I am still blocked with the stat-files problems.

And I'v ro cicede that I'm just now too busy with other projects to even
look over any such problems, even the zip-file problem you informed me
about - sorry.

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---




___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-10-09 Thread fredvs
Hello everybody.

I did try deeply mse-gui + mse-ide with fpc 3.2.0 beta:

https://svn.freepascal.org/svn/fpc/branches/fixes_3_2/

Till now, I did not find any problems and there are good news, the
compiled-binary is +- 10 % less big than the same code compiled with fpc
3.0.4.

But for fpc 3.3.1-trunk, I am still blocked with the stat-files problems.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-21 Thread fredvs
> I will do more test but if it is not a wrong compilation of fpc, it is a
> **VERY, VERY GREAT** news. 

Ooops, it was *VERY, VERY FAKE** news, I did compile a old source.
With last fpc commit, the problems remain.

;-(

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-21 Thread fredvs
Hello code dz, hello everybody.

It seems that last commits of fpc... fix the problems.
I did try rev 42753 of 21-08-2019 and all seems ok.

I will do more test but if it is not a wrong compilation of fpc, it is a
**VERY, VERY GREAT** news.

I will remove all my fpc-work-directory and re-do it from scratch, to be
sure it is not fake news.

[EDIT] OK, all deleted, downloaded very last fpc-trunk, compile it again and
test.
 It seems to work.

Could you test msegui with last fpc trunk?

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-15 Thread fredvs
Re-hello.

It seems that the problem comes from the new implementation of
"AttributeTable" in rtl/objpas/typinfo.pp.

So now I pass the hand, good luck (and courage) for the challenger to find
the solution.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-15 Thread fredvs
Hello code dz, hello everybody.

Some news from the front.

The problems come from fpc commit of Sven Barth on Jul 13 2019:
"as attributes can be part of any type they are best suited in a common part
of TTypeData"

>From Graeme-Github:
https://github.com/graemeg/freepascal/commit/c85bef9b68db37ee5acc35ab92955ce1488f79eb


>From svn:
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@42375
3ad0048d-3df7-0310-abae-a5850022a9f2

Before that commit, all seems ok.

Now I need help of the gurus (I am only a explorer).

That commit is about rtti data and breaks compatibility with msegui.

But to fix it, I need your help.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-08 Thread fredvs
Hello code dz.

> why not using fpcupdeluxe 
> t's very simple and every time you build fpc it only update the changing
> files 

Thanks but it s not really the problem.
With Graeme's script, I can do it.

Is it possible to install regression with fpcupdeluxe?

That new bug is difficult to debug because mse-stat-reader is not working
with "layout" section but seems to work for parsing fpc parameters for
example.

So I dont know really what to search.

I use the "hard way", trying to find from witch fpc review the problem
appears.

But the fpc summer-developers have worked a lot and so absolutely not easy.

Already I have a review working of fpc 3.3.1: Rev 41903 of 20/04/2019  (the
one from CodeTyphon).

Now, how to do to download + install the reviews that follow this one?
Is it possible with fpcupdeluxe?

Of course it you have a better idea how to debug the problem, please say it.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-08 Thread code dz
hi fred
if you only want to build fpc trunk without lazarus, than why not
using fpcupdeluxe
it's very simple and every time you build fpc it only update the changing files


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-08 Thread fredvs
Hello code dz.

The last release of CodeTyphon (20-Apr-2019 ) uses one the last working rev
3.3.1 of fpc: Rev 41903:
https://www.pilotlogic.com/sitejoom/index.php/downloads/download/14-codetyphon/123-codetyphonins-zip

What I like with CodeTyphon is that the install is out-of-the-box and does
not make conflict if fpc was already installed.

Maybe good to compare with last fpc trunk with problems.

Fre;D








--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-07 Thread fredvs
> its new challenge ;) 

Yep but sadly I would not be disposable asap for this one. ;( 

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-07 Thread code dz
>
> In previous post you write that you did fix the problem.
> Was it fake news?
>
i've rechecked again
yes you are right , the problem still exist !!
last time when i post this , i thought my mseide.exe was built by fpc
3.3.1 , but in fact it was built by fpc 3.0.4 , so for that i haven't
seen the problem
now i rebuilt evey things , and yes the load layout doesn't work

its new challenge ;)


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-07 Thread fredvs
> so the problem exist ! 

Yes, and **very** difficult to debug because no crash, no error message.

I am curious how Lazarus will deal with fpc > 3.0.4.
The last release of Lazarus (last week) still uses fpc 3.0.4.

> the mseide.exe which is associated with *.prj files was located in an 
> old build of mseide 
> now i changed the association to the new mseide build location , and 
> every things works fine 

In previous post you write that you did fix the problem.
Was it fake news?

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-07 Thread code dz
hi fred
so the problem exist !
time ago in lazarus forum i remember they talked about breaking
filestream backward compatibility , i don't remember exactly where


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-06 Thread fredvs
Re-re-hello code dz.

It seems that the problems come from procedure tstatfile.readstat(const
stream: ttextstream = nil);

That method uses ttextstream that is THandleStream descendant.

So maybe we have to check what fpc did change to THandleStream or one of his
descendant in last commits.
But how to do that check with fpc?

Fre;D







--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-06 Thread fredvs
Re-hello code dz.

I did compile last (?) fpc trunk Rev 42482.

Did compile mseide with it on Linux 64 bit.

And now, like you explained, also on Linux 64, there are problems with
view-layout.

It is like fpc did change the behavior in file-list in directory.

;-( x 1000.

Aaaargh + mama mia.

The little (very little) good news is that it appends inside Rev 41903 and 
Rev 42482.

Huh, I did not catch how you did to fix it.

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-05 Thread fredvs
Hello code dz.

> and every things works fine

Magnificent!

Have fun.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-05 Thread code dz
oops my fault
the mseide.exe which is associated with *.prj files was located in an
old build of mseide
now i changed the association to the new mseide build location , and
every things works fine


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-05 Thread code dz
hi fred
your mseide_exe works just fine , so maybe i did something wrong when
i compiled fpc or mseide
ok i'll try to clean and compile every things from zero


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread fredvs
Hello code dz.

Finally I did find a Windows machine.
But it is with Windows 10.

mseide compiled with fpc version 3.3.1 SVN trunk Rev 41903 32 bit is ok here
on Windows 10.
Also for the layout change.

mseide_exe.zip
  

In attachment the executable, could you try if you have still problem with
view-layout?
(just replace your mseide.exe with the one in attachment)

If you have still problems, are you sure your prj-layout file is not
corrupted?

If all is ok then it is about last fpc trunks that have changed something.
(Sorry but I cannot compile very last fpc trunk for Windows at the moment).

Fe;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread fredvs
Hello.

I did try with last fpc trunk on Linux 64 bit and all seems ok with last
mse-org commits:

Free pascal source checkout of https://svn.freepascal.org/svn/fpc/trunk at
Sun Aug  4 10:18:27 UTC 2019
URL: https://svn.freepascal.org/svn/fpc/trunk
Revision: 42577

Now for Windows and fpc trunk...

Sorry but I do not have a Windows machine to compile fpc trunk for Windows.
And dont have the courage to try to cross-compile.

Here with wine emulator and fpc.exe 32 bit version 3.0.4. all seems ok with
last mse-org commits..
Did you try with fpc 3.2.0, is it working?

Strange that layout problems because I do not see where in the commits
something could have impact on that.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread code dz
2019-08-04 16:39 UTC+02:00, fredvs :
>
> So, in short, I totally understand now why Martin was not hot to make mse
> compatible with fpc version that was not totally tested and released.
>
> Fre;D
>

yes ,i remember martin was not interesting in making msegui/ide
compatible with fpc trunk ,
i asked him many times but he refuse , he said i'll but until the next
release of fpc , he was totally right about this , because in fpc
there is  commits and revert commits , so its not stable  at all


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread fredvs
Re-hello code dz.

If, by chance, the problem appear only in last trunks (after 3.3.1
[2019/04/24]), it would be interesting to see what was changed in fpc.

Sadly I would not be able to jump into this asap.
But of course you are welcome for it!

Fre;D

PS: I am not sure mse is a project for fpc trunks.
This because msegui + mseide do use nearly all features provided by fpc.
It is the reason why mse is more sensible than other for each new/updated
feature than a "classical" project.

Also (see my post about TParamList in fpc-forum), with trunk, there is no
way to know what was recently changed (or with hard work), fpc does not use
GitHub and all his search feature.

So, in short, I totally understand now why Martin was not hot to make mse
compatible with fpc version that was not totally tested and released.

That said (by a lazy man who search for excuses to not do it), if you see
what could cause the problem with load-layout, please advice.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread fredvs
Hello code dz.

> seems (view->load window layout ) is not working with the new fpc 3.3.1 

Ha ? I cannot reproduce, see video:

mseide_select_layout.mp4

  

It was compiled with Pascal Compiler version 3.3.1 [2019/04/24] for x86_64.
What OS are you using?

Could you upload the window layout with problems?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-04 Thread code dz
hi fred
seems (view->load window layout ) is not working with the new fpc 3.3.1


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-28 Thread fredvs
Hello Code DZ.

> on the mailing list Sven posted new fix , did you try it ? seems more
> compact 

Sven did help a lot.
In last mse-org commit, all is fixed correctly, using the the right way and
agreed by Sven.

But for the code, I agree, it is not the most compact and nice it should be.
It is about filtering a array
There are many way to deal with array.

So everybody is welcome to propose a nicer way.

Here is the code:

{$if FPC_FULLVERSION > 030200} 
var
info: methodparaminfoty;  // info.params = paraminfoarty
params1: paraminfoarty;  // array of parameters
x : integer; 
 ...
// info was already filled with data and info.params must be filtered.
...

 setlength(params1,0); 
 for x:=0 to length(info.params) -1 do 
 with info.params[x] do if not (pfHidden in flags) then  // check if it is
hidden
 begin 
 setlength(params1,length(params1)+1); 
 params1[length(params1)-1] := info.params[x]; 
 end; 
 info.params := params1;  // take filtered array as parameter array
 {$endif} 






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-26 Thread fredvs
> on the mailing list Sven posted new fix , did you try it ? seems more
compact 

Yes, of course, I did try it.
And have already sent a answer (that takes time to appears).

To resume: it does not give the expected result.
Imho, you may try how many combinations of filters with TParamsFlags, fpc
will always add $self as first parameter in the params list.

It is not very annoying (if you know it before) and easy to deal.
But, re-imho, it would be great if that first parameter was added by option
and not unconditionally.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-26 Thread code dz
thanks fred
yes it works now ,
on the mailing list Sven posted new fix , did you try it ? seems more compact

2019-07-26 0:30 UTC+02:00, fredvs :
> Hello Roland, hello Code DZ.
>
>> where is the repository that contain the fix ?
>
> https://github.com/mse-org/mseide-msegui
>
> Fre;D
>
>
>
> --
> Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/
>
>
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread fredvs
Hello Roland, hello Code DZ.

> where is the repository that contain the fix ? 

https://github.com/mse-org/mseide-msegui

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread code dz
thanks fred for the effort .
where is the repository that contain the fix ?


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread fredvs
Hello everybody.

OK, I think it is ok now.
You may compile mseide with fpc >= 3.1.0.
The "live- parameters-matcher" is working too.

I did test with trunk fpc 3.3.1.

All the fixes are in last commit 44f515f.

Test and comment about the commit are welcome.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread Roland Chastain
Hello Fred!

 

Unfortunately I have no idea of the problem and no time to put my head into it. So I have no opinion.

 

Thank you for your efforts around MSEide.

 

Best regards.

 

Roland


Envoyé: jeudi 25 juillet 2019 à 15:29
De: "fredvs" 
À: mseide-msegui-talk@lists.sourceforge.net
Objet: Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

Hello everybody.

Sadly, the attempt to use fpc forum did not give lot of success:

http://free-pascal-general.1045716.n5.nabble.com/TParamFlags-and-fpc-3-2-0-td5733871.html

So finally, after a big fight, I did find a workaround.
Now, if you create a method via the mse-designer the correct parameters will
be used with fpc 3.2.0, like in the video here:

<http://free-pascal-general.1045716.n5.nabble.com/file/t339155/mseide_fpc304_good.mp4>

But there is a bemol.

In mse code, after creating a new method via the mse-designer, there is a
check with:

function parametersmatch(const a: ptypeinfo; const b: methodparaminfoty):
boolean;

With the workaround that I use, this parametersmatch is set to always to
true if using fpc 3.2.0.

So, if you change manually the parameters used by the method created by the
mse-designer, (and use bad parameters) there will be a error message only at
compilation, not directly like when using fpc 3.0.4.

So the question is: should I commit the changes to make mseide work when
compiled with fpc 3.0.4. (but without live- parameters-matcher).

I did many test and did not find any problems.

Or do you think it is better to wait that a TParamFlags guru appears ?

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk




___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread fredvs
Ooops, in previous mail, please read (---> fpc 3.2.0, not fpc 3.0.4) :

> So the question is: should I commit the changes to make mseide work when 
> compiled with fpc *3.2.0* ? (but without live- parameters-matcher).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-07-25 Thread fredvs
Hello everybody.

Sadly, the attempt to use fpc forum did not give lot of success:

http://free-pascal-general.1045716.n5.nabble.com/TParamFlags-and-fpc-3-2-0-td5733871.html

So finally, after a big fight, I did find a workaround.
Now, if you create a method via the mse-designer the correct parameters will
be used with fpc 3.2.0, like in the video here:


   

But there is a bemol.

In mse code, after creating a new method via the mse-designer, there is a
check with:

function parametersmatch(const a: ptypeinfo; const b: methodparaminfoty):
boolean;

With the workaround that I use, this parametersmatch is set to always to
true if using fpc 3.2.0.

So, if you change manually the parameters used by the method created by the
mse-designer, (and use bad parameters) there will be a error message only at
compilation, not directly like when using fpc 3.0.4.

So the question is: should I commit the changes to make mseide work when
compiled with fpc 3.0.4. (but without live- parameters-matcher).

I did many test and did not find any problems.

Or do you think it is better to wait that a TParamFlags guru appears ?

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-08 Thread code dz
I have no idea how to hide self parameter. I am not that good to fix such
problems quickly  but maybe it needs more deep invastigation
On Jun 8, 2019 12:28, "fredvs"  wrote:

> > (if your application is not using TParamFlag).
>
> Huh, of course if your application uses TParamFlag or if you know how to
> disable "self" parameter your advice and fixes are more than welcome.
>
> Fre;D
>
>
>
> --
> Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/
>
>
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-08 Thread fredvs
> (if your application is not using TParamFlag). 

Huh, of course if your application uses TParamFlag or if you know how to
disable "self" parameter your advice and fixes are more than welcome.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-08 Thread fredvs
Hello code dz.

msegui can use 3.2.0 without problems.
The only problem found is if you use TParamFlag in your application.
But I doubt that lot of people use TParamFlag...

mseide, that uses TParamFlag, should then be compiled with fpc 3.0.4.
But mseide compiled with 3.0.4. can use msegui and compile it with fpc 3.2.0
(if your application is not using TParamFlag).

@Graeme, thanks for your tips. (but I will not annoy lazarus-forum).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-08 Thread Graeme Geldenhuys
On 07/06/2019 10:50 am, fredvs wrote:
> Sadly I feel to be not welcome on fpc mailing-list to ask this.

I don't understand why, but if that is the case, why not ask on the
Lazarus web forums. It is run by different people, even though some
familiar faces are there.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-07 Thread code dz
thanks fred
so msegui should stay with fpc 3.0.4 until some one find a proper fix .
i hope this summer i can find time to get deeper into msegui source code


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-07 Thread fredvs
> any news about this ? 

You may compile your mse applcations without problems if you  do not use
TParamFlag.

With fpc 3.2.0. the "self" parameter is show by default.

Sorry but I did not find the way to disable it.

A fpc-guru is needed to give the solution.
Sadly I feel to be not welcome on fpc mailing-list to ask this.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-06-06 Thread code dz
Hi
any news about this ?


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread fredvs
Re-hello Graeme.

I seems that there is a problem with pfSelf parameter and last fpc 3.2.0, it
is always set to true.

Using  flags:= [] shows always self-parameter.
And using flags:= [pfSelf] or no has no difference, it is always pfSelf on
(and so first parameter added).

I did test all other parameters:
pfVar,pfConst,pfArray,pfAddress,pfReference,pfOut,pfConstRef,pfHidden,pfHigh,pfSelf,pfVmt,pfResult

All others have influence to enable/disable it but for pfSelf, it is always
true.

Sure, one more time, I miss something but anyway, good luck (and courage).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread fredvs
> So I would expect we simply need to add an extra check 
> during that iteration and discard all pfHidden and pfSelf parameters

Yes, it is the fix.
(But I maintain that if fpc did find a way to not show those new pfHidden
and pfSelf parameters as default, it would be great too).

Thanks Graeme.




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread fredvs





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread Graeme Geldenhuys
Hi Fred,

On 27/04/2019 13:08, fredvs wrote:
> In last fpc 3.2.0. was added a "hidden" parameter for TParamFlags (to do
> like Java does?).
> OK but why add this new parameter as default, why not add it with a no
> default parameter to keep compatibly with earlier version?

I do agree that FPC's backward compatibility is not as good as it used
to be. I have discovered many things in the 3.x releases which broke my
software. I guess they would argue that 3.x is a major release change,
thus code breakages are expected (and somewhat allowed).

Anyway, back to the point of the hidden "self" parameter. It has always
been there, since the introduction of classes. It was simply that
TParamFlags did not have the ability to query those hidden parameters.
It seems in 3.2.0 they introduced a new parameter type so software could
query those hidden parameters if they needed, or ignore them otherwise.

>From my preliminary research, it seems Martin simply iterated though all
the available parameters, going on the expectation that hidden
parameters are never is that listed. Then generating the method
parameters for the IDE source editor, via the code generation (ie: class
completion). So I would expect we simply need to add an extra check
during that iteration and discard all pfHidden and pfSelf parameters, as
we don't need them in the generated class completion code.

Like I said, I'll take a look as soon as I can. I don't expect it to be
a difficult thing to fix.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread fredvs
>  I'll take a look at the MSEide code. 

IMHO, the problems and the fixes can be found in msedesigner.pas and
msedesignparser.

IMHO bis, it is great that fpc add new features in each new version but it
would be even better if those new features are backward compatible.

In last fpc 3.2.0. was added a "hidden" parameter for TParamFlags (to do
like Java does?).
OK but why add this new parameter as default, why not add it with a no
default parameter to keep compatibly with earlier version?

This is not criticism, only a question of a poor user who does not want to
loose all his hair.

Fre;D 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-27 Thread Graeme Geldenhuys
On 26/04/2019 22:40, fredvs wrote:
> The only problems found are with mseide himself and the new behavior of
> TParamFlags.
> But it seems, after lot of search, that, in all fpc world, only Martin did
> know how to use TParamFlags.
> (https://forum.lazarus.freepascal.org/index.php/topic,27538.15.html?PHPSESSID=3ovhgvat82bssshp06eq81m8s3)


I've been swamped with contracting work (yes, even on the weekend). As
soon as I have a spare moment, I'll take a look at the MSEide code.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-26 Thread fredvs
> And are we certain that my changes are the cause of those issues? 

Tested here on all my mse projects (including StrumPract) and all compile
and run perfectly with both fpc 3.2.0 and fpc 3.3.1.

The only problems found are with mseide himself and the new behavior of
TParamFlags.
But it seems, after lot of search, that, in all fpc world, only Martin did
know how to use TParamFlags.
(https://forum.lazarus.freepascal.org/index.php/topic,27538.15.html?PHPSESSID=3ovhgvat82bssshp06eq81m8s3)

So, to resume, if your application does not use TParamFlags, you may compile
it with fpc 3.2.x and 3.3.x without problems.

But, for mseide himself, please use fpc 3.0.2. or fpc 3.0.4. (until we found
the TParamFlags fix).

Of course you may compile with fpc 3.2.0 the projects loaded by
mseide-compiled-with-fpc-3.0.4.

Fre;D


 





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread fredvs
Hello Graeme.

IMHO, the guilty is here, in msedisignparser.pas
(Sadly I did not find any example how to use TParameterFlag.
The goal is to ignore first parameter if fpc >= 3.2.x)


procedure getmethodparaminfo(const atype: ptypeinfo; 
 var info: methodparaminfoty);
begin
...
  for int1:= 0 to paramcount - 1 do begin
  with params[int1] do begin

   Here flags must be adapted for fpc 3.2.0
 
  flags:= tparamflags(
 {$ifde mse_fpc_3_2}wordset{$else}byteset{$endif}(pbyte(po1)^));
   inc(po1,{$ifdef mse_fpc_3_2}2{$else}1{$endif});

 ...




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread fredvs
> near the bottom of the page is a link to the development page

Ooops, indeed, all what needed is there.

Thanks.



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Patrick Goupell


On 4/24/19 10:06 PM, Fred van Stappen wrote:


>The source for FPC can be downloaded from the www.freepascal.org 
 site.
> Follow the Download link on the right side of the screen.

Thanks Patrick.

But it seems that only source of official release fpc 3.0.4 can be 
downloaded on that site.


Fre;D



near the bottom of the page is a link to the development page

Or farther down under Coding is a Develoment link also.


These links may or may not get you what you want.

___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 14:30, fredvs wrote:
>> for pfHidden in the parameter flags and ignore them.
> Not yet understood but maybe only changing a parameter should do the trick.

You followed exactly what I would have done. Searching the source code
for TParamFlag and see what it does with it.

>From the FPC wiki it seems that if you iterate or something though the
available parameters, you now need to filter out pfHidden and pfSelf
parameters if you are not interested in them. So for MSEide that would
be a IFDEF for 3.2.0 and greater handling those new pfXXX parmeters by
skipping them.

Obviously, this is all theoretical as I haven't looked at the actual
MSEide code at all, so don't know what it does with TParamFlag at the
moment. If all else fails, embrace open source and take a sneak peek at
Lazarus's CodeTools code too. I would imagine they also had to adjust
their code generation for FPC 3.2.0 and later.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread fredvs
Hello Graeme.

> >
> http://wiki.freepascal.org/User_Changes_Trunk#TParamFlag_extended_for_hidden_parameters

Ha, you touch something there.

A "search in directories" reveal that tparamflag is only used in
msedesignparser.pas (from where come the problem).

So now the goal is to understand how to use the new tparamflag for fpc
3.2.x.

For "TParamFlag extended for hidden parameters" they say:
> Remedy: Adjust code that relies on the amount of elements contained in
> TParamFlag (e.g. case-statements or array indices) > and also code that
> relies on the size of TParamFlags being 1 (SizeOf(TParamFlags) should be
> used instead).

And a few later:
For "Parameters of method pointer variables contain hidden parameter"
> Remedy: Depending on your code either handle the new parameters or check
> for pfHidden in the parameter flags and ignore them.

Not yet understood but maybe only changing a parameter should do the trick.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Fred van Stappen

> With 3.2.0 something obviously changed that "self" parameter is now
> treated as a normal parameter, and not the hidden parameter that FPC injects.

Aie, mama mia ;-(
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 13:06, Graeme Geldenhuys wrote:
> This might be the cause of the problem. It is listed under FPC's
> possible code breaking changes for 3.2.0 (what used to be Trunk).
> 
> 
> http://wiki.freepascal.org/User_Changes_Trunk#TParamFlag_extended_for_hidden_parameters

See also section "Parameters of procedure variables contain hidden
parameters"


http://wiki.freepascal.org/User_Changes_Trunk#Parameters_of_procedure_variables_contain_hidden_parameters


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 12:56, fredvs wrote:
> procedure onexec2($self: Pointer; const sender: Tobject); ---> that is not
> normal.
> 
> What are the big changes of fpc 3.0.4 vs 3.2.0 ?
> 
> Very strange to get 2 different results with same code but different
> compilers.


OK, I'm not an expert at this, but I do know that every methods is sent
a hidden "self" parameter. It seems with the code generator and FPC
3.0.4 and earlier, it ignored that self parameter because FPC takes care
of that for you.

With 3.2.0 something obviously changed that "self" parameter is now
treated as a normal parameter, and not the hidden parameter that FPC
injects.


This might be the cause of the problem. It is listed under FPC's
possible code breaking changes for 3.2.0 (what used to be Trunk).


http://wiki.freepascal.org/User_Changes_Trunk#TParamFlag_extended_for_hidden_parameters


Some other release notes of interest:
  http://wiki.freepascal.org/FPC_New_Features_Trunk
  http://wiki.freepascal.org/User_Changes_3.0.4


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread fredvs
> He then confirmed that IFI is now a requirement. 

In mseifiglob, needed to compile mseide:


{$ifdef mse_no_ifi}
 {$error 'MSEifi support required, please do not compile with
"-dmse_no_ifi"'}
{$endif}



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread fredvs
Hello Graeme.

Thanks for the infos about IFI, I will study it.

I did some tests.

Using your fixes and compiling mseide with fpc 3.0.4.:
I did create a new project, with one form and one button, and assigning, via
object inspector, "onexec" procedure to button.onecexute:

 



You may see that the auto-generated code is procedure onexec(const sender:
Tobject), that is normal.


But using same code with your fixes and compiling mseide with fpc 3.2.0.:
And create a same new project, with one form and one button, and assigning,
via object inspector, "onexec2" procedure to button.onecexute:

 

Here you may see that the code generated via the object inspector is
different:
procedure onexec2($self: Pointer; const sender: Tobject); ---> that is not
normal.

What are the big changes of fpc 3.0.4 vs 3.2.0 ?

Very strange to get 2 different results with same code but different
compilers.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 12:17, Fred van Stappen wrote:
> PS: Huh, but what is the goal of IFI, Google-search dont give any help.

You'll have to search the mailing list archive messages. Martin once
described it to me years ago, but I can't remember all the details.

I also know that at years ago MSEide+MSEgui could be compiled without
IFI, which I always did. But 2-3 years ago I reported to Martin that I
couldn't compile MSEide like that any more. He then confirmed that IFI
is now a requirement. Saying that, I did notice that the MSEgui code
still has a lot of IFDEFs for IFI, but I gather is now obsolete. I guess
this needs to be confirmed too... by trying again to compile MSEide
without IFI enabled. I did not test that last night.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Fred van Stappen
Hello Graeme.

> And are we certain that my changes are the cause of those issues?

I will jump into it this night.

PS: Huh, but what is the goal of IFI, Google-search dont give any help.

Fre;D


De : Graeme Geldenhuys 
Envoyé : jeudi 25 avril 2019 13:01
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

On 25/04/2019 11:52, Fred van Stappen wrote:
> Indeed, strange things append.

And are we certain that my changes are the cause of those issues?

What I changed was a simple method signature related to an ifi interface
declaration. I thought that IFI is only for remote application and
display purposes.

What would IFI have to do with the Object Inspector and code generator???


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 11:52, Fred van Stappen wrote:
> Indeed, strange things append.

And are we certain that my changes are the cause of those issues?

What I changed was a simple method signature related to an ifi interface
declaration. I thought that IFI is only for remote application and
display purposes.

What would IFI have to do with the Object Inspector and code generator???


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Fred van Stappen
Hello code dz.

Indeed, strange things append.
After creating a new project with a single form an a button, assigning 
button1.onexec method generate strange code:

unit main;
...
type
 tmainfo = class(tmainform)
   tbutton1: tbutton;
   procedure onexec($self: Pointer; const sender: TObject);
 end;
...
implementation
...
procedure tmainfo.onexec($self: Pointer; const sender: TObject);
begin
close;
end;
end.

_

See procedure onexec: > what is that "$self: Pointer" ?

Fre;D


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-25 Thread Graeme Geldenhuys
On 25/04/2019 06:17, code dz wrote:
> seems this patch is not enough
> try create a gui app , add an event , and you will see some thing like

I compiled the ide and opened my usual projects, compiled those projects
and it was fine for that purpose. Then again, I don't use MSEide to
develop MSEgui application, so the Object Inspector was not explicitly
tested.

I'll take another look at this tonight. Thanks for letting me know.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread code dz
2019-04-25 1:05 UTC+02:00, Graeme Geldenhuys :
> On 24/04/2019 21:22, fredvs wrote:
>> Sadly I am not a guru in interface things and I do not see what is wrong
>> with iificlient interface for fpc > 3.0.x.
>
> No worries. I had a quick look and fixed the issue. Please find attached
> patches. I tested with FPC 3.0.4 and FPC 3.2.0.
>
> ===
> Graeme Geldenhuys (2):
>   Fixes compilation errors with FPC 3.2.0
>   Trimmed trailing whitespace.
>
>  lib/common/editwidgets/msegraphedits.pas | 251 ---
>  lib/common/widgets/msedispwidgets.pas|  45 ++--
>  2 files changed, 149 insertions(+), 147 deletions(-)
>
> ===
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
>

seems this patch is not enough
try create a gui app , add an event , and you will see some thing like
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread code dz
2019-04-25 1:05 UTC+02:00, Graeme Geldenhuys :
> On 24/04/2019 21:22, fredvs wrote:
>> Sadly I am not a guru in interface things and I do not see what is wrong
>> with iificlient interface for fpc > 3.0.x.
>
> No worries. I had a quick look and fixed the issue. Please find attached
> patches. I tested with FPC 3.0.4 and FPC 3.2.0.
>
> ===
> Graeme Geldenhuys (2):
>   Fixes compilation errors with FPC 3.2.0
>   Trimmed trailing whitespace.
>
>  lib/common/editwidgets/msegraphedits.pas | 251 ---
>  lib/common/widgets/msedispwidgets.pas|  45 ++--
>  2 files changed, 149 insertions(+), 147 deletions(-)
>
> ===
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
>

Hi Graeme
i remember last month i did just what you did in this patch , it
compiled ok , but other problems raises when you create a gui app
especially when create an event in the objectinspector ,


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Fred van Stappen

>The source for FPC can be downloaded from the 
>www.freepascal.org site.
> Follow the Download link on the right side of the screen.

Thanks Patrick.

But it seems that only source of official release fpc 3.0.4 can be downloaded 
on that site.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Fred van Stappen



De : Patrick Goupell 
Envoyé : mercredi 24 avril 2019 23:50
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0


On 4/24/19 3:00 PM, fredvs wrote:
> Re-hello Graeme.
>
> Your script is perfect but... it need to install svn to download source of
> fpc 3.2.0 (and I do not find the courage).
>
> ;-(
>
> (Things would be so much easier with GitHub).
>
> Anyway, thanks to Sternas and his out-of-the-box CodeTyphon, I did install
> fpc 3.3.1.
> I will see what appends with msegui and fpc > 3.0.x asap.
>
> Fre;D
>
The source for FPC can be downloaded from the 
www.freepascal.org<http://www.freepascal.org> site.
Follow the Download link on the right side of the screen.


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Fred van Stappen

___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
> No worries. I had a quick look and fixed the issue.

Graeme, you are too strong.

Wow.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
On 24/04/2019 21:22, fredvs wrote:
> Sadly I am not a guru in interface things and I do not see what is wrong
> with iificlient interface for fpc > 3.0.x.

No worries. I had a quick look and fixed the issue. Please find attached
patches. I tested with FPC 3.0.4 and FPC 3.2.0.

===
Graeme Geldenhuys (2):
  Fixes compilation errors with FPC 3.2.0
  Trimmed trailing whitespace.

 lib/common/editwidgets/msegraphedits.pas | 251 ---
 lib/common/widgets/msedispwidgets.pas|  45 ++--
 2 files changed, 149 insertions(+), 147 deletions(-)

===

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
>From bcaf17bad38c8541cab114d3ce03c29c243ea4f9 Mon Sep 17 00:00:00 2001
From: Graeme Geldenhuys 
Date: Thu, 25 Apr 2019 00:00:29 +0100
Subject: [PATCH 1/2] Fixes compilation errors with FPC 3.2.0

Also tested with FPC 3.0.4 and all is well now.
---
 lib/common/editwidgets/msegraphedits.pas | 3 ++-
 lib/common/widgets/msedispwidgets.pas| 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/common/editwidgets/msegraphedits.pas b/lib/common/editwidgets/msegraphedits.pas
index 855bb1cdd..deac865e6 100644
--- a/lib/common/editwidgets/msegraphedits.pas
+++ b/lib/common/editwidgets/msegraphedits.pas
@@ -10,6 +10,7 @@
 unit msegraphedits;
 {$ifdef FPC}
  {$mode objfpc}{$h+}
+ {$interfaces corba}
 {$endif}
 {$ifndef mse_no_ifi}
  {$define mse_with_ifi}
@@ -152,7 +153,7 @@ type
fstate: dataeditstatesty;
 {$ifdef mse_with_ifi}
fifilink: tifivaluelinkcomp;
-   function getdefaultifilink: iifilink; override;
+   function getdefaultifilink: iificlient; override;
procedure ifisetvalue(var avalue; var accept: boolean);
procedure getifivalue(var avalue) virtual;
procedure setifivalue(const avalue) virtual;
diff --git a/lib/common/widgets/msedispwidgets.pas b/lib/common/widgets/msedispwidgets.pas
index d60e38bf6..acce35f9d 100644
--- a/lib/common/widgets/msedispwidgets.pas
+++ b/lib/common/widgets/msedispwidgets.pas
@@ -11,6 +11,7 @@ unit msedispwidgets;
 
 {$ifdef FPC}
  {$mode objfpc}{$h+}
+ {$interfaces corba}
 {$endif}
 {$ifndef mse_no_ifi}
  {$define mse_with_ifi}
@@ -143,7 +144,7 @@ type
fflags: dispwidgetflagsty;
 {$ifdef mse_with_ifi}
fifilink: tifilinkcomp;
-   function getdefaultifilink: iifilink; override;
+   function getdefaultifilink: iificlient; override;
 //iifidatalink
function getifilinkkind: ptypeinfo;
procedure setifilink(const avalue: tifilinkcomp);
-- 
2.17.1

>From 3d8af45631e52e62f375eae6ce41ba507ec2 Mon Sep 17 00:00:00 2001
From: Graeme Geldenhuys 
Date: Thu, 25 Apr 2019 00:02:30 +0100
Subject: [PATCH 2/2] Trimmed trailing whitespace.

My IDE was set up to trim trailing whitespace on save. No functional
changes in this commit.
---
 lib/common/editwidgets/msegraphedits.pas | 248 +++
 lib/common/widgets/msedispwidgets.pas|  42 ++--
 2 files changed, 145 insertions(+), 145 deletions(-)

diff --git a/lib/common/editwidgets/msegraphedits.pas b/lib/common/editwidgets/msegraphedits.pas
index deac865e6..cf6848b74 100644
--- a/lib/common/editwidgets/msegraphedits.pas
+++ b/lib/common/editwidgets/msegraphedits.pas
@@ -40,10 +40,10 @@ const
  defaultsliderwidth = 200;
  defaultsliderheight = 20;
  defaultboxsize = 13;
- defaultsliderscrollbaroptions = defaultscrollbaroptions + 
+ defaultsliderscrollbaroptions = defaultscrollbaroptions +
 [sbo_valuekeys,sbo_thumbtrack];
  defaultgrapheditframeoptions = defaultcaptionframeoptions + [cfo_captionfocus];
- 
+
 type
  tgrapheditframe = class(tcustomcaptionframe)
   protected
@@ -123,7 +123,7 @@ type
   published
property colorclient {default cl_foreground};
  end;
- 
+
  tgraphdataedit = class(tactionpublishedwidget,igridwidget,istatfile,
  iassistiveclientgridwidget
   {$ifdef mse_with_ifi},iifidatalink{$endif})
@@ -204,14 +204,14 @@ type
  virtual; abstract;
procedure dofontheightdelta(var delta: integer); override;
procedure sizechanged; override;
-   
+
procedure updatereadonlystate; virtual;
procedure initeditfocus;
procedure updatedatalist; virtual;
-   
+
 //igridwidget
procedure setfirstclick(var ainfo: mouseeventinfoty);
-   function createdatalist(const sender: twidgetcol): tdatalist; 
+   function createdatalist(const sender: twidgetcol): tdatalist;
  virtual; abstract;
procedure datalistdestroyed; virtual;
function getdatalistclass: datalistclassty; virtual; abstract;
@@ -293,23 +293,23 @@ type
   published
property statfile: tstatfile read fstatfile write setstatfile;
property statvarname: msestring read getstatvarname write fstatvarname;
-   property 

Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Patrick Goupell


On 4/24/19 3:00 PM, fredvs wrote:

Re-hello Graeme.

Your script is perfect but... it need to install svn to download source of
fpc 3.2.0 (and I do not find the courage).

;-(

(Things would be so much easier with GitHub).

Anyway, thanks to Sternas and his out-of-the-box CodeTyphon, I did install
fpc 3.3.1.
I will see what appends with msegui and fpc > 3.0.x asap.
  
Fre;D


The source for FPC can be downloaded from the www.freepascal.org site.  
Follow the Download link on the right side of the screen.



___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
Re-hello.

OK, I jumped into fpc 3.3.1 + msegui.

Indeed, same error:

Free Pascal Compiler version 3.3.1 [2019/04/24] for x86_64
Copyright (c) 1993-2018 by Florian Klaempfl and others
msegraphedits.pas(126,19) Error: No matching implementation for interface
method "getdefaultifilink:iificlient;" found
msegraphedits.pas(1214,1) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted

Sadly I am not a guru in interface things and I do not see what is wrong
with iificlient interface for fpc > 3.0.x.

;-(

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
On 24/04/2019 20:00, fredvs wrote:
> Your script is perfect but... it need to install svn to download source of
> fpc 3.2.0 (and I do not find the courage).

Glad the script helped. I sometimes don't bother installing SVN either.
It the case of 3.2.0 I too didn't bother with SVN. I simply downloaded a
tar.gz of the source from somewhere - can't remember where though,
otherwise I would have shared the link.

Umm, maybe it was from SourceForge.net


Regards,
  Graeme


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
Re-hello Graeme.

Your script is perfect but... it need to install svn to download source of
fpc 3.2.0 (and I do not find the courage).

;-(

(Things would be so much easier with GitHub).

Anyway, thanks to Sternas and his out-of-the-box CodeTyphon, I did install
fpc 3.3.1.
I will see what appends with msegui and fpc > 3.0.x asap.
 
Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
Thanks Graeme for that clear answer!

> I thought Martin already worked on FPC 3.2.0 compatibility though. See 
>  commit history using 'gitk --all' 

Hum, I fear that those commits are about FPC 3.0.x compatibility:

In mclasses.pas:

{$if FPC_FULLVERSION >= 030100} {$define mse_fpc_3_2} {$endif}

It seems that what is called mse_fpc_3_2 point to fpc 3.0.x.

Anyway, asap I will into fpc compilation (must take a break for this first)
and (try to) make msegui compatible for fpc > 3.0.x.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
On 24/04/2019 14:12, fredvs wrote:
> Yes, but only source and compiling fpc is not my favorite game.

I have been using the same compilation script for the last 7 years and
it hasn't failed me yet. Just one reminder:

  A newer FPC may only be compiled with the latest _released_ FPC
  version.

My directory structure is as follows:

/data/devel/fpc-/
+- src
+- go.sh


Where  is the version of FPC. ie: "fpc-3.0.4" or "fpc-3.2.0"
and "src" is where the source code is checked out or unpacked from a
archive.

I have one ~/.fpc.cfg which uses $fpcversion and $fpctarget instead of
hard-coded version numbers. So this file NEVER needs to change even if I
switch FPC versions.


=[go.sh]===
#!/bin/sh

TARGET_VER=3.2.0
TARGET=x86_64-linux
COMPILER=/data/devel/fpc-3.0.4/$TARGET/bin/ppcx64

cd src

make clean
make all FPC=$COMPILER OPT="-Fl/usr/local/lib"
make install INSTALL_PREFIX=/data/devel/fpc-$TARGET_VER/$TARGET
FPC=/data/devel/fpc-$TARGET_VER/src/compiler/ppcx64

===

Due to line wrapping, I've attached the go.sh script found in the
fpc-3.2.0 directory.


So after running go.sh it will build and install fpc into the same
directory structure as shown above. It is totally independent of Linux
package management. I also use the same structure for Linux, FreeBSD and
Windows.

Here is my complete directory layout of the FPC versions I test with:

/data/devel/fpc-2.6.4/
   +-go.sh
   +-src/
   +-x86_64-linux/
   +-x86_64-freebsd/
/data/devel/fpc-3.0.4/
   +-go.sh
   +-src/
   +-x86_64-linux/
   +-x86_64-freebsd/
/data/devel/fpc-3.2.0/
   +-go.sh
   +-src/
   +-x86_64-linux/
   +-x86_64-freebsd/


I deleted the fpc-2.6.2 compiler as I don't recompile 2.6.4 any more.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


go.sh
Description: application/shellscript
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
> The FPC 3.2.0 branch is being maintained and stablised here: 

Yes, but only source and compiling fpc is not my favorite game.
Anyway, if I find lot of time and lot of courage I will do it and see what
msegui + fpc 3.2.0 say.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
On 24/04/2019 13:28, Fred van Stappen wrote:
> Hum, do you think it is already time to make msegui compatible for fpc  > 
> 3.0.4?


My rule of thumb (for fpGUI and such) is to not bother with FPC Trunk.
But once the FPC team announces a Release Candidate - which will become
the next release soonish - then I start working on making fpGUI
compatible. That why, on release day, fpGUI will work fine.


I thought Martin already worked on FPC 3.2.0 compatibility though. See
the commit history using 'gitk --all'

Commit 48b6c492b0f was a merge of a 'fpc_3_2' branch dated 2018-10-12.
There are some earlier commits too, like f064ac7cd.


The FPC 3.2.0 branch is being maintained and stablised here:

  https://svn.freepascal.org/svn/fpc/branches/fixes_3_2




Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Fred van Stappen

> The compilation error only occurs with FPC 3.2.0

This time was one too much.
Now I have cleaned my glazes with very hot water, strong soap, 3 times.

OK, sorry, yes, the same for FPC 3.1.x, Martin did not enable yet compatibility 
for > 3.0.4.

Hum, do you think it is already time to make msegui compatible for fpc  > 3.0.4?

Fre;D




De : Graeme Geldenhuys 
Envoyé : mercredi 24 avril 2019 13:45
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

On 24/04/2019 12:27, fredvs wrote:
> Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64

You are using FPC 3.0.2, which is why it is working. I said 3.0.2 and
3.0.4 works fine. The compilation error only occurs with FPC 3.2.0 (the
release candidate of the next FPC release). I haven't tried FPC Trunk,
because I consider trunk too unstable, but assume the same issue would
occur.

And yes, my build script ALWAYS clears out old compiled units before I
do a compilation. Years of experience with FPC has taught me any other
way is very unreliable. :-)

My build script:

[go-linux.sh]=
#!/bin/sh

rm units/x86_64-linux/*

/data/devel/fpc-3.2.0/x86_64-linux/bin/fpc \
  -O2 -XX -Xs \
  -Mobjfpc -Sh -Fcutf8 \
  -FUunits/x86_64-linux \
  -Fu${PWD}/lib/common/* \
  -Fu${PWD}/lib/common/kernel/linux \
  -Fi${PWD}/lib/common/kernel \
  -o./mseide \
  apps/ide/mseide.pas



Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
On 24/04/2019 12:27, fredvs wrote:
> Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64

You are using FPC 3.0.2, which is why it is working. I said 3.0.2 and
3.0.4 works fine. The compilation error only occurs with FPC 3.2.0 (the
release candidate of the next FPC release). I haven't tried FPC Trunk,
because I consider trunk too unstable, but assume the same issue would
occur.

And yes, my build script ALWAYS clears out old compiled units before I
do a compilation. Years of experience with FPC has taught me any other
way is very unreliable. :-)

My build script:

[go-linux.sh]=
#!/bin/sh

rm units/x86_64-linux/*

/data/devel/fpc-3.2.0/x86_64-linux/bin/fpc \
  -O2 -XX -Xs \
  -Mobjfpc -Sh -Fcutf8 \
  -FUunits/x86_64-linux \
  -Fu${PWD}/lib/common/* \
  -Fu${PWD}/lib/common/kernel/linux \
  -Fi${PWD}/lib/common/kernel \
  -o./mseide \
  apps/ide/mseide.pas



Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
>Did you try to remove all *.ppu. *.o and friends before compilation? 
> Sometimes, with fpc, -B parameter is not enough to clean all. 

It is the reason why I highly prefer to always use the -FUadirectory
parameter.
In that case all the *.ppu and friends are in same directory and easy to
delete.


Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread fredvs
Hello Graeme:

Here result of compilation of last mseide with fpc 3.0.2. on Debian 9.8:

 

Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64
Copyright (c) 1993-2016 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling mseide.pas
...
Linking mseide
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
663118 lines compiled, 70.8 sec

Did you try to remove all *.ppu. *.o and friends before compilation?
Sometimes, with fpc, -B parameter is not enough to clean all.

Fre;D

 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-04-24 Thread Graeme Geldenhuys
Hi,

I get a compilation error when using FPC 3.2.0:

  No matching implementation of interface found


It works fine when I compile with FPC 3.0.4 though.

=
...snip...
mseedit.pas(27,32) Hint: Unit "mseifiglob" not used in mseedit
mseedit.pas(683,19) Hint: Unit "msedataedits" not used in mseedit
Compiling ./lib/common/container/msesumlist.pas
msewidgetgrid.pas(324,34) Hint: Parameter "index" not used
msewidgetgrid.pas(303,32) Hint: Parameter "avalue" not used
msewidgetgrid.pas(310,31) Hint: Parameter "avalue" not used
msewidgetgrid.pas(308,31) Hint: Parameter "avalue" not used
msewidgetgrid.pas(555,2) Hint: Unit "msereal" not used in msewidgetgrid
msegraphedits.pas(126,19) Error: No matching implementation for
interface method "getdefaultifilink:iificlient;" found
msegraphedits.pas(1214,1) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted
Error: /data/devel/fpc-3.2.0/x86_64-linux/bin/ppcx64 returned an error
exitcode
[msegui (master)]$
=



Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk