Sign in Join

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

Mailing lists / lazarus / 2014-07

Possible bug in TFrame

10 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Darío J. Vázquez Arguija

To Whom It May Concern:

I have detected a possible bug in the frames of Lazarus (1.0, 1.2.2, 1.3trunk) the problem manifests itself when the implemented component is embedded in frame and then try to run the program, which throws an error (The Control'' has no parent window), fortunately I don't have to send my code for some of their own components manifests.

Please install the customdrawn package that comes with lazarus, create a frame insert one CDPageControl create CDTabSheet a page or two and then try to insert the frame within a form. It goes without saying that out of the frames components work perfectly .....

This is a bug already known??

Best Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140715/9ec15519/attachment.html>

Reply by email

Marcos Douglas B. Santos
to Darío J. Vázquez Arguija
AM Darío J. Vázquez Arguija wrote 8 lines
To Whom It May Concern: I have detected a possible bug in the frames of Lazarus (1.0, 1.2.2, 1.3trunk) the problem manifests itself when the implemented component is embedded in frame and then try to run the program, which throws an error (The Control'' has no parent window), fortunately I don't have to send my code for some of their own components manifests. Please install the customdrawn package that comes with lazarus, create a frame insert one CDPageControl create CDTabSheet a page or two and then try to insert the frame within a form. It goes without saying that out of the frames components work perfectly ..... This is a bug already known??

I'm using the original mail above (2014!) because the same problem still exists in the current version.

This won't happen with all frames, but just ones that have components with published properties as TCollection type, for example.

Using fpcupdeluxe on Windows:
- first, I have installed the version that still uses SVN (FPC 3.2.0 rev 45643, Laz rev 64642), and the problem still there;
- then, I have used the new fpcupdeluxe version that uses Git instead SVN, selecting the branches fpc-3.2.0 + laz-stable, and the problem still there;
- then, keeping FPC as 3.2.0 (from now on), I selected the branches fpc-3.2.0 + laz-2.0.12, and the problem still there;
- then, I have tried using branch fixes-2.2—which we couldn't use it in production yet, as I realized this branch has renamed some packages/components, adding "Laz" as prefix, which will broke the projects for the team which I'm work with—and the problem still there;
- almost giving up, I have tried a downgrade for 2.0.10 (which uses rev 63526)—only testing—and the problem still there;
- finally, I have tried using the trunk (Lazarus 2.3.0 rev main-0-gfb27fcd12a).... and the problem is still there!!! :\

I believe anyone can reproduce the same explained above using any component that has at least one published property as TCollection.

Can someone propose a solution and merge it on, at least, fixes-2.0 please?

best regards,
Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos
AM Marcos Douglas B. Santos wrote 39 lines
On Tue, Jul 15, 2014 at 11:55 AM Darío J. Vázquez Arguija wrote: > > To Whom It May Concern: > > I have detected a possible bug in the frames of Lazarus (1.0, 1.2.2, 1.3trunk) the problem manifests itself when the implemented component is embedded in frame and then try to run the program, which throws an error (The Control'' has no parent window), fortunately I don't have to send my code for some of their own components manifests. > > Please install the customdrawn package that comes with lazarus, create a frame insert one CDPageControl create CDTabSheet a page or two and then try to insert the frame within a form. It goes without saying that out of the frames components work perfectly ..... > > This is a bug already known?? I'm using the original mail above (2014!) because the same problem still exists in the current version. This won't happen with all frames, but just ones that have components with published properties as TCollection type, for example. Using fpcupdeluxe on Windows: - first, I have installed the version that still uses SVN (FPC 3.2.0 rev 45643, Laz rev 64642), and the problem still there; - then, I have used the new fpcupdeluxe version that uses Git instead SVN, selecting the branches fpc-3.2.0 + laz-stable, and the problem still there; - then, keeping FPC as 3.2.0 (from now on), I selected the branches fpc-3.2.0 + laz-2.0.12, and the problem still there; - then, I have tried using branch fixes-2.2—which we couldn't use it in production yet, as I realized this branch has renamed some packages/components, adding "Laz" as prefix, which will broke the projects for the team which I'm work with—and the problem still there; - almost giving up, I have tried a downgrade for 2.0.10 (which uses rev 63526)—only testing—and the problem still there; - finally, I have tried using the trunk (Lazarus 2.3.0 rev main-0-gfb27fcd12a).... and the problem is still there!!! :\ I believe anyone can reproduce the same explained above using any component that has at least one published property as TCollection. Can someone propose a solution and merge it on, at least, fixes-2.0 please?

This didn't work either:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/17071#note_637425762

Problems with Frames are very old...

Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos
AM Marcos Douglas B. Santos wrote 46 lines
On Sun, Aug 15, 2021 at 9:03 AM Marcos Douglas B. Santos wrote: > > On Tue, Jul 15, 2014 at 11:55 AM Darío J. Vázquez Arguija > wrote: > > > > To Whom It May Concern: > > > > I have detected a possible bug in the frames of Lazarus (1.0, 1.2.2, 1.3trunk) the problem manifests itself when the implemented component is embedded in frame and then try to run the program, which throws an error (The Control'' has no parent window), fortunately I don't have to send my code for some of their own components manifests. > > > > Please install the customdrawn package that comes with lazarus, create a frame insert one CDPageControl create CDTabSheet a page or two and then try to insert the frame within a form. It goes without saying that out of the frames components work perfectly ..... > > > > This is a bug already known?? > > I'm using the original mail above (2014!) because the same problem > still exists in the current version. > > This won't happen with all frames, but just ones that have components > with published properties as TCollection type, for example. > > Using fpcupdeluxe on Windows: > - first, I have installed the version that still uses SVN (FPC 3.2.0 > rev 45643, Laz rev 64642), and the problem still there; > - then, I have used the new fpcupdeluxe version that uses Git instead > SVN, selecting the branches fpc-3.2.0 + laz-stable, and the problem > still there; > - then, keeping FPC as 3.2.0 (from now on), I selected the branches > fpc-3.2.0 + laz-2.0.12, and the problem still there; > - then, I have tried using branch fixes-2.2—which we couldn't use it > in production yet, as I realized this branch has renamed some > packages/components, adding "Laz" as prefix, which will broke the > projects for the team which I'm work with—and the problem still there; > - almost giving up, I have tried a downgrade for 2.0.10 (which uses > rev 63526)—only testing—and the problem still there; > - finally, I have tried using the trunk (Lazarus 2.3.0 rev > main-0-gfb27fcd12a).... and the problem is still there!!! :\ > > I believe anyone can reproduce the same explained above using any > component that has at least one published property as TCollection. > > Can someone propose a solution and merge it on, at least, fixes-2.0 please? This didn't work either: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/17071#note_637425762 Problems with Frames are very old...

This one has "status confirmed", created 7 years ago: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/25124

best regards,
Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos: On Tue, Jul 15, 2014 at 11:55 AM Darío J. Vázquez Arguija I'm using the original mail…
AM Marcos Douglas B. Santos wrote 39 lines
On Tue, Jul 15, 2014 at 11:55 AM Darío J. Vázquez Arguija wrote: > > To Whom It May Concern: > > I have detected a possible bug in the frames of Lazarus (1.0, 1.2.2, 1.3trunk) the problem manifests itself when the implemented component is embedded in frame and then try to run the program, which throws an error (The Control'' has no parent window), fortunately I don't have to send my code for some of their own components manifests. > > Please install the customdrawn package that comes with lazarus, create a frame insert one CDPageControl create CDTabSheet a page or two and then try to insert the frame within a form. It goes without saying that out of the frames components work perfectly ..... > > This is a bug already known?? I'm using the original mail above (2014!) because the same problem still exists in the current version. This won't happen with all frames, but just ones that have components with published properties as TCollection type, for example. Using fpcupdeluxe on Windows: - first, I have installed the version that still uses SVN (FPC 3.2.0 rev 45643, Laz rev 64642), and the problem still there; - then, I have used the new fpcupdeluxe version that uses Git instead SVN, selecting the branches fpc-3.2.0 + laz-stable, and the problem still there; - then, keeping FPC as 3.2.0 (from now on), I selected the branches fpc-3.2.0 + laz-2.0.12, and the problem still there; - then, I have tried using branch fixes-2.2—which we couldn't use it in production yet, as I realized this branch has renamed some packages/components, adding "Laz" as prefix, which will broke the projects for the team which I'm work with—and the problem still there; - almost giving up, I have tried a downgrade for 2.0.10 (which uses rev 63526)—only testing—and the problem still there; - finally, I have tried using the trunk (Lazarus 2.3.0 rev main-0-gfb27fcd12a).... and the problem is still there!!! :\ I believe anyone can reproduce the same explained above using any component that has at least one published property as TCollection. Can someone propose a solution and merge it on, at least, fixes-2.0 please?

Nobody has the same problem?
If you cannot reproduce, would you like a demo or so? Should I open a new ticket for it on GitLab?

best regards,
Marcos Doulgas

Reply by email

Marcos Douglas B. Santos
to Juha Manninen
AM Juha Manninen wrote
Is there an example project without external packages or customdrawn widgetset? Customdrawn widgetset is incomplete and broken at least here in my Linux system. If not, then please upload such a project into one of the tickets.

I'm not using CustomDrawn. I created a component that has TCollection as published property. That's it.
I'll create a demo and component example, create a ticket and post it here soon. Thanks.

Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos
AM Marcos Douglas B. Santos wrote 12 lines
On Wed, Aug 18, 2021 at 8:45 AM Juha Manninen via lazarus wrote: > > Is there an example project without external packages or customdrawn widgetset? > Customdrawn widgetset is incomplete and broken at least here in my Linux system. > If not, then please upload such a project into one of the tickets. I'm not using CustomDrawn. I created a component that has TCollection as published property. That's it. I'll create a demo and component example, create a ticket and post it here soon. Thanks.

Hello, Juha,

It has a problem for sure—as the component(s) works on Form but not on Frame—but I wasn't able to reproduce the error using a simple demo + "fake component".
I thought the problem was because of a published TCollection property, but it wasn't.

If I publish the full source of the component—which is not a big deal—or send it to you in private, could you test it using the Demo which exists already?

Sorry about my delay.

best regards,
Marcos Douglas

Reply by email

Juha Manninen
to Marcos Douglas B. Santos

On Thu, Aug 19, 2021 at 11:59 PM Marcos Douglas B. Santos via lazarus <

Show quoted text 6 lines
wrote: If I publish the full source of the component—which is not a big deal—or send it to you in private, could you test it using the Demo which exists already?

Yes, both ways are OK, although publishing the component is better. I am not the only developer here. Others may want to reproduce the bug, too. Open source you know.
I suggest you study your component a little more. Strip out parts which have no effect on the bug. Finally you figure out the problematic part. It was not a TCollection, so it must be something else. Then you may be able to create a minimal example to reproduce the bug.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210820/d2579e89/attachment.html>

Reply by email

Marcos Douglas B. Santos
to Juha Manninen

On Fri, Aug 20, 2021 at 4:42 AM Juha Manninen via lazarus <

Show quoted text 10 lines
wrote: Yes, both ways are OK, although publishing the component is better. I am not the only developer here. Others may want to reproduce the bug, too. Open source you know. I suggest you study your component a little more. Strip out parts which have no effect on the bug. Finally you figure out the problematic part. It was not a TCollection, so it must be something else. Then you may be able to create a minimal example to reproduce the bug.

Juha,
On Gitlab, @flavio.etrusco gave us a hint, which it solved my problem (with the first component, then I will check others)
->
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/25124#note_657170206

But the same question that I've asked him there, I ask you — please take a look at the link, and we can continue there, if it's Ok for you. Thank you.

regards,
Marcos Douglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210822/1ec44cc6/attachment.html>

Reply by email