Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Graeme Geldenhuys
On 2014-10-01 23:46, Mattias Gaertner wrote: > fpc -Fufpgui/fpgui-1.2/src/units/i386-linux -Fu... yourprogram.pas > And put it into the build commands. And just to clarify for Brian the *.cfg file is simply a text file containing one FPC command line parameter per line. You then only need to r

Re: [fpc-pascal] Is TFPList thread safe?

2014-10-01 Thread Michael Van Canneyt
On Thu, 2 Oct 2014, Xiangrong Fang wrote: Hi, I would like to know if TFPList is thread-safe or not? And if I make a component thread-safe by using critical sections etc. Is the performance penalty noticeable?  TFPList is not thread-safe. You need to use TThreadList if you want a thread-

[fpc-pascal] Is TFPList thread safe?

2014-10-01 Thread Xiangrong Fang
Hi, I would like to know if TFPList is thread-safe or not? And if I make a component thread-safe by using critical sections etc. Is the performance penalty noticeable? Thanks. Xiangrong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 15:16:13 -0700 (PDT) Brian wrote: >[...] > > Do you have an example of how you can pass the unit paths via -Fu in Geany > > ? If you don't know how to do this in Geany, maybe it is not a good editor choice for you. You use the command line from the terminal: fpc -Fufpgui/fpgu

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Brian
Mattias Gaertner wrote > On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) > Brian < > vmst@ > > wrote: > >> Sorry , I wasn't specific about my problem. Using the example in the >> fpGUI >> distribution (but the following comments are not specific to fpGUI). >> >> I want to use Geany as the IDE without u

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) Brian wrote: > Sorry , I wasn't specific about my problem. Using the example in the fpGUI > distribution (but the following comments are not specific to fpGUI). > > I want to use Geany as the IDE without using .CFG files and compiling from > the commandlin

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Brian
Sorry , I wasn't specific about my problem. Using the example in the fpGUI distribution (but the following comments are not specific to fpGUI). I want to use Geany as the IDE without using .CFG files and compiling from the commandline. If UNITPATH is set in the main program (the fpGUI is a good e

Re: [fpc-pascal] Windows type library files

2014-10-01 Thread Adriaan van Os
Sven Barth wrote: Are you really trying to generate a typelibrary from *.h files or are you using *.idl files? If the former then that's the wrong approach... From *.idl files. In wine, the .h files for COM interfaces are created from the .idl files, using widl. That works. But creating .tbl f

Re: [fpc-pascal] how do I get Run Time info from a published method?

2014-10-01 Thread Flávio Etrusco
On Mon, Sep 29, 2014 at 11:54 PM, Dennis Poon wrote: > say for example: > > type > TmyClass = class > published > procedure Something (sender : Tobject);virtual; > end; > > var > myClass : TmyClass; > > then somewhere > > AddMethodToQueue(@myclass.Something); > > > I

Re: [fpc-pascal] Windows type library files

2014-10-01 Thread Sven Barth
Am 01.10.2014 16:47 schrieb "Adriaan van Os" : > > In order to generate type library files from Windows (or wine) headers, I built widl from wine sources (on Mac OS X). Well, widl generates any kind of file, except .tbl. There is no error message and no output. A

[fpc-pascal] Windows type library files

2014-10-01 Thread Adriaan van Os
In order to generate type library files from Windows (or wine) headers, I built widl from wine sources (on Mac OS X). Well, widl generates any kind of file, except .tbl. There is no error message and no output. Does someone know if .tbl files for Windows can b

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Philippe
as for other points (for example "with" use/misuse) ... for me -Fu recursive, "with" statement and others may be usefull tools ... not for you! there no absolute answer! may be other people don't do the same kind of job I do, or you do. may they they don't work the same way I do, or you do!

Re: [fpc-pascal] Reproducible code: DLL calling Firebird crashes

2014-10-01 Thread Marco van de Voort
In our previous episode, Sven Barth said: > > So the obvious question might be if the unit initialization really belongs > > into the library initialization like that. > > The only other alternative would be to add the RTL initialization code > to each exported function. I don't consider this a