[fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Marcos Douglas
Hi, There are libs, in Pascal, to convert .doc and/or .html files to .pdf? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pascal Scripting Engines

2010-12-10 Thread Marcos Douglas
#x27;s PascalScript and FastScript both work with FPC. > > RemObject's is free to use IRRC. There is also the lysee language. See http://code.google.com/p/lysee/ "Lysee is a small, fast, reliable and cross platform script language. It can be embedded into Pascal programs as a critic

Re: Re[4]: [fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-11-02 Thread Marcos Douglas
On Tue, Nov 2, 2010 at 8:32 PM, DaWorm wrote: > > > On Tue, Nov 2, 2010 at 11:45 AM, Marcos Douglas wrote: >> >> If I found a match, I need to know which page the >> token was found... >> > > That may prove most difficult, since I doubt your pdf to tex

Re: Re[4]: [fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-11-02 Thread Marcos Douglas
separator for each Token like , comma, "/", "\", , etc. For each token found, I'll search a combination in my lists of words. If I found a match, I need to know which page the token was found... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
to the same > overall speed; if not higher... Yes, that's what I thought too ;-) > Just my last 2c on the thing. > > P.S. > Why don't you give it a try, cronometer at hand, first? Because I have not gotten in this stage yet :) Thanks, Marcos Douglas _

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 4:02 PM, Tomas Hajny wrote: > On Mon, November 1, 2010 19:34, Marcos Douglas wrote: >> On Mon, Nov 1, 2010 at 3:31 PM, Tomas Hajny wrote: >>> On Mon, November 1, 2010 19:10, Marco van de Voort wrote: >>>> In our previous episode, Mar

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 3:50 PM, Tomas Hajny wrote: > On Mon, November 1, 2010 19:42, Marcos Douglas wrote: >> On Mon, Nov 1, 2010 at 3:36 PM, Tomas Hajny wrote: >>> On Mon, November 1, 2010 19:20, Marcos Douglas wrote: >>>> On Mon, Nov 1, 2010 at 3:10 PM, Marco van

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 3:36 PM, Tomas Hajny wrote: > On Mon, November 1, 2010 19:20, Marcos Douglas wrote: >> On Mon, Nov 1, 2010 at 3:10 PM, Marco van de Voort >> wrote: >>> In our previous episode, Marcos Douglas said: >>>> wrote: >>>> >>

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 3:31 PM, Tomas Hajny wrote: > On Mon, November 1, 2010 19:10, Marco van de Voort wrote: >> In our previous episode, Marcos Douglas said: >>> wrote: >>> >> Somebody can help me please? >>> >> I need to search strings in

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 3:10 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> wrote: >> >> Somebody can help me please? >> >> I need to search strings in Text files using just FPC. >> > >> > how about reading every

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 1:21 PM, Martin Schreiber wrote: > On Monday, 1. November 2010 13.34:45 Marcos Douglas wrote: >> On Mon, Nov 1, 2010 at 9:34 AM, Alberto Narduzzi >> >> wrote: >> >> Somebody can help me please? >> >> I need to search string

Re: [fpc-pascal] MSEide+MSEgui rev.2.4

2010-11-01 Thread Marcos Douglas
On Mon, Nov 1, 2010 at 11:14 AM, Graeme Geldenhuys wrote: > Op 2010-11-01 15:48, Marcos Douglas het geskryf: >> If you use the FPC from >> http://svn.freepascal.org/svn/fpc/branches/fixes_2_4 then the version >> is 2.4.3, right? > > Yes, and that works with MSEide too

Re: [fpc-pascal] MSEide+MSEgui rev.2.4

2010-11-01 Thread Marcos Douglas
2_4 then the version is 2.4.3, right? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
fast way :( I have many PDF files with several pages each. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Text scan in text files - (was: Full text scan - PDF files)

2010-11-01 Thread Marcos Douglas
On Sun, Oct 31, 2010 at 8:14 AM, Marcos Douglas wrote: >> I need to do a full text scan in PDF files i.e. convert PDF in plain >> text, parser and save the informations. >> I saw the XPDF[1] lib but I would like a lib coded in Pascal... if is >> possible. >> >&g

[fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-10-31 Thread Marcos Douglas
On Tue, Oct 26, 2010 at 11:54 AM, Marcos Douglas wrote: > WTF? > http://lists.freepascal.org/lists/fpc-pascal/2010-October/027067.html > > Well... again: > > I need to do a full text scan in PDF files i.e. convert PDF in plain > text, parser and save the informations. > I

[fpc-pascal] Re: Full text scan - PDF files

2010-10-26 Thread Marcos Douglas
recommends to do that? Thanks, Marcos Douglas [1] http://www.foolabs.com/xpdf/home.html ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Full text scan - PDF files

2010-10-26 Thread Marcos Douglas
I need to do a full text scan in PDF files i.e. convert PDF in plain text, parser and save the informations. I saw the XPDF[1] lib but I would like a lib coded in Pascal... if is possible. What do you recommends to do that? Thanks, Marcos Douglas [1] http://www.foolabs.com/xpdf/home.html

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Marcos Douglas
On Sun, Aug 15, 2010 at 11:36 AM, Graeme Geldenhuys wrote: > > [snip] > > RTF Report - what our company uses. Available in fpGUI or tiOPF repositories > Both repositories has the same code? Both are updated? Thanks, Marcos Douglas ___

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Marcos Douglas
On Sun, Aug 15, 2010 at 11:36 AM, Graeme Geldenhuys wrote: > On 15/08/2010, Marcos Douglas wrote: >> >> Zeoslib uses ADO too. So, it could be used with MS SQLServer. >>  I think Zeoslib is more faster than ODBC. > > Yes, but I was thinking in terms of cross-platform. A

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Marcos Douglas
On Sun, Aug 15, 2010 at 10:10 AM, Andreas Schneider wrote: > > On Sun, 15 Aug 2010 09:59:10 -0300, Marcos Douglas wrote: >> Zeoslib uses ADO too. So, it could be used with MS SQLServer. >> I think Zeoslib is more faster than ODBC. > > That depends on the platforms you w

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Marcos Douglas
On Sun, Aug 15, 2010 at 3:36 AM, Graeme Geldenhuys wrote: > On 14 August 2010 19:04, Marcos Douglas wrote: >> 1- What the connector you use to Postgre and SQLServer, Zeoslib? > > For PostgreSQL you can use Zeoslib or SqlDB (included in FCL and part > of FPC). For MS SQLServer t

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Marcos Douglas
On Sat, Aug 14, 2010 at 3:48 PM, Juha Manninen (gmail) wrote: > On Saturday 14 August 2010 20:04:33 Marcos Douglas wrote: >> 3- Do exists something I can do with Delphi but not do with FPC? >> Especialy on Windows. > ... >> 7- Is there any other factors we should con

[fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-14 Thread Marcos Douglas
provides to DataSets in memory like TClientDataSet in Delphi? 6.1- And about multi-tier applications, what they provides? 7- Is there any other factors we should consider before making this migration, which was not written above? Thank you. Best regards, Marcos Douglas

Re: [fpc-pascal] Ideas for namespace implementation

2010-08-05 Thread Marcos Douglas
On Thu, Aug 5, 2010 at 5:57 PM, Marcos Douglas wrote: > On Thu, Aug 5, 2010 at 5:52 PM, Joël Thieffry wrote: >>  Le 05/08/2010 21:56, Marcos Douglas a écrit : >>> On Tue, Jul 27, 2010 at 11:27 AM, Marcos Douglas wrote: >>>> On Tue, Jul 27, 2010 at 11:10

Re: [fpc-pascal] Ideas for namespace implementation

2010-08-05 Thread Marcos Douglas
On Thu, Aug 5, 2010 at 5:52 PM, Joël Thieffry wrote: >  Le 05/08/2010 21:56, Marcos Douglas a écrit : >> On Tue, Jul 27, 2010 at 11:27 AM, Marcos Douglas wrote: >>> On Tue, Jul 27, 2010 at 11:10 AM, Martin wrote: >>>> [snip] >>>>> IMO, if ther

Re: [fpc-pascal] Ideas for namespace implementation

2010-08-05 Thread Marcos Douglas
On Tue, Jul 27, 2010 at 11:27 AM, Marcos Douglas wrote: > > On Tue, Jul 27, 2010 at 11:10 AM, Martin wrote: > > [snip] > >> IMO, if there is no further concept of child units (maybe similar to Ada) > >> there is no point in adding namespaces to FPC, it's no

Re: [fpc-pascal] Ideas for namespace implementation

2010-07-27 Thread Marcos Douglas
On Tue, Jul 27, 2010 at 11:10 AM, Martin wrote: > [snip] >> IMO, if there is no further concept of child units (maybe similar to Ada) >> there is no point in adding namespaces to FPC, it's not worth the trouble. >> After all, it's still a name and if somebody else already uses it, you still >> nee

Re: [fpc-pascal] Ideas for namespace implementation

2010-07-27 Thread Marcos Douglas
On Tue, Jul 27, 2010 at 10:28 AM, "Vinzent Höfler" wrote: > Marcos Douglas : > >> > But then, IME (most) name conflicts are a sure sign of inproper names. >> Take the >> > example of "constants.pas": What sort of constants shall I expect there? &

Re: [fpc-pascal] Ideas for namespace implementation

2010-07-27 Thread Marcos Douglas
On Tue, Jul 27, 2010 at 5:44 AM, "Vinzent Höfler" wrote: >> On 26 July 2010 19:26, Thierry Coq wrote: >> > >> > I see units as namespaces already existing: we use the unit names to >> > prefix >> > ambiguous function or variable names for example. >> >> Unit Names give very limited namespace supp

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-26 Thread Marcos Douglas
On Mon, Jul 26, 2010 at 11:47 AM, Martin wrote: > On 26/07/2010 15:36, Marcos Douglas wrote: >> [snip] >> >> {$NAMESPACE ON} >> unit strutils namespace my; >> >> With {$NAMESPACE ON} all units will have namespaces, unless FPC's units. >> >

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-26 Thread Marcos Douglas
On Mon, Jul 26, 2010 at 11:33 AM, Reimar Grabowski wrote: > On Mon, 26 Jul 2010 11:23:31 -0300 > Marcos Douglas wrote: > >> IMHO, is better to use the ':' like  myspace:sysutils > > Even better C++ style: > > uses >  myspace::sysutils; > > begin &

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-26 Thread Marcos Douglas
On Mon, Jul 26, 2010 at 11:20 AM, Sven Barth wrote: > > What about that the compiler enforces that you use the fully qualified name > if you used it in the uses? Not only if you used it in the uses clause, but if you COMPILED with namespace sintaxe (eg. by Graeme unit strutils namespace my), IMHO

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-26 Thread Marcos Douglas
On Mon, Jul 26, 2010 at 11:20 AM, Sven Barth wrote: > Hi! > > On 26.07.2010 16:06, Martin wrote: But worst of all uses sysutils; // the one from my project? >>> >>> No, because the RTL is not compiled with a namespace, so falls under the >>> "global" namespace with takes preference

Re: [fpc-pascal] How choose units names?

2010-07-22 Thread Marcos Douglas
On Thu, Jul 22, 2010 at 1:21 PM, Graeme Geldenhuys wrote: > On 22 July 2010 14:03, Marcos Douglas wrote: >> >> The Pascal programmers has dislike "_" character, maybe just for >> constants, I think. > > I have been told that by a few, but I really don'

Re: [fpc-pascal] How choose units names?

2010-07-22 Thread Marcos Douglas
On Wed, Jul 21, 2010 at 6:46 PM, Marc Weustink wrote: > Marcos Douglas wrote: >> >> How choose units names? >> >> How you have no conflict with names of the units? Do you use some >> prefix in your units as "uwebutils.pp", "mywebutils.pp", &g

Re: [fpc-pascal] How choose units names?

2010-07-21 Thread Marcos Douglas
On Wed, Jul 21, 2010 at 4:58 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> >> How you have no conflict with names of the units? Do you use some >> prefix in your units as "uwebutils.pp", "mywebutils.pp", >> "xy

[fpc-pascal] [OFF TOPIC] How choose units names?

2010-07-21 Thread Marcos Douglas
On Wed, Jul 21, 2010 at 4:55 PM, Marcos Douglas wrote: > How choose units names? > > I was thinking what are the best names to my units to not to conflict > with the units of the FPC, Lazarus, and others frameworks or libs. > e.g. fpc\2.5.1\packages\fcl-web\src\base\webutil.pp

[fpc-pascal] How choose units names?

2010-07-21 Thread Marcos Douglas
How choose units names? I was thinking what are the best names to my units to not to conflict with the units of the FPC, Lazarus, and others frameworks or libs. e.g. fpc\2.5.1\packages\fcl-web\src\base\webutil.pp There are a great chance this unit name exists in some libs or frameworks, on the we

Re: [fpc-pascal] fpweb tutorial

2010-07-16 Thread Marcos Douglas
On Fri, Jul 16, 2010 at 2:23 AM, Felipe Monteiro de Carvalho wrote: > I added a small introduction here: http://wiki.lazarus.freepascal.org/fcl-web > > Having said that, I think that fpWeb worked quite well for my very > simple web page and all kinds of web applications could be developed > with i

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Marcos Douglas
On Tue, Jul 13, 2010 at 11:47 AM, Felipe Monteiro de Carvalho wrote: > (...) > Something like powutils templates would be extremely handy ... all > that html mixed with pascal doesn't look very nice. Read fpc/packages/fcl-web/fptemplate.txt MD. ___ fp

Re: Re[4]: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 12:37 PM, José Mejuto wrote: > Hello FPC-Pascal, > > Wednesday, July 7, 2010, 4:49:03 PM, you wrote: > > MD> Exactly. > MD> I just wonder how you do in web apps that are not CGI. As I said > MD> earlier in an email here: > MD> http://lists.freepascal.org/lists/fpc-pascal/201

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 11:50 AM, Andrew Brunner wrote: >> Well... I think CGI gateway is a good way. If the real app (FCGI) have >> troubles, I can change the URL that the CGI (gateway) uses to call the >> real app and to point to another app (in other server, e.g.). What do >> you think about it?

Re: Re[2]: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 11:35 AM, José Mejuto wrote: > Hello FPC-Pascal, > > Wednesday, July 7, 2010, 3:48:13 PM, you wrote: > > AB> Martin, I didn't get to the end of your email because I find that > AB> first major part - part and parcel of why Delphi failed as a language. > AB>  It became unviab

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 10:44 AM, Andrew Brunner wrote: > > Grame, no more caveats.  If Unmount had memory that needed to be > released then the same methodology stands.  Disk1.Unmount was placed > there to prove a point.  That w/o handling Obj2.Free would never be > called in context (the outstand

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 10:28 AM, Martin wrote: > On 07/07/2010 14:14, Marcos Douglas wrote: >> >> Here we have a big problem if the program is a web app using FastCGI. >> In this case, what we do? >> > > Write as much info as you have to the servers log file =>

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 10:05 AM, Martin wrote: > On 07/07/2010 13:54, Martin wrote: >> >> On 07/07/2010 13:30, Andrew Brunner wrote: >>> >>> Ok.  I think I understand the discrepancy in our reasoning.  The issue >>> is when exceptions are raised during Obj.Free.  I think it would help > > >>

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 9:54 AM, Martin wrote: > > [...snip...] > > With an exception like this, the rule is: Do as little as you can. > Everything you do can make it worse. Call a function that relies on as > little data as possible, and tries to simple save all user-data to an > emergency file. T

Re: [fpc-pascal] methods of an object to create others objects

2010-07-07 Thread Marcos Douglas
On Wed, Jul 7, 2010 at 9:30 AM, Andrew Brunner wrote: > Ok.  I think I understand the discrepancy in our reasoning.  The issue > is when exceptions are raised during Obj.Free.  I think it would help > if you would assume that all exceptions raised in Obj.Free were > handled - since my assertion is

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
d do something (if the program does not have its own treatment for what occurred). Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Tue, Jul 6, 2010 at 4:09 PM, Reimar Grabowski wrote: > On Tue, 6 Jul 2010 14:54:29 -0300 > Marcos Douglas wrote: > >> Like obj1.CreateObj() ? =) > Sounds a little generic for my liking, but at least you can guess that > there is something more going on than just retur

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Tue, Jul 6, 2010 at 12:56 PM, Luiz Americo Pereira Camara wrote: > Marcos Douglas escreveu: >> >> Better: >> >> obj1 := nil; >> obj2 := nil; >> Try >>  obj1 := TMyObject.Create; >>  obj2 := TMyObject.Create; >> >>  obj1.DoSometh

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Tue, Jul 6, 2010 at 2:55 PM, Jonas Maebe wrote: > > On 06 Jul 2010, at 19:51, Marcos Douglas wrote: > >> Can an exception happen in Free method? > > It can happen in Destroy, which is called by Free. And do not have medicine for that, ri

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Tue, Jul 6, 2010 at 2:04 PM, Reimar Grabowski wrote: > On Tue, 6 Jul 2010 12:05:36 -0300 > Marcos Douglas wrote: > >> We talk about just *functions* or we talk about *methods* too? > It is meant for 'method functions', too. But I don't follow that ru

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
e raised an exception... Then >> you will not free Object2.  The "best" way is with nested exception >> handling.  Sorry :-) > > That's the problematic one I think. Can an exception happen in Free method?! :-O Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
ld see many instances of this occurring. Better: obj1 := nil; obj2 := nil; Try obj1 := TMyObject.Create; obj2 := TMyObject.Create; obj1.DoSomething1; obj2.DoSomething2; finally obj1.Free; obj2.Free; end; The objectcs are protected. But is boring...

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
ot of typing and indentation. > > In this particular case you don't need the finally at all. > If you catch the exception, code will execute normally after the except > block. You don't need the finally then. It depends what will do in "except/end" block... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
do not see the problem, since obj is explicitely free'ed... The problem is somebody (not me) forget (a stupid example) put the variable to receive the instance of object. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Mon, Jul 5, 2010 at 9:07 PM, Reimar Grabowski wrote: > On Mon, 5 Jul 2010 16:51:54 -0300 > Marcos Douglas wrote: > >> What do you mean "a function has effects is already bad"? >> A function/procedure always has effects, don't? > > IMHO he means that

Re: [fpc-pascal] methods of an object to create others objects

2010-07-06 Thread Marcos Douglas
On Mon, Jul 5, 2010 at 6:06 PM, Graeme Geldenhuys wrote: > On 5 July 2010 22:03, Marcos Douglas wrote: >> The ask is: >> If a function creates, inside, a object and there is no variable to >> receive this pointer, will happen a memory leak? > > Yes you will have a memor

Re: [fpc-pascal] methods of an object to create others objects

2010-07-05 Thread Marcos Douglas
OUT parameters to force the caller to receive the result. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] methods of an object to create others objects

2010-07-05 Thread Marcos Douglas
meObj* and call like this: myObj.createObj; // I _removed_ the *someObj* here!!! What will happen with the "result" variable? Is it released by the compiler? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] methods of an object to create others objects

2010-07-05 Thread Marcos Douglas
Hi Martin On Mon, Jul 5, 2010 at 4:33 PM, Martin wrote: > On 05/07/2010 19:48, Marcos Douglas wrote: >> >> We can to use methods of an object to create others objects, or this >> is a bad programming practice? >> eg: >> var >>   obj1, obj2: TmyObject; &

Re: [fpc-pascal] methods of an object to create others objects

2010-07-05 Thread Marcos Douglas
On Mon, Jul 5, 2010 at 4:07 PM, spir wrote: > On Mon, 5 Jul 2010 15:48:40 -0300 > Marcos Douglas wrote: > > Questions of style: just a personal opinion. > >> We can to use methods of an object to create others objects, or this >> is a bad programming practice? &g

[fpc-pascal] methods of an object to create others objects

2010-07-05 Thread Marcos Douglas
this: If not exists the variable obj2 in call obj1.createObj will happen a memory leak, right? Because there is not variable to release. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
On Tue, Jun 22, 2010 at 4:42 PM, Marco van de Voort wrote: > On Tue, Jun 22, 2010 at 04:36:49PM -0300, Marcos Douglas wrote: >> On Tue, Jun 22, 2010 at 4:19 PM, Jonas Maebe >> wrote: >> > >> > On 22 Jun 2010, at 21:17, Marcos Douglas wrote: >> > &g

Re: [fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
On Tue, Jun 22, 2010 at 4:19 PM, Jonas Maebe wrote: > > On 22 Jun 2010, at 21:17, Marcos Douglas wrote: > >> The only problem is have more than one fpc.cfg file, but for me that's OK. > > You still put the common part in a single file and then include it in the >

Re: [fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
On Tue, Jun 22, 2010 at 1:44 PM, Jonas Maebe wrote: > > On 22 Jun 2010, at 18:34, Marcos Douglas wrote: > >> I should configure FPC path different for each machines and use only >> one external HD with the sources. I would update FPC source on machine >> with the bet

Re: [fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
On Tue, Jun 22, 2010 at 12:57 PM, Jonas Maebe wrote: > > On 22 Jun 2010, at 17:45, Marcos Douglas wrote: > >> BTW, about PPC_CONFIG_PATH is recommend to use it? I saw about it in >> some blog (I don't remember the link) but I haven't seen in FPC docs. > &g

Re: [fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
On Tue, Jun 22, 2010 at 12:37 PM, Jonas Maebe wrote: > > On 22 Jun 2010, at 17:28, Marcos Douglas wrote: > >> I need use the sources of FPC/Lazarus in external HD. So, the FPC path >> is changed in differents computers. >> Is possible to use a macro to point to FPC pat

[fpc-pascal] From Lazarus-list: Exists a macro to FPC path to use at fpc.cfg file?

2010-06-22 Thread Marcos Douglas
variable to FPC path... Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Another FPC wiki engine created

2010-06-15 Thread Marcos Douglas
Engine) >     http://www.friends-of-fpc.org/wunder/ Very interesting! -- Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mozilla XPCOM

2010-06-09 Thread Marcos Douglas
On Tue, Jun 8, 2010 at 3:44 PM, Luiz Americo Pereira Camara wrote: > Marcos Douglas escreveu: >> Exactly. >> Therefore I always used 'const' only at 'strings' params. I thought it >> had changed, but not.  ;-) > > It can be useful for record paramet

Re: [fpc-pascal] Mozilla XPCOM

2010-06-08 Thread Marcos Douglas
On Tue, Jun 8, 2010 at 12:55 PM, Luiz Americo Pereira Camara wrote: > Marcos Douglas escreveu: >> >> Hi Luiz, >> >> On Mon, Jun 7, 2010 at 10:35 PM, Luiz Americo Pereira Camara >> wrote: >> >>> >>> Take a look at >>> >>>

Re: [fpc-pascal] Mozilla XPCOM

2010-06-08 Thread Marcos Douglas
Hi Luiz, On Mon, Jun 7, 2010 at 10:35 PM, Luiz Americo Pereira Camara wrote: > > Take a look at > http://lazarusroad.blogspot.com/2008/11/effect-of-using-constant-parameter-for.html > Then, this continue true how I said in other mail: On Mon, Jun 7, 2010 at 11:59 AM, Marcos Do

Re: Re[10]: [fpc-pascal] Mozilla XPCOM

2010-06-07 Thread Marcos Douglas
On Mon, Jun 7, 2010 at 12:11 PM, Jonas Maebe wrote: > > On 07 Jun 2010, at 16:59, Marcos Douglas wrote: > >> Well... just to I will know. A long time ago (Delphi 4) I learned: >> Always use 'const' for 'strings' because this is faster. Strings will >&g

Re: Re[10]: [fpc-pascal] Mozilla XPCOM

2010-06-07 Thread Marcos Douglas
On Mon, Jun 7, 2010 at 11:34 AM, Jonas Maebe wrote: > > On 07 Jun 2010, at 16:30, Marcos Douglas wrote: > >> 2010/6/7 Jonas Maebe : >>> >>> a) in Pascal, the behaviour of const is completely undefined (the >>> compiler >>> can do whatever it

Re: Re[10]: [fpc-pascal] Mozilla XPCOM

2010-06-07 Thread Marcos Douglas
behaviour of const is completely undefined (the compiler > can do whatever it wants) The compiler can do whatever is wants?! Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
On Tue, May 25, 2010 at 2:45 PM, Lee Jenkins wrote: > > Not the server computer, but the FCGI application, yes. > On Tue, May 25, 2010 at 3:09 PM, Michael Van Canneyt wrote: > > No, just the fastcgi app. > And what the "correct" way for do that? Kill the process?

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
ry. So, if I need update the app I having shutdown the server, right? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
On Tue, May 25, 2010 at 2:06 PM, Bee Jay wrote: > > On 25 Mei 2010, at 23:37, Marcos Douglas wrote: > >> My only doubt is: why to use CGI proxy, not a FCGI? > > The main purpose of CGI proxy existence is to provide solution for some > environments where FCGI setup i

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
putting logic into the proxy to any significant degree then I > think that is more or less n-tier development as usual. Okay, but using only one fcgi app, we will always have to shutdown the server? Marcos Douglas ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
pps. If you want disable one, you can, just redirect for other app. My only doubt is: why to use CGI proxy, not a FCGI? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
the whole system. It is a very serious > issue. > Hi Bee, Good explanation, thanks. Well... I know about everything about you said... but about OS release all the memory allocated for the app, I had forgotten :) Marcos Douglas ___ fpc-pascal ma

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
n using this technique since about two years ago! I told you > about this more than once, but you never listen to me. ;) :D > What do you think about to use 2 FCGI apps? The first is the proxy and the second is the real app. Do not is more fast than CGI gateway + FCGI? Marcos Douglas _

Re: Re[2]: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Marcos Douglas
am is free of memory leaks at close time it is quite > sure you will not get any runtime memory black hole. Okay José, thanks! Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
*very* important? I need back to university... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
lked serious! For me, all pointers that were not released, even at the end of app, remain in memory. That in any apps e.g. console, gui, cgi, whatever. Today Felipe Monteiro said "No, it doesn't continue in memory" and I was confused about it. I code for over 10 years. Fo

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
... I want know what Bee think about that answer. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
On Mon, May 24, 2010 at 3:55 PM, Lee Jenkins wrote: > > LOL.  Well, you should always manage your resources regardless, though I > think you question was tongue in cheek. > > I was talking more about the model of how it works. Sorry... what do you mean "model of how it work

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
ay approach is used in some > cases. > > If you have full control of the server, the CGI proxy isn't required. @Bee Jay, Do you agree with him? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
On Mon, May 24, 2010 at 3:30 PM, Leonardo M. Ramé wrote: > > Marcos, nobody is saying that you don't have to destroy instances when > programming CGI apps. > Okay, but if there is not memory leaks... I ever free my objects! But I did not know about no memory leaks in CGI pro

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
n. Do you agree? And about the cache... well, is possible use it even in CGI apps (but is slower, of course). I did not understand why to use CGI and FCGI. Why the FCGI apps can not receive the requests? Would be faster, don't? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
s1, s2, s3: TStrings; begin s1 := TStringList.Create; s2 := TStringList.Create; s3 := TStringList.Create; end; ...and at the end, no memory leaks? This is true about Desktop (Win/Linux) apps too? Marcos Douglas ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
ory, so it is more fast for requests, while CGI app would be more specialized. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
On Mon, May 24, 2010 at 12:42 PM, Felipe Monteiro de Carvalho wrote: > On Mon, May 24, 2010 at 5:26 PM, Marcos Douglas wrote: >> Don't worry about memory leaks?! But if a do not freed an object e.g. >> this is continues in memory, even after app ends. > > No, it doesn

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
memory leaks?! But if a do not freed an object e.g. this is continues in memory, even after app ends. About FreeSpider: There are just one owner for this project, right? This project is more stable than fpWeb, Powtils, Synapse, etc? Marcos Douglas ___ f

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Marcos Douglas
will > be cached in the server, and that's not an issue for my app, but it looks > like too big for a simple CGI program. Anyway, I'll use it for this project. Do someone uses FreeSpider? I don't know if it is a real framework for production. Marcos Douglas __

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-05 Thread Marcos Douglas
same classes and methods of ExtJS. So, if we adapt ExtPascal for other JS frameworks, the code would be very different... in other words, the framework Pascal do not be homogeneous for many JS frameworks. Marcos Douglas ___ fpc-pascal maillist -

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-04 Thread Marcos Douglas
tiOPF is dead. Sorry my bad english :( but you get: "is it alive?" Thanks for the information about tiOPF! Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

<    2   3   4   5   6   7   8   >