Re: [Lazarus] Can you reproduce the following Access Violation ?
ik hat am 17. Oktober 2012 um 18:28 geschrieben: > Hello, > > When I write something like so: > > - > type > TForm1 = class(TForm); This is *not* a forward defined class, this is a normal class. And therefore you have two definitions of TForm1. This s valid Object Pascal, but the IDE always uses the first. > > TSomeClass = class > ... > end; > > TForm1 = class(TForm) > ... > end; > > > -- > > If I try to rename a component in design time (Other then the form > itself), it will throw at me Access Violation. I fixed the AV. But the missing "end" is not yet auto added. But maybe this is a good thing, so users see that something went wrong. > I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 > > Can you reproduce the following issue (So I could report a bug), or am > I missing something here ? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can you reproduce the following Access Violation ?
On Wed, Oct 17, 2012 at 10:42 PM, stdreamer wrote: > On 17/10/2012 7:28 μμ, ik wrote: >> >> Hello, >> >> When I write something like so: >> >> - >> type >>TForm1 = class(TForm); >> >>TSomeClass = class >>... >>end; >> >>TForm1 = class(TForm) >>... >>end; >> >> >> -- >> >> If I try to rename a component in design time (Other then the form >> itself), it will throw at me Access Violation. >> >> I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 >> >> Can you reproduce the following issue (So I could report a bug), or am >> I missing something here ? >> >> Thanks, >> Ido >> > I am guessing that the 1st TForm1 declaration mend to be a forward > declaration. > In that case you have defined it wrong. > Tform1 = class(Tform); > is equal to > TForm1 = class(TForm) > end; > and not a forward declaration. In your case you have 2 components defined > with the same name in the same unit and probably creates conflicts. > try to change the first declaration to > TForm1 = class; > and see what happens. You are right :( And I can't reproduce it again. > > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can you reproduce the following Access Violation ?
On 17/10/2012 7:28 μμ, ik wrote: Hello, When I write something like so: - type TForm1 = class(TForm); TSomeClass = class ... end; TForm1 = class(TForm) ... end; -- If I try to rename a component in design time (Other then the form itself), it will throw at me Access Violation. I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 Can you reproduce the following issue (So I could report a bug), or am I missing something here ? Thanks, Ido I am guessing that the 1st TForm1 declaration mend to be a forward declaration. In that case you have defined it wrong. Tform1 = class(Tform); is equal to TForm1 = class(TForm) end; and not a forward declaration. In your case you have 2 components defined with the same name in the same unit and probably creates conflicts. try to change the first declaration to TForm1 = class; and see what happens. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can you reproduce the following Access Violation ?
On Wed, Oct 17, 2012 at 6:50 PM, Corpsman wrote: > if i write > Type > TForm1 = Class(TForm); > > TSomeClass = Class > private > public > > End; > > TForm1 = Class(TForm) > private > { private declarations } > public > { public declarations } > End; > > set a Tbutton on the TForm1 and double click ( to create the OnClick Event ) > > I get also the exception : > > The component editor of class "TDefaultComponentEditor" has created the > error: > "Unable to create new method. Please fix the error shown in the message > window, which is normally below the source editor." > > Lazarus 1.1 r39114M Free Pascal Compiler version 2.6.0-1 [2012/01/13] for > i386 > > Corpsman on Kubuntu 12.04 I have reported it: http://bugs.freepascal.org/view.php?id=23148 > > > > On 10/17/2012 06:28 PM, ik wrote: >> >> Hello, >> >> When I write something like so: >> >> - >> type >>TForm1 = class(TForm); >> >>TSomeClass = class >>... >>end; >> >>TForm1 = class(TForm) >>... >>end; >> >> >> -- >> >> If I try to rename a component in design time (Other then the form >> itself), it will throw at me Access Violation. >> >> I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 >> >> Can you reproduce the following issue (So I could report a bug), or am >> I missing something here ? >> >> Thanks, >> Ido >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > -- > > Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie > aktualisiert und erweitert. Da ist für jeden was dabei. > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can you reproduce the following Access Violation ?
Am 17.10.2012 18:50, schrieb Corpsman: set a Tbutton on the TForm1 and double click ( to create the OnClick Event ) I get also the exception : The component editor of class "TDefaultComponentEditor" has created the error: "Unable to create new method. Please fix the error shown in the message window, which is normally below the source editor." Lazarus 1.1 r39114M Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Corpsman on Kubuntu 12.04 TButton on Form and double click: No probs with Lazarus 1.1 r39114M FPC 2.6.0 i386-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can you reproduce the following Access Violation ?
if i write Type TForm1 = Class(TForm); TSomeClass = Class private public End; TForm1 = Class(TForm) private { private declarations } public { public declarations } End; set a Tbutton on the TForm1 and double click ( to create the OnClick Event ) I get also the exception : The component editor of class "TDefaultComponentEditor" has created the error: "Unable to create new method. Please fix the error shown in the message window, which is normally below the source editor." Lazarus 1.1 r39114M Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Corpsman on Kubuntu 12.04 On 10/17/2012 06:28 PM, ik wrote: Hello, When I write something like so: - type TForm1 = class(TForm); TSomeClass = class ... end; TForm1 = class(TForm) ... end; -- If I try to rename a component in design time (Other then the form itself), it will throw at me Access Violation. I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 Can you reproduce the following issue (So I could report a bug), or am I missing something here ? Thanks, Ido -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can you reproduce the following Access Violation ?
Hello, When I write something like so: - type TForm1 = class(TForm); TSomeClass = class ... end; TForm1 = class(TForm) ... end; -- If I try to rename a component in design time (Other then the form itself), it will throw at me Access Violation. I'm using: Lazarus 1.1 r39114M FPC 2.6.0 x86_64-linux-gtk 2 Can you reproduce the following issue (So I could report a bug), or am I missing something here ? Thanks, Ido -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus