Re: [fpc-pascal] FPC fpGUI runs happily under OpenSolaris 2010.03

2011-07-29 Thread Marcos Douglas
 - Windows  - Windows CE.  - Mac OSX 10.6.x (via the built-in X11 support) Good job! Kudos to the Free Pascal Compiler team for doing a great job once again. FPC rocks! +1 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-07-29 Thread Marcos Douglas
/compiler/2.5.1' make: *** [build-stamp.i386-win32] Error 2 W:\md\dev\freepascal\compiler\2.5.1 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-07-29 Thread Marcos Douglas
On Fri, Jul 29, 2011 at 4:31 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas said: I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3. Before update, I ran 'make distclean'. Compiling src\base\custfcgi.pp PPU Loading W

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-07-29 Thread Marcos Douglas
On Fri, Jul 29, 2011 at 5:18 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas said: 1) manually delete the .ppu's in packages that have this problem ( I ran del /s *.ppu ?and *.o in packages/) 2) delete all old fpmake.exe ?(del /s fpmake.exe

Re: [fpc-pascal] Unicode output on console works for me on Linux, not on Windows

2011-08-01 Thread Marcos Douglas
: ' + OurWideString)); writeln (ANSIToUTF8('ansitoutf8: ' + OurWideString)); end. In console programs, try UTF8ToConsole() function (unit FileUtil). A string created outside of your code, use SysToUTF8() to convert in a UTF8 and after UTF8ToConsole() to print on the console. Marcos Douglas

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marcos Douglas
On Mon, Aug 1, 2011 at 11:21 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is to cut it in

Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Marcos Douglas
. But the other two options are probably easier to program. It's call _CGI gateway_ and I think this is a good option because you can redirect the CGI to another app/server/information when you stop the app service on the server. Marcos Douglas ___ fpc-pascal

[fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-22 Thread Marcos Douglas
these binaries only will run on this platform. I want to have each file/exe/ppu/etc for each platform. Marcos Douglas attachment: installed.JPG___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-22 Thread Marcos Douglas
On Mon, Aug 22, 2011 at 5:59 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 22 Aug 2011, at 22:51, Marcos Douglas wrote: In my opinion, everything that was created should have a prefix folder specifying your TARGET. If I compile the FPC to x64 plataform all these binaries only will run

Re: [fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-23 Thread Marcos Douglas
On Mon, Aug 22, 2011 at 6:24 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 22 Aug 2011, at 23:08, Marcos Douglas wrote: So, I understood right, is not supported. I not need these utilities and I do not know if they all are important or who uses them, etc. Some of them are used

Re: [fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-23 Thread Marcos Douglas
These settings seem very confusing, and definitely hard to find in any documentation. I just searched all my PDF docs for FPC, and couldn't find a single reference to 'crossinstall' anywhere. :-( x2 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] make install

2011-08-23 Thread Marcos Douglas
Hi, For developers that use FPC sources from SVN, like me, I ask: 1. There are some advantage to use 'make install' to compile FPC? Which? 2. There are some advantage to install (make install) in a directory different of the sources? Which? Thanks, Marcos Douglas

Re: [fpc-pascal] make install

2011-08-24 Thread Marcos Douglas
2011/8/24 Tomas Hajny xhaj...@hajny.biz: On Tue, August 23, 2011 15:47, Marcos Douglas wrote: Hi, For developers that use FPC sources from SVN, like me, I ask: 1. There are some advantage to use 'make install' to compile FPC? Which? 2. There are some advantage to install (make install

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-08-25 Thread Marcos Douglas
On Fri, Jul 29, 2011 at 5:18 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas said: 1) manually delete the .ppu's in packages that have this problem ( I ran del /s *.ppu ?and *.o in packages/) 2) delete all old fpmake.exe ?(del /s fpmake.exe

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-08-25 Thread Marcos Douglas
(fixes_2_4) and 2.5.1 (fixes_2_6). So, my only problem is cross-compile 32-bit to 64-bit on WinXP. Well, I will try the same script using FPC 2.4.5... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-08-25 Thread Marcos Douglas
On Thu, Aug 25, 2011 at 5:04 PM, Marcos Douglas m...@delfire.net wrote: On Thu, Aug 25, 2011 at 4:58 PM, Florian Klämpfl flor...@freepascal.org wrote: fpmake is something different than fpcmake. The log below simply shows, that you have no properly installed FPC on your system. Your

Re: [fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-25 Thread Marcos Douglas
file a bugreport with buildfaq in the subject, and then it will be assigned to me. There you go: http://bugs.freepascal.org/view.php?id=20058 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-08-26 Thread Marcos Douglas
On Thu, Aug 25, 2011 at 4:58 PM, Florian Klämpfl flor...@freepascal.org wrote: Am 25.08.2011 21:56, schrieb Marcos Douglas: On Fri, Jul 29, 2011 at 5:18 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Marcos Douglas said: 1) manually delete the .ppu's in packages

Re: [fpc-pascal] Overloading the increment operator (+=)

2011-09-10 Thread Marcos Douglas
it in := operator. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-14 Thread Marcos Douglas
?id=15526 Do you think this is right? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Marcos Douglas
On Thu, Sep 15, 2011 at 6:27 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 14/09/2011 23:17, Marcos Douglas wrote: procedure Run; var   f: TFoo;  // type is class, not interface   o: TObj; begin   f := TFoo.Create; This is just wrong. Well, wrong just because the language

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Marcos Douglas
On Thu, Sep 15, 2011 at 9:18 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 14 Sep 2011, at 23:17, Marcos Douglas wrote: BUT, if I create my TFoo without refcount should works, right? Only in some circumstances. These circumstances depend on when the compiler allocates temporary

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Marcos Douglas
On Thu, Sep 15, 2011 at 12:12 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Thu, Sep 15, 2011 at 4:54 PM, Marcos Douglas m...@delfire.net wrote:   f := TFoo.Create; This is just wrong. Well, wrong just because the language is so but not because is ilogical

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Marcos Douglas
On Thu, Sep 15, 2011 at 12:12 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: I don't understand why it would be wrong. For me it seams correct and similar to this example: http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code I'd like to use the

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-15 Thread Marcos Douglas
On Thu, Sep 15, 2011 at 4:45 PM, Marcos Douglas m...@delfire.net wrote: Yeah, you're right... I didn't see this link.  =) But see it one more time: the R instance of TRealClass is not released... saw? I didn't test but I think if R was released will occur an AV. As I said, if we use R.Free

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
On Fri, Sep 16, 2011 at 4:02 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 15/09/2011 17:12, Felipe Monteiro de Carvalho wrote: http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code Should that example not mention that it will not work with any released FPC

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
affirmation before my other mail). Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
a nonsense? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Error crosscompile on WinXP: FPC /branches/fixes_2_6 rev 19336

2011-10-03 Thread Marcos Douglas
] Error 2 W:\md\dev\freepascal\compiler\2.4.5 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-10-03 Thread Marcos Douglas
On Thu, Aug 25, 2011 at 5:32 PM, Florian Klämpfl flor...@freepascal.org wrote: Am 25.08.2011 22:07, schrieb Marcos Douglas:   -Fisrc -Fusrc src/gdbint.pp gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea der size gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS

[fpc-pascal] Error crosscompile on WinXP: FPC /branches/fixes_2_4 rev 19336

2011-10-03 Thread Marcos Douglas
On Mon, Oct 3, 2011 at 1:10 PM, Marcos Douglas m...@delfire.net wrote: Hi, On WinXP I can compile FPC /branches/fixes_2_6 rev 19336 to i386 but not to x86_64 I think the argument -dGDB_V606 should be changed... but is this a new option or a bug? See the error: [...] W:/md/dev/freepascal

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-10-03 Thread Marcos Douglas
On Mon, Oct 3, 2011 at 3:01 PM, Marcos Douglas m...@delfire.net wrote: On Thu, Aug 25, 2011 at 5:32 PM, Florian Klämpfl flor...@freepascal.org wrote: Am 25.08.2011 22:07, schrieb Marcos Douglas:   -Fisrc -Fusrc src/gdbint.pp gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll

[fpc-pascal] Re: Error crosscompile on WinXP: FPC /branches/fixes_2_4 rev 19336

2011-10-04 Thread Marcos Douglas
On Mon, Oct 3, 2011 at 3:43 PM, Marcos Douglas m...@delfire.net wrote: On Mon, Oct 3, 2011 at 1:10 PM, Marcos Douglas m...@delfire.net wrote: Hi, On WinXP I can compile FPC /branches/fixes_2_6 rev 19336 to i386 but not to x86_64 I think the argument -dGDB_V606 should be changed

[fpc-pascal] Re: Error crosscompile on WinXP: FPC /branches/fixes_2_4 rev 19336

2011-10-04 Thread Marcos Douglas
On Tue, Oct 4, 2011 at 4:58 PM, Marcos Douglas m...@delfire.net wrote: On Mon, Oct 3, 2011 at 3:43 PM, Marcos Douglas m...@delfire.net wrote: On Mon, Oct 3, 2011 at 1:10 PM, Marcos Douglas m...@delfire.net wrote: Hi, On WinXP I can compile FPC /branches/fixes_2_6 rev 19336 to i386

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marcos Douglas
. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marcos Douglas
, for example. If you use @@IDENTITY then you get the last ID inserted, ie, if you have triggers you do not know which ID belongs which table. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marcos Douglas
: - Stored Procedures (SP): one for each table; - Dynamic SP: pass the generic SQL to the SP and return the scope_identity(); - GUID: Use a column to save a GUID. The real ID can be autoincrement but you do not need it. You can found the register using the GUID. Marcos Douglas

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marcos Douglas
On Sat, Oct 22, 2011 at 1:53 PM, Martin Schreiber mse00...@gmail.com wrote: On Saturday 22 October 2011 17.23:38 Marcos Douglas wrote: On Sat, Oct 22, 2011 at 11:21 AM,  michael.vancann...@wisa.be wrote:  DBComm.SQLTransaction.StartTransaction; -- Fails here with transaction already active

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread Marcos Douglas
advice. GUID are bad primary keys, because of their size and the fact they are not sequential by design. GUID isn't the key, but a way to know how get the register before insert it. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: RE : [fpc-pascal] Re: How to insert a record and get the primary keywith sqldb?

2011-10-24 Thread Marcos Douglas
GUID's on client-side, you simply don't have that problem at all. That was I said, but I think that nobody read. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Marcos Douglas
/2.7.1' make: *** [build-stamp.i386-win32] Error 2 - Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Marcos Douglas
On Wed, Oct 26, 2011 at 9:13 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 26 Oct 2011, at 13:47, Marcos Douglas wrote: I got this error when I tried to compile FPC 2.7.1 rev 19546. - W:/md

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Marcos Douglas
On Wed, Oct 26, 2011 at 9:19 AM, Henry Vermaak henry.verm...@gmail.com wrote: On 26/10/11 13:13, Jonas Maebe wrote: On 26 Oct 2011, at 13:47, Marcos Douglas wrote: I got this error when I tried to compile FPC 2.7.1 rev 19546

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Marcos Douglas
On Wed, Oct 26, 2011 at 9:58 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 26 Oct 2011, at 14:44, Marcos Douglas wrote: Hm... thinking better you're right. You're the man, the real developer, so... is boring answer these mails, I know, but I really want to help the community! I'm

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-09 Thread Marcos Douglas
already talked about search text before, including JODA, but nobody had a complete solution... so, now I'm using a commercial lib do to this, but would be pretty awesome have this on Pascal code! Marcos Douglas ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Marcos Douglas
On Mon, Nov 21, 2011 at 9:32 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? I think he uses ExtJS library. Marcos Douglas

[fpc-pascal] FTP...2.4.4/bootstrap... is missing.

2011-11-25 Thread Marcos Douglas
.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] SQLdb :: Commit, Rollback, etc.

2011-11-30 Thread Marcos Douglas
Hi, Why TSQLTransaction.Commit calls CloseDataSets? Always that I call StartTransaction and Commit/Rollback and I have to reopen my DataSets?! Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: RE : RE : [fpc-pascal] SQLdb :: Commit, Rollback, etc.

2011-12-01 Thread Marcos Douglas
as close as possible. Ok, I can live with the way that works SQLdb, no problem! ;-) I only want to learn to make my apps using Lazarus and SQLdb and the new Connector TMSSQLConnection (BTW, good work). Marcos Douglas ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Marcos Douglas
'; begin  X;  Y; end. What is this syntax using public name? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Marcos Douglas
2011/12/18 Tomas Hajny xhaj...@hajny.biz On 18 Dec 11, at 10:31, Marcos Douglas wrote: On Sun, Dec 18, 2011 at 9:37 AM, Tomas Hajny xhaj...@hajny.biz wrote: On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-19 Thread Marcos Douglas
your testing code. I didn't know this project. I'll try. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Testing applications with FPCUnit

2011-12-19 Thread Marcos Douglas
for this. [ You know programmers, we hate to document things. ;-) ] Oh yeah... =) Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] using exceptions

2011-12-19 Thread Marcos Douglas
is in user level, the app do not aborts. But if the Exception is in Lib level and the programmer did not catch, the app is aborted. I'm talkin bout Desktop apps. For Web applications the approach would be different. Marcos Douglas ___ fpc-pascal maillist

Re: [fpc-pascal] using exceptions

2011-12-22 Thread Marcos Douglas
On Thu, Dec 22, 2011 at 4:17 PM, Anton Shepelev anton@gmail.com wrote: Marcos Douglas: It's  not  difficult,  but is boring have always a parameter or function return to return  an  error, and  have  to  verify  if error then... if not er- ror...  if error and error then... etc If you

[fpc-pascal] operator in

2011-12-27 Thread Marcos Douglas
Why operator 'in' has a limit? procedure TForm1.Button1Click(Sender: TObject); var t,r1,r2: Integer; begin t := 359; r1 := 252; r2 := 253; if r2 in [r1..t-1] then // 252..359 so, 253 is include ShowMessage('Found') else ShowMessage('Not found'); // not found end; Marcos

Re: [fpc-pascal] FPC JVM checkout problem

2012-01-03 Thread Marcos Douglas
. I'm using latest TortoiseSVN by the way, which is compiled for SVN 1.7. This occurs for me too. I just repeat the procedure to it work again. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] using exceptions

2012-01-03 Thread Marcos Douglas
On Tue, Jan 3, 2012 at 7:20 PM, Lars nore...@z505.com wrote: Marcos Douglas wrote: On Thu, Dec 22, 2011 at 4:17 PM, Anton Shepelev anton@gmail.com wrote: Marcos Douglas: It's  not  difficult,  but is boring have always a parameter or function return to return  an  error, and  have

Re: [fpc-pascal] Re: using exceptions

2012-01-04 Thread Marcos Douglas
On Wed, Jan 4, 2012 at 8:35 AM, Lukasz Sokol el.es...@gmail.com wrote: On 04/01/2012 00:31, Marcos Douglas wrote: [...] Another interesting article is: http://www.joelonsoftware.com/items/2003/10/13.html Very interesting and I agree when he say: I think the reason programmers in C/C

Re: [fpc-pascal] Re: using exceptions

2012-01-04 Thread Marcos Douglas
On Wed, Jan 4, 2012 at 9:18 AM, Lukasz Sokol el.es...@gmail.com wrote: On 04/01/2012 11:50, Marcos Douglas wrote: Ok, I expressed myself poorly. When I said: If we could return more than one value, ok we (maybe) do not need Exceptions. I mean: If we could return more than one value, using

Re: [fpc-pascal] Re: using exceptions

2012-01-04 Thread Marcos Douglas
On Wed, Jan 4, 2012 at 9:56 AM, Lukasz Sokol el.es...@gmail.com wrote: On 04/01/2012 12:47, Marcos Douglas wrote: [i see I hit on the obvious so: cut] I agree with you! But I was discussing the possibility do not using Exceptions. ;-) Another point is when and where uses Exceptions

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-14 Thread Marcos Douglas
of object type. So they improved to class type! =) Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Marcos Douglas
anyway)? 3. Is there some option I can pass to make to let it find the right binutils? 4. Something else I haven't thought about? Please, see this: http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 Marcos Douglas

Re: [fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Marcos Douglas
On Thu, Feb 2, 2012 at 10:13 AM, Reinier Olislagers reinierolislag...@gmail.com wrote: On 2-2-2012 14:08, Marcos Douglas wrote: On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: When I add c:\development\binutils to the path

[fpc-pascal] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-02-17 Thread Marcos Douglas
/index.php/topic,15135.msg80922.html#msg80922 I'm already using this connector in production without problems. To FPC core team: Could you take a look in that component and think about included this code in SVN to new developers use too, please? Thanks, Marcos Douglas

Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-28 Thread Marcos Douglas
with this obsession with objects. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Variant vs Pointer

2012-02-29 Thread Marcos Douglas
question is: What would be the difference in performance if FValueBuffer were a Variant type? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Duplicate Identifier

2012-03-01 Thread Marcos Douglas
should have preference because the scope is local, not global for class. Would be equal the use of arguments, IMHO, where we can use an identifier that already exists in the class. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: Duplicate Identifier

2012-03-02 Thread Marcos Douglas
On Thu, Mar 1, 2012 at 5:49 PM, Sven Barth pascaldra...@googlemail.com wrote: On 01.03.2012 21:42, Marcos Douglas wrote: On Thu, Mar 1, 2012 at 5:14 PM, Sven Barthpascaldra...@googlemail.com  wrote: On 01.03.2012 16:34, Marcos Douglas wrote: On Thu, Mar 1, 2012 at 4:29 AM

Re: [fpc-pascal] Re: Duplicate Identifier

2012-03-02 Thread Marcos Douglas
in arguments, e.g., AValue (I prefer aValue). We do not have case-sensitive so, everything should have a prefix or something to distinguish an indentifier of other (types, classes, interfaces, units, etc); I'm just following the pattern of language. ;-) Marcos Douglas

[fpc-pascal] Re: Variant vs Pointer

2012-03-02 Thread Marcos Douglas
On Wed, Feb 29, 2012 at 10:38 PM, Marcos Douglas m...@delfire.net wrote: Hi, The TField class have the FValueBuffer: Pointer attribute and have also SetData(Buffer: Pointer,...) method that all T***Field subclasses use to set themselves. The methods AsInteger, AsString, etc use FValueBuffer

Re: [fpc-pascal] Re: Duplicate Identifier

2012-03-02 Thread Marcos Douglas
On Fri, Mar 2, 2012 at 10:39 AM, Sven Barth pascaldra...@googlemail.com wrote: Am 02.03.2012 13:23, schrieb Marcos Douglas: On Thu, Mar 1, 2012 at 5:49 PM, Sven Barthpascaldra...@googlemail.com  wrote: On 01.03.2012 21:42, Marcos Douglas wrote: On Thu, Mar 1, 2012 at 5:14 PM, Sven

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-02 Thread Marcos Douglas
On Fri, Mar 2, 2012 at 1:02 PM, michael.vancann...@wisa.be wrote: On Fri, 2 Mar 2012, Marcos Douglas wrote: On Wed, Feb 29, 2012 at 10:38 PM, Marcos Douglas m...@delfire.net wrote: Hi, The TField class have the FValueBuffer: Pointer attribute and have also SetData(Buffer: Pointer

Re: [fpc-pascal] Re: Duplicate Identifier

2012-03-02 Thread Marcos Douglas
=== If I comment out TTest1 then the program compiles successfully. Regards, Sven OK. Well, the safe way is using a prefix/suffix in everything. Thanks for the example. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
on demand and the data is saved into a Variant, like TParam. If I do not use a Variant, I need to create one class to each type that I will use, right? If Variant is so bad, why TParam is implemented using it? Marcos Douglas ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
Cheers, A. Well, if I won't generalize I need to create one class for each type, like TField does, but saving the data in a especific type variable. I would like to avoid it but... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
data format, don't? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 12:57 PM, silvioprog silviop...@gmail.com wrote: 2012/3/3 Luiz Americo Pereira Camara luiz...@oi.com.br: On 3/3/2012 10:08, Marcos Douglas wrote: Think in my class like a Business Object. The struct is very similar with TParams it has many TParam. The data, in a TParam

Re: RE : RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
the JSON implementation in fpjson unit. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-07 Thread Marcos Douglas
and rounding problems. Integer math... what did you mean? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-08 Thread Marcos Douglas
On Thu, Mar 8, 2012 at 4:41 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 8 March 2012 03:28, Marcos Douglas wrote: Integer math... what did you mean? Over the years we have experience many problems with currency, floating point and date/time calculations and storage. So we tweaked

[fpc-pascal] Burn a CD

2012-03-13 Thread Marcos Douglas
Hi, Anyone knows how burn a CD using the Windows API (should works in XP and Vista)? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Burn a CD

2012-03-14 Thread Marcos Douglas
On Wed, Mar 14, 2012 at 4:26 AM, stootch stoo...@tlen.pl wrote: W dniu 13.03.2012 14:13, Marcos Douglas pisze: Hi, Anyone knows how burn a CD using the Windows API (should works in XP and Vista)? Take a look at: http://blog.delphi-jedi.net/2009/07/18/im-burning-baby/ Porting to FPC

Re: [fpc-pascal] Burn a CD

2012-03-14 Thread Marcos Douglas
/thomas.plank/ We run it using TProcess, then parse the results and show them on screen. Interesting. Could you give an example how do you use it, please? You do not translated the headers, just use the binaries, rigth? Marcos Douglas ___ fpc-pascal maillist

Re: [fpc-pascal] Burn a CD

2012-03-15 Thread Marcos Douglas
On Thu, Mar 15, 2012 at 7:57 AM, Leonardo M. Ramé martinr...@yahoo.com wrote: - Original Message - From: Marcos Douglas m...@delfire.net To: Leonardo M. Ramé martinr...@yahoo.com; FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Cc: Sent: Wednesday, March 14, 2012

[fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
) Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 9:34 AM, Martin laza...@mfriebe.de wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in AConnection.Free

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
Tem umas opções com o novo GDB 6.5 que parece ser a melhor opção. Vou recompilar o FPC e Lazarus utilizando: -gl -gw -godwarfsets Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 11:36 AM, Martin laza...@mfriebe.de wrote: On 20/03/2012 14:08, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 9:34 AM, Martinlaza...@mfriebe.de  wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 12:24 PM, Martin laza...@mfriebe.de wrote: On 20/03/2012 14:52, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 11:36 AM, Martinlaza...@mfriebe.de  wrote: On 20/03/2012 14:08, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 9:34 AM, Martinlaza...@mfriebe.de    wrote

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 12:35 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 20 Mar 2012, at 14:06, Marcos Douglas wrote: I compile FPC using these options: UPXPROG=echo COPYTREE=echo OPT=-gl You should use OPT=-O- -gl if you want to debug standard FPC units. The default for building

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 1:44 PM, Martin laza...@mfriebe.de wrote: On 20/03/2012 14:52, Marcos Douglas wrote: ERROR ,msg=Warning:\nCannot insert breakpoint -237.\nError accessing memory address 0x7816cd30: Input/output error.\n I use gdb 7.3 (http://svn.freepascal.org/svn/lazarus/binaries

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 6:27 PM, Martin laza...@mfriebe.de wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in AConnection.Free

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 10:32 AM, Martin laza...@mfriebe.de wrote: On 21/03/2012 12:49, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 6:27 PM, Martinlaza...@mfriebe.de  wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 11:28 AM, Martin laza...@mfriebe.de wrote: On 21/03/2012 13:48, Marcos Douglas wrote: Which GDB SVN do you think is the best choice? Not really sure. I have versions from 6.3 to 7.4. (for win 32). There is a testcase in the debugger/test/GDBMI directory Most

[fpc-pascal] ImageMagick: watermark

2012-03-23 Thread Marcos Douglas
translate it to use the sources? convert myimg.jpg -font Arial -pointsize 20 -draw \ gravity SouthWest fill black text 2,14 \ 'Copyright' fill white text 3,13 'Copyright' wmark_text_drawn.jpg Marcos Douglas ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Burn a CD

2012-03-23 Thread Marcos Douglas
On Thu, Mar 15, 2012 at 7:57 AM, Leonardo M. Ramé martinr...@yahoo.com wrote: - Original Message - From: Marcos Douglas m...@delfire.net To: Leonardo M. Ramé martinr...@yahoo.com; FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Cc: Sent: Wednesday, March 14, 2012 12:05

Re: RE : [fpc-pascal] Burn a CD

2012-03-24 Thread Marcos Douglas
in %. I will see, thanks. To read the Output, I think is better to use this tutorial: http://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading_large_output Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-28 Thread Marcos Douglas
- Create a Environment Variable (eg: FOO). 2- Try this: procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(SysUtils.GetEnvironmentVariable('FOO')); end; Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-28 Thread Marcos Douglas
On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others

  1   2   3   4   5   6   7   >