[MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG
Hello Martin,

rebuilding a project last compiled 1 or 2 years ago.

Getting a segmentation fault in mseimplicitedit.pas, function
poschanged, line 2381 of version 4.7  This was probably last compiled
under version 3.8 or maybe 4.0 (or earlier, I don't really know when)

This is occurring during program startup in the form oncreated event. 
The widget being created is not visisble at this time.


--
Patrick Goupell

Are you free?  Find out at http://www.sedm.org/
Income taxes?  Find out at http://www.whatistaxed.com



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

mse
Administrator
On Wednesday 28 November 2018 16:15:47 Patrick Goupell wrote:
> Hello Martin,
>
> rebuilding a project last compiled 1 or 2 years ago.
>
> Getting a segmentation fault in mseimplicitedit.pas, function
> poschanged, line 2381 of version 4.7  This was probably last compiled
> under version 3.8 or maybe 4.0 (or earlier, I don't really know when)
>
AFAIK there is no file mseimplicitedit.pas in MSEgui. Do yo mean
mseinplaceedit.pas?
mseinplaceedit.pas:2381 is a comment in tinplacedit.updatecaret(). Are you
sure there is no mixture of old an new ppu's? Please send a testproject which
shows the problem.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG
In reply to this post by PatG
Finally got a test project to reproduce the problem.

Tried to attached a zip file but it got rejected.

How do I get the test project to you?

Patrick



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

fredvs
> How do I get the test project to you?

You may sent if via nabble.com:

http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-ossible-regression-mseimplicitedit-pas-function-poschanged-td1474.html#a1497

---> Click on "Reply" then on "More- Upload a file"



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


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG
In reply to this post by PatG
testprj.zip
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t7/testprj.zip>  

I hope this works



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


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG
In reply to this post by PatG

Hello Martin,

Did you get my test project I sent on 2018-12-04?

Have you had a chance to examine it?

Thank you

Patrick



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

fredvs
This post was updated on .
Hello.

Maybe the problem comes from line 53 in common.pas.

Changing this:
 
seValue := tstringedit.create (self,twidget(tpgParent));
               
with that:

seValue := tstringedit.create (twidget(tpgParent));

makes this:

<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/testprj.png

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
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG
On 12/17/18 10:51 AM, fredvs wrote:
>
> makes this:
> <http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/testprj.png>
>
> Fre;D
>
>

Almost, but not exact.

There should be a stringedit component in the contacts tab page.

It seems to get creaetd, but where is it?

Still need to do some more testing.

The project used to work.  Lst compiled a couple of years ago.



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

fredvs
> It seems to get creaetd, but where is it?

Huh, indeed strange...

Do you absolutely need to dynamically create the component ?

In case like this I use the MSE-designer to create the components and set it
to visible := false.
And when needed ---> visible := true;

I have already try like you to dynamically create components (without the
use of MSE-designer) but I failed.

Fre;D



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


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG

On 12/17/18 3:42 PM, fredvs wrote:
>> It seems to get creaetd, but where is it?
> Huh, indeed strange...
>
> Do you absolutely need to dynamically create the component ?
>

The components are created as needed and vary based upon what functions
the user selects.

As I said, this used to work.

I guess I can pull some of the old git code and see if I can determine
when/where it started to occur.



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

fredvs
> As I said, this used to work.

Ha, super.

> I guess I can pull some of the old git code and see if I can determine
> when/where it started to occur.

It would be very appreciated.
In one of my project that was started in Jul 2017 I did have that problems.

So if it was working for you, maybe i was earlier.

Fre;D







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


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG


>> I guess I can pull some of the old git code and see if I can determine
>> when/where it started to occur.

trying to figure this problem out.

Got a clone of the mseide-msegui source.

Did a git checkout 2_8_6 branch as I think this compiled my project in the past.

When I try to compile / build my test project there is an error for a missing mclasses unit in fpccompatibility.

When I check the source folder mseide-msegui/lib/common/fpccompatibility ther are only *.o *.ppu files.  NO *.pas files.

There are *.pas files in the other folders, so why not in the fpccompatibility folder?

I was under the impression that the different branches contained the full souce of a project at a specific point in time.

Suggestions?



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

fredvs
Hello.

Did you try with a old fpc version (like 2.6.4) ? --->

ftp://www.hu.freepascal.org/pub/fpc/dist/2.6.4/

No news of Martin ?

Fre;D



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


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] ossible regression, mseimplicitedit.pas, function poschanged

PatG

On 12/21/18 6:49 AM, fredvs wrote:
> Hello.
>
> Did you try with a old fpc version (like 2.6.4) ? --->
>
> ftp://www.hu.freepascal.org/pub/fpc/dist/2.6.4/
>
> No news of Martin ?
>

I used fpc version 2.6.4, but that doe s not explain why there were no
*.pas files in the fpccompatibility folder.

Anyway, I have changed the program, replacing all tcomponent.create with
tcomponent.createandinit.  That seems to have fixed that problem.

But I have a new problem now.  So consider this problem closed and if I
cannot solve the new problem I will send a new post.

Martin seems to be missing in action.

Patrick



_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk