[Lazarus] RE : RE : Dynamic loading of a custom sqlite library

2011-06-12 Thread Ludo Brands
So what did you mean by saying 'dangerous'? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] RE : RE : RE : Dynamic loading of a custom sqlite library

2011-06-12 Thread Ludo Brands
Typo;) Just found out that Ctrl-Enter sends the message in Outlook. -Message d'origine- De : Ludo Brands [mailto:ludo.bra...@free.fr] Envoyé : dimanche 12 juin 2011 10:38 À : 'Lazarus mailing list' Objet : [Lazarus] RE : RE : Dynamic loading of a custom sqlite library So what did

Re: [Lazarus] RE : RE : Dynamic loading of a custom sqlite library

2011-06-12 Thread Max Vlasov
2011/6/12 Ludo Brands ludo.bra...@free.fr So what did you mean by saying 'dangerous'? You should have read a little further in the message: Possibly everything is fine for sqlite3 but documenting it as a general solution is IMHO not correct.. The scenario I was talking about assumed an

[Lazarus] Codetools and virtual abstract methods (just nitpicking)

2011-06-12 Thread Bart
Consider this code: program test; {$mode objfpc}{$H+} {$R+} uses sysutils, classes; type { TCutomX } TCustomX = class (TStrings) protected procedure SomeProc; virtual; abstract; end; { TX } TX = class(TCustomX) protected procedure SomeProc; override; // Place cursor

Re: [Lazarus] Codetools and virtual abstract methods (just nitpicking)

2011-06-12 Thread Mattias Gaertner
On Sun, 12 Jun 2011 12:25:58 +0200 Bart bartjun...@gmail.com wrote: Consider this code: program test; {$mode objfpc}{$H+} {$R+} uses sysutils, classes; type { TCutomX } TCustomX = class (TStrings) protected procedure SomeProc; virtual; abstract; end; { TX }

Re: [Lazarus] Codetools and virtual abstract methods (just nitpicking)

2011-06-12 Thread Hans-Peter Diettrich
Bart schrieb: Now press Shift+Ctrl+C and voila codetools insert this code: procedure TX.SomeProc; begin inherited SomeProc; end; Which will (of course) not compile: test.lpr(32,21) Error: Abstract methods can't be called directly My fault, or a minor minor minor annoyance? It's liveable,

[Lazarus] RE : RE : RE : Dynamic loading of a custom sqlite library

2011-06-12 Thread Ludo Brands
You're right. My scenario doesn't cause a problem. All symbols are resolved before lib2 is loaded and loading lib2 won't change the symbols alread resolved. It would only affect new symbol lookups after lib2 is loaded and when using dlopen(nil,...). Ludo -Message d'origine- De : Max

Re: [Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-12 Thread leledumbo
Thanks for answering, however the problem is not yet solved. The whole point of fpweb is to abstract away the source of the information of the request. I know, but as I said something that works across the webapp type (like the base url) should exist. The Application.ApplicationURL is set to

Re: [Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-12 Thread Joost van der Sluis
On Sun, 2011-06-12 at 09:02 -0700, leledumbo wrote: Thanks for answering, however the problem is not yet solved. The whole point of fpweb is to abstract away the source of the information of the request. I know, but as I said something that works across the webapp type (like the base

Re: [Lazarus] thread safe

2011-06-12 Thread Marco van de Voort
On Sat, Jun 11, 2011 at 02:41:03AM +0100, Hans-Peter Diettrich wrote: threads at the same time. Which piece of code can *not* be safely invoked? Instead I'd define thread safety as the *absence* of possible data or state inconsistencies in concurrent execution [of threads]. The

[Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-12 Thread Erwin van den Bosch
TDBGrid does look weird and doesn't function anymore in svn: branches/fixes_0_9_30 Revision 31056 does work. Revision 31057 doesn't :-( fpc 2.4.2 Opensuse 11.2 x64 lazarus compiled for QT Regard, Erwin -- ___ Lazarus mailing list

Re: [Lazarus] Codetools and virtual abstract methods (just nitpicking)

2011-06-12 Thread Bart
On 6/12/11, Mattias Gaertner nc-gaert...@netcologne.de wrote: A minor. There is already a mantis item for this. Glad I didn't post it in Mantis then. It's something I can live with. This was my first time ever I wrote a component with an abstract method (not the example above, but a real-life

Re: [Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-12 Thread Bart
Please define does not work and looks weird (attach screenshot perhaps). Same problem exist with trunk? Bart On 6/13/11, Erwin van den Bosch er...@deseine.nl wrote: TDBGrid does look weird and doesn't function anymore in svn: branches/fixes_0_9_30 Revision 31056 does work. Revision 31057

Re: [Lazarus] TDBGrid broken in svn fixes_0_9_30

2011-06-12 Thread Erwin van den Bosch
Op 13-06-11 00:32, Bart schreef: Please define does not work and looks weird (attach screenshot perhaps). Can't you reproduce it? #DEFINE Does_not_work = Does not work at all. No grid lines. No header. Nothing. I can attach a screenshot but if you can't reproduce it a screenshot will