Re: [Lazarus] Decision required WRT dragging
Paul Ishenin schrieb: 30.03.12 5:24, Hans-Peter Diettrich wrote: So what should happen in such a case, where the developer didn't observe the rules? Should it be considered a fatal bug, and raise an exception? It is a normal situation when something is docked and have DragKind dkDock even I have no chance do undock it by mouse. If it works so it means that developer make it work so. At least the IDE developer had a different intention. It is useful in some situations and moreover I use this in my work projects when I want for example to integrate some form which may be a dialog in some cases into another form panel. So when form is manually docked with DragKind dkDock is not a bug in LCL and LCL should not change this property. But it's required to make the IDE dockable. If you oversve that some docked form should be undocked via mouse in IDE please change this in IDE. Not me :-( You need to find the control which changes the capture diring the drag and fix this control code. What do you need more than setting an breakpoint? Why should I do this if IDE docking has not 1.0 target? Because it does not only affect the IDE, but dragging in general. Consequently 1.0 will not properly support dragging, in all applications. That was your patch. The patch had target 0.99 and I reviewed it. The patch is wrong. If you want to fix IDE docking problems please submit another patch which does not break LCL behavior. I'm tired of supplying patches which then are rejected, and searching bugs in deliberately broken code. Docking worked fine in earlier Lazarus versions. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TreeView sometimes calls Refresh instead of Invalidate
On Fri, Mar 30, 2012 at 5:51 AM, cobines cobi...@gmail.com wrote: I posted patches: http://bugs.freepascal.org/view.php?id=21601 http://bugs.freepascal.org/view.php?id=21602 I applied them, thanks. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] wiki on a new server
On 26 March 2012 17:45, Vincent Snijders vincent.snijders@g* wrote: Also our old CSS values disappeared, for example: class=working http://wiki.lazarus.freepascal.org/Roadmap I will look into that. I'm not sure if you are having difficulty with this (maybe you just haven't had the time yet) or even how it was implemented in the old wiki. But my I make a suggestion. Why not implement a custom wiki function like I have done with {{keypress}} (for keyboard shortcut display), but for the roadmap status? For example: {{roadmap|w}} That could produce styled text output such as: span style=color:#FF; background:#00FF00working/span thus white text on a green background. {{roadmap|p}} That could produce styled text output such as: span style=color:#FF; background:#B7B104partially implemented/span thus white text on a olive green background. ...and so for The first parameter is one of: w - working p - partially implemented i - in progress n - not implemented u - unknown A quick search and replace can then get rid of the 'class=working|Working' type text, which seems more verbose anyway. For more details on how I implemented {{keypress}}, take a look at the following URL's. http://wiki.freepascal.org/index.php?title=Template:keypress http://wiki.freepascal.org/index.php?title=Template:keypress/core -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32
On Fri, Mar 30, 2012 at 4:48 AM, cobines cobi...@gmail.com wrote: I posted a patch for the excessive Begin/EndUpdate. http://bugs.freepascal.org/view.php?id=21600 I applied this one, too. It looks good although I didn't measure how much time it saves during build. From my tests disabling displaying progress has almost no impact on CPU usage, so I'm not doing anything with it. However I found that the quick fix icons that are updated from timer or OnIdle while building amount to half of CPU usage, so I would like to add an option to disable them. I have only found option to disable the note/hint/warning icons. Is it enough to only disable displaying the icons or would I need to disable some functionality as well, like the Hide message via directive menu? I don't use this feature so I don't know if icons are indispensable for it to work. Maybe the option used for other icons could also be used for quick fix icons. (?) I don't know anything about these icons. Someone else should comment on this one. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] wiki on a new server
Op 30 maart 2012 09:57 heeft Graeme Geldenhuys graemeg.li...@gmail.com het volgende geschreven: On 26 March 2012 17:45, Vincent Snijders vincent.snijders@g* wrote: Also our old CSS values disappeared, for example: class=working http://wiki.lazarus.freepascal.org/Roadmap I will look into that. I'm not sure if you are having difficulty with this (maybe you just haven't had the time yet) or even how it was implemented in the old wiki. But my I make a suggestion. Why not implement a custom wiki Not enough time yet. The old wiki had an included roadmap.css. Since all css where replaced in the upgrade, the roadmap.css was not included anymore. I tried to include it in the obvious place, the shared.css, but either it was ignored completely or anything else was ignored completely. So I need more time to find the correct place to include roadmap.css. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Start build with parameters from IDE
Hi all, I need to start from IDE the build project (F9 key) with a parameter (e.g. .\project1.exe test1)... how to do this? Thank you, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Start build with parameters from IDE
On Fri, 30 Mar 2012 10:23:41 +0200 Kjow antispamm...@gmail.com wrote: Hi all, I need to start from IDE the build project (F9 key) with a parameter (e.g. .\project1.exe test1)... how to do this? Do you mean Run / Run Parameters? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32
On Fri, 30 Mar 2012 11:13:36 +0300 Juha Manninen juha.mannine...@gmail.com wrote: On Fri, Mar 30, 2012 at 4:48 AM, cobines cobi...@gmail.com wrote: I posted a patch for the excessive Begin/EndUpdate. http://bugs.freepascal.org/view.php?id=21600 I applied this one, too. It looks good although I didn't measure how much time it saves during build. From my tests disabling displaying progress has almost no impact on CPU usage, so I'm not doing anything with it. However I found that the quick fix icons that are updated from timer or OnIdle while building amount to half of CPU usage, so I would like to add an option to disable them. I have only found option to disable the note/hint/warning icons. Is it enough to only disable displaying the icons or would I need to disable some functionality as well, like the Hide message via directive menu? I don't use this feature so I don't know if icons are indispensable for it to work. Maybe the option used for other icons could also be used for quick fix icons. (?) I don't know anything about these icons. Someone else should comment on this one. I removed the indicator icon. Almost all messages have nowadays a quickfix. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
A not initialized (running wild) pointer can behave like this. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TreeView sometimes calls Refresh instead of Invalidate
OK, thank you. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
Am 30.03.2012 02:06, schrieb Daniel Simoes de Ameida: Hi All I have a strange issue... I'm currently using Lazarus 0.9.31 (update from SVN) with FPC 2.6.0 When I compile my application with debug information, I always get a SIGSEGV when closing one of my forms,on line 4805 of control.inc This Image http://imagebin.org/205899shows the error. However, when compiling without debug information, the errors do not occur (better this way) .. I'm using Debug Info as Auto (-g) and Display Line numbers (-gl), Heaptrace Unit is also active (-gh)in Debug mode ... Any hints ? Heaptrace fills freed memory with garbage. CurAnchorSide probably is in a object which already has been destroyed. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32
2012/3/30 Mattias Gaertner nc-gaert...@netcologne.de: I removed the indicator icon. Almost all messages have nowadays a quickfix. OK. Thanks. With these few changes today now CPU stays mostly at 0-1% during build even with a big messages window open. But on Win32 it still flickers when changes are made to the treeview. Can double buffering be enabled for the treeview? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQLQuery crashes in Android
Hello, Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb directories but I couldn't find any place which says Unknown property Any ideas where the exception could be or how to fix it? It is probably a ARM issue, because using LCL-CustomDrawn-Win32 in x86 works fine. I/lclapp ( 710): JNI_OnLoad called I/lclapp ( 710): Reading our Activity Class I/lclapp ( 710): JNI_OnLoad finished I/lclapp ( 710): LCLOnCreate called by LCLActivity.onCreate I/lclapp ( 710): [FORMS.PP] ExceptionOccurred I/lclapp ( 710): Sender=EReadError I/lclapp ( 710): Exception=Error reading SQLQuery1.FieldDefs: Unknown proper ty: FieldDefs I/lclapp ( 710): Stack trace: I/lclapp ( 710): $81151990 I/lclapp ( 710): TApplication.HandleException Error reading SQLQuery1.FieldDef s: Unknown property: FieldDefs I/lclapp ( 710): Stack trace: I/lclapp ( 710): $81151990 W/Rosie ( 176): mAddHtcWidgetByOtherActivity = false, mIsOpenSlideWhenLeaveLa unch = true I/WindowManager( 99): WIN DEATH: Window{44a2a268 com.pascal.lcltest/com.pascal .lcltest.LCLActivity paused=false} -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLQuery crashes in Android
On Fri, 30 Mar 2012, Felipe Monteiro de Carvalho wrote: Hello, Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb directories but I couldn't find any place which says Unknown property Any ideas where the exception could be or how to fix it? It means the form file contains a FieldDefs property, which it does not find in the object itself. To my knowledge, the FieldDefs property should not be streamed for a TSQLQuery. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLQuery crashes in Android
On 30.03.2012 11:54, Felipe Monteiro de Carvalho wrote: Hello, Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb directories but I couldn't find any place which says Unknown property Any ideas where the exception could be or how to fix it? The message unknown property is located in the RTL and is used either by TypInfo or by the object reader. So it seems that you have a property in your LFM that's not named the same way as one of the published properties of TSQLQuery. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLQuery crashes in Android
Ok, I found the issue. FPC 2.6.0 (or whatever I utilized to build my IDE, don't remember anymore) has: TSQLQuery = Class(TCustomSQLQuery) public property SchemaType; Published property MaxIndexesCount; // TDataset stuff property FieldDefs; But in my branch this property is not published. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazbuild build IDE profiles
On Thu, 29 Mar 2012 17:31:05 -0400 waldo kitty wkitt...@windstream.net wrote: On 3/29/2012 17:13, Mattias Gaertner wrote: [...] Compiling package SynEdit 1.0 completed CreateBuildLazarusOptions exe locked NewTargetFilename=lazarus.new.exe [TExternalToolList.Run] CmdLine=C:\freepascal\binutils\i386-win32\make.exe cleanlaz WorkDir=C:\freepascal\laz\ That's the problems. There should be no cleanlaz after building Synedit. that's what i came up with, too... What did you do? me? when? where? :LOL: i'm lost in this thing...unless maybe it is in the profile which i have not gone into since starting these attempts to build completely from the command line... at this point, i can't even tell ya what laz looks like when it is running ;) profiles... where are they so i can look manually and see what is there... i /may/ very well have selected 'clean and build' in there which always worked from inside laz with no problems... it has only been the external build that's been breaking... attached is my idemake.cfg and miscellaneousoptions.xml... i also see why i'm seeing two -dDEBUG and -dVERBOSE... they are listed twice in the idemake.cfg but not in the miscellaneousoptions.xml... why? i dunno... Maybe I fixed the cleanlaz problem. Please test. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLQuery crashes in Android
Ok, so I published the property in my branch and uploaded a new build to sourceforge: http://sourceforge.net/projects/p-tools/files/Free%20Pascal%20for%20ARM/Windows/ And issue fixed. thanks =) -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Aggpas
On Thu, 22 Mar 2012 15:10:21 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 22 March 2012 15:03, Marcos Douglas wrote: WOW!!! clap-clap-clap! :-) I wish I could take all the credit, but I can't. Milano did some excellent work with AggPas. I then incorporated it into fpGUI as one of the standard canvas classes (and made sure it's 100% backward compatible with the previous generation of Native API canvas classes). Graeme, do you have some patches for Aggpas 64bit? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is there a function that returns UTC time in FPC or Lazarus?
When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of timezone? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TStringList.Destroy generate SIGSEGV with Zeos 6.6.6
Hi All, On recent FPC 2.6.1 I notice a strange behavior with TStringList.Destroy TStringList.Destroy, calls method TStringList.Clear, but the problem is that TStringList.Clear call methods Changing and Changed This affect Zeos 6.6.6, I presume is because Zeos try to read Params from the SQL.Text, every time a Change occurs I suggest a new InternalClear method, without calling Change/Changed that can be used in Destroy and Clear methods... Some thing like this: destructor TStringList.Destroy; Var I : Longint; begin FOnChange:=Nil; FOnChanging:=Nil; InternalClear; Inherited destroy; end; Procedure TStringList.Clear; Var I : longint; begin if FCount = 0 then Exit; Changing; InternalClear; Changed; end; Procedure TStringList.InternalClear; (Private) Var I : longint; begin if FCount = 0 then Exit; if FOwnsObjects then begin For I:=0 to FCount-1 do begin Flist^[I].FString:=''; freeandnil(Flist^[i].FObject); end; end else begin For I:=0 to FCount-1 do Flist^[I].FString:=''; end; FCount:=0; SetCapacity(0); end; []s Daniel Conheça o Projeto ACBr - Automaçao Comercial Brasil DJSystem a Loja Patrocinadora do ACBr -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TStringList.Destroy generate SIGSEGV with Zeos 6.6.6
Op 30 maart 2012 16:37 heeft Daniel Simoes de Ameida dopidan...@yahoo.com.br het volgende geschreven: Hi All, On recent FPC 2.6.1 I notice a strange behavior with TStringList.Destroy TStringList.Destroy, calls method TStringList.Clear, but the problem is that TStringList.Clear call methods Changing and Changed This affect Zeos 6.6.6, I presume is because Zeos try to read Params from the SQL.Text, every time a Change occurs I suggest a new InternalClear method, without calling Change/Changed that can be used in Destroy and Clear methods... see also: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revrevision=20570 Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
Bingo... Is the HeapTrace.. I just removed HeapTrace Unit from Linking and the problem has gone... Thanks Martin []s Daniel Conheça o Projeto ACBr - Automaçao Comercial Brasil DJSystem a Loja Patrocinadora do ACBr De: Martin Schreiber mse00...@gmail.com Para: lazarus@lists.lazarus.freepascal.org Enviadas: Sexta-feira, 30 de Março de 2012 5:28 Assunto: Re: [Lazarus] SIGSEGV with Debug only Am 30.03.2012 02:06, schrieb Daniel Simoes de Ameida: Hi All I have a strange issue... I'm currently using Lazarus 0.9.31 (update from SVN) with FPC 2.6.0 When I compile my application with debug information, I always get a SIGSEGV when closing one of my forms,on line 4805 of control.inc This Image http://imagebin.org/205899shows the error. However, when compiling without debug information, the errors do not occur (better this way) .. I'm using Debug Info as Auto (-g) and Display Line numbers (-gl), Heaptrace Unit is also active (-gh)in Debug mode ... Any hints ? Heaptrace fills freed memory with garbage. CurAnchorSide probably is in a object which already has been destroyed. Martin -- ___ 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] SIGSEGV with Debug only
Hello Lazarus-List, Friday, March 30, 2012, 5:11:07 PM, you wrote: DSdA Bingo... DSdA Is the HeapTrace.. I just removed HeapTrace Unit from DSdA Linking and the problem has gone... Removing heaptrace hide the error not fix the bug. The heaptrace is showing you a bug that otherwise you will not be aware of it in most situations like: var a: TSomething; begin a:=TSomething.Create; a.Method; a.Free; a.Method; //This is a bug that will be showed by heaptrace. end; -- Best regards, José -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Custom login forms and modal results
If a custom login form (e.g. specifying a host and port for telnet) is displayed, and the OK/Cancel buttons have modal results, what is the procedure that set the form visible supposed to do pending getting the form's modalResult? Once the form is set invisible, does it have to clear modalResult back to mrNone, or is this done automatically? Put another way, is the original procedure supposed to spin pending the modal result appearing, or is it supposed to return with subsequent processing attached to one of the login form's event handlers (and if so which one)? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
On 30/03/2012 16:11, Daniel Simoes de Ameida wrote: Bingo... Is the HeapTrace.. I just removed HeapTrace Unit from Linking and the problem has gone... No it has not gone. It is only hidden. That means you lowered the likelihood of it happening. The code still accesses an object that does not exist. That means random memory. Without heaptrc, you simple got better likelihood, that this random memory contains data, that does not cause a crash. But the bug is still there. It may still crash... Since it happens at form close, maybe you freed some component in your code? Changed owner of a component (moving to other form)? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Custom login forms and modal results
On Fri, 30 Mar 2012 15:33:08 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: If a custom login form (e.g. specifying a host and port for telnet) is displayed, and the OK/Cancel buttons have modal results, what is the procedure that set the form visible supposed to do pending getting the form's modalResult? Once the form is set invisible, does it have to clear modalResult back to mrNone, or is this done automatically? A form is shown modal with Form1.ShowModal and that resets the ModalResult to mrNone. Put another way, is the original procedure supposed to spin pending the modal result appearing, or is it supposed to return with subsequent processing attached to one of the login form's event handlers (and if so which one)? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't find lazreport when building lazarus ...
On Thu, 29 Mar 2012 14:03:18 -0300 William Oliveira Ferreira bdexterholl...@gmail.com wrote: i did those commands but it still on the same... `/usr/lib/lazarus/0.9.31/ide/lazarus.pp(1,1) Fatal: Can't find unit lazreport used by Lazarus` 2012/3/29 Mattias Gaertner nc-gaert...@netcologne.de On Thu, 29 Mar 2012 09:19:17 -0300 William Oliveira Ferreira bdexterholl...@gmail.com wrote: You don't set paths to build Lazarus. In fact, if you add paths then there is high chance that you get strange messages like the above. Have you tried to build Lazarus clean (see Tools / configure build lazarus)? Mattias To make the process more clear, i removed all lazarus' directorys on my user account. Started lazarus Added [anchordocking, anchordockingdsgn, lazreport]. Tryied to build lazarus from this window. '/usr/lib/lazarus/0.9.31/ide/lazarus.pp(1,1) Fatal: Can't find unit Interfaces used by Lazarus' Openned *Tools Configure Build Lazarus* Selected *Clear + Build All* On Build Profile *Clear All + Build* on Building IDE Clicked on *Build * '/usr/lib/lazarus/0.9.31/ide/lazarus.pp(1,1) Fatal: Can't find unit Interfaces used by Lazarus' Now it can't find another unit. Its very weird... Try this: make clean all ./lazbuild --build-ide= Maybe I found the error. Please update svn and try again. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a function that returns UTC time in FPC or Lazarus?
On 30-3-2012 16:05, Frank Church wrote: When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of timezone? Frank, You could search the fpc and lazarus mailing list; I know there've been posts regarding this. IIRC, the conclusion was that doing this is potentially very difficult to do cross platform, keeping daylight saving changes etc in mind. There is a separate unit that deals with this, IIRC, the wiki mentions it somewhere.. Regards, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
Martin, Even doesn't changing the Owner, the problem still.. O forgot to mention the content of ChangeOwner function procedure ChangeOwner(AComponente, NewOwner: TComponent); begin AComponente.Owner.RemoveComponent(AComponente); NewOwner.InsertComponent(AComponente); end; I suppose this function will handle all Notification changes, isn't ? []s Daniel Conheça o Projeto ACBr - Automaçao Comercial Brasil DJSystem a Loja Patrocinadora do ACBr De: Martin laza...@mfriebe.de Para: Daniel Simoes de Ameida dopidan...@yahoo.com.br; Lazarus mailing list lazarus@lists.lazarus.freepascal.org Enviadas: Sexta-feira, 30 de Março de 2012 13:49 Assunto: Re: [Lazarus] SIGSEGV with Debug only On 30/03/2012 17:14, Daniel Simoes de Ameida wrote: Martin, I use a Tab Style interface... (TDI)... so, I change the Owner/Parent in this function: APage := TFormPage.Create(nbForms) ; // This will call TFormPage.SetAForm procedure TFormPage.SetAForm(const AValue : TForm) ; begin fsAForm := AValue ; Caption := fsAForm.Caption; Color := fsAForm.Color; fsAForm.BorderStyle := bsNone ; fsAForm.Align := alClient ; // Change Aform Owner and Parent fsAForm.Parent := Self; ChangeOwner(fsAForm, Self); // AForm.FreeNotification(APage); I can't tell you 100% certain if this is related, but there is a chance it is to do with http://bugs.freepascal.org/view.php?id=21458 Setting the Owner of a component, does call Notify with opRemove and that breaks the FreeNotification system. Whenever the LCL sets a component to know about another it uses FreeNotification. So if one of the 2 is destroyed, the other one is informed and wiss not attempt to access the destroyed component. That also happens for anchors(since the 2 anchored components know about each other, they need to know, if one is destroyed) Due to the bug I mentioned, if you chang the owner, those notifications may no longer work. Depending on the order of calls and who knows whom, that can cause such a crash. Do you need to change the owner, or can you live with changing the parent only? The parent should be enough for displaying it. One of the things the owner will do, is clean up: if the owner is destroyed, so is the owned component. Maybe you can own things by the application? APage := TFormPage.Create(Application) ; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
On 30/03/2012 20:54, Daniel Simoes de Ameida wrote: Martin, Even doesn't changing the Owner, the problem still.. O forgot to mention the content of ChangeOwner function procedure ChangeOwner(AComponente, NewOwner: TComponent); begin AComponente.Owner.RemoveComponent(AComponente); NewOwner.InsertComponent(AComponente); end; I suppose this function will handle all Notification changes, isn't ? That is not that easy to answer. That depends on who owns what... Maybe even which classes are involved. To answer that I would have to read through some of the RTL/LCL rcode myself. It is not even sure that the bug is related to this. Though with the bug in place, I would avoid changing owners. It is possible with workarounds, but I can't foresee all the pitfalls. I had a quick look at the LCL code. Anchors to not seem to use FreeNotify When the app crashes, use the debugger, open the stack and make sure the frame selected is pointing to the source you posted (it may already be) Then evaluate self and/or self.fname to see which components refers to the missing anchor. That should help you find out which control the anchor pointed to. Maybe that holds some clue. Then you can debug again, and set breakpoints (in TControl.Destroy / wit condition on FName), and trying to find when the other control gets destroyed (if that is the problem, there are other possibilities...) Sorry this answer may appear a bit vague. But tracking that kind of issue can be very hard. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus crashing reproducibly on startup (64-bit Linux)
Well, I've done a bunch of testing with some virtual machines, plus a bunch of web searches looking for other threads on this error, and it seems to be plain that it's a multi-way incompatibility. If you are running Linux Mint Debian Edition (LMDE) V12 on an AMD 64-bit CPU (and it doesn't matter whether you run a 32 or 64 bit version of the operating system) then Lazarus will crash, reproducibly, and that holds for any version of LAzarus between 0.9.28.2 up to a fairly recent svn version. If you're running on an Intel CPU, or a 32-bit AMD chip, or you're running the Ubuntu-based version of Mint, you won't have a problem. This is particularly puzzling since LMDE is built on Debian testing, and Debian testing will run Lazarus without a problem. For that reason, it seems to me that it's a problem for the LMDE folks rather than the Lazarus developers. Now, where did I put that Debian installation DVD? Brian. On 03/29/2012 04:19 AM, brian wrote: For anyone still interested in this thread, sorry it's taking me so long to post again but I'm on a satellite internet connection, I only have unrestricted downloads between 0200 and 0700, and so it takes me quite a while to set up virtual machines and do the updates. While I've had one reply from a posting to the Mint Debian forums from someone who is tracking the unstable repositories and is able to run Lazarus without a problem, there seems to be no doubt that there is a basic incompatibility between Lazarus and either the stable or testing distros of Mint Debian. I haven't been able to get Lazarus to start on either distro, whether 32 bit or 64 bit, but plain Debian stable or testing runs Lazarus just fine. I'm going to try pointing at the unstable repositories now, and I'll post again in 3-4 days when I've had time to do the final set of updates and try all the different permutations. For the moment, I strongly advise anyone who wants to run Lazarus *NOT* to install Linux Mint Debian. If you want a rolling distro, stick with plain Debian rather than the Mint version, or try one of the others. All of the above does NOT apply to the Ubuntu-based versions of Mint. They run Lazarus without problems, too. Brian. On 03/18/2012 08:36 AM, brian wrote: I've recently switched distros to Mint Debian 12 64-bit XFCE. This is on an AMD Phenom *4, 4 GB of RAM. When I was reinstalling stuff I noticed that the latest version of Lazarus that they have in the repo is 0.9.28, a bit old I know, but it works for what I do. So I installed 0.9.28, which also brought in FPC 2.4.0-2. When I try to run Lazarus from the menus, I get the splash screen and then nothing, the IDE never comes up. So, I switched to a terminal, ran startlazarus and got the following output. [WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TLazarusManager.Run starting /usr/lib/lazarus/0.9.28.2/lazarus ... Runtime error 203 at $00736A16 $00736A16 $00720991 OK, maybe it's an old version. I downloaded the latest .DEBs from SourceForge, and installed those. No change in the symptoms (well, OK, I can't say the addresses were exactly the same, but the bit about the VK codes was, and it was still a runtime error 203). I cleaned out everything to do with Lazarus and FPC that I could find (using KFind to make sure I got everything) and had one more try with 0.9.28. As expected, still the same error. I know that 0.9.28 used to run on Mint 9 64-bit, but that was the Ubuntu-based version, not the Debian-based one. Anyone have any ideas how to fix this, please? Brian. -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a function that returns UTC time in FPC or Lazarus?
2012/3/30 Reinier Olislagers reinierolislag...@gmail.com On 30-3-2012 16:05, Frank Church wrote: When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of timezone? Frank, You could search the fpc and lazarus mailing list; I know there've been posts regarding this. IIRC, the conclusion was that doing this is potentially very difficult to do cross platform, keeping daylight saving changes etc in mind. There is a separate unit that deals with this, IIRC, the wiki mentions it somewhere.. Regards, Reinier -- PascalTZ does that. http://wiki.lazarus.freepascal.org/PascalTZ -- João Marcelo http://blog.caixadepandora.com/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SIGSEGV with Debug only
On 3/30/2012 04:28, Martin Schreiber wrote: Am 30.03.2012 02:06, schrieb Daniel Simoes de Ameida: I'm using Debug Info as Auto (-g) and Display Line numbers (-gl), Heaptrace Unit is also active (-gh)in Debug mode ... Any hints ? Heaptrace fills freed memory with garbage. CurAnchorSide probably is in a object which already has been destroyed. ewww :( in my ancient mind, it would be better to fill with null for possible checks but then again ;) :P -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazbuild build IDE profiles
On 3/30/2012 06:16, Mattias Gaertner wrote: On Thu, 29 Mar 2012 17:31:05 -0400 waldo kittywkitt...@windstream.net wrote: attached is my idemake.cfg and miscellaneousoptions.xml... i also see why i'm seeing two -dDEBUG and -dVERBOSE... they are listed twice in the idemake.cfg but not in the miscellaneousoptions.xml... why? i dunno... Maybe I fixed the cleanlaz problem. Please test. doing so now... report in a bit... have 12 to pull in less than 6... might take me a day or two to get back... but maybe not ;) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a function that returns UTC time in FPC or Lazarus?
On 3/30/2012 10:05, Frank Church wrote: When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of timezone? where are you reading from? the RTC or the OS clock? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus