[fpc-pascal] Self pointer existence

2011-04-18 Thread Wimpie Nortje
Hi When does the self pointer's value become valid? I need a reference to the object being created inside the object's own create method. The last statement in Create uses self, but that causes program crashes. Is this too early to use self? Is there another way?

Re: [fpc-pascal] Self pointer existence

2011-04-18 Thread Mattias Gaertner
On Mon, 18 Apr 2011 09:54:28 +0200 Wimpie Nortje wimpienor...@gmail.com wrote: Hi When does the self pointer's value become valid? In NewInstance, so before the constructor is called. I need a reference to the object being created inside the object's own create method. The last

[fpc-pascal] New to freepascal and how to translate my delphi program.

2011-04-18 Thread P. vanderWal
I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum program Doit). The program is written in delphi-7 ( about 25.000 lines in 20 modules) and runs on MS-Xp. But as MS changes to much in its os's

Re: [fpc-pascal] New to freepascal and how to translate my delphi program.

2011-04-18 Thread Jeppe Johansen
I think the synaser unit(from Synapse) is a very solid unit for crossplatform serial port access Den 18-04-2011 10:21, P. vanderWal skrev: I am new to free pascal, but have some experience with delphi. I wrote a program to control a milling machine (Elektor Profiler, see elektor.nl/ forum

Re: [fpc-pascal] New to freepascal and how to translate my delphi program.

2011-04-18 Thread Felipe Monteiro de Carvalho
Hello, I have already written such a program and I used the Pascal unit provided by FTTI, because I was using FTTI's USB component: http://wiki.lazarus.freepascal.org/Hardware_Access#FTDI For serial I would probably use Synaser:

[fpc-pascal] DIFF Pascal component

2011-04-18 Thread Felipe Monteiro de Carvalho
Hello, I was wondering if anyone knows a good Pascal component for generating a diff in the standard format. Googling I found TDiff here: http://angusj.com/delphi/ Maybe there is something else as well? thanks, -- Felipe Monteiro de Carvalho ___

[fpc-pascal] Assembling (pipe) /Users/{standard input}:2540:suffix or operands invalid for `cmovns'

2011-04-18 Thread Ludo Brands
Hi, You should provide a compilable example that demonstrates the problem, so the problem can be fixed. I have no idea about a specific revision that might have introduced this problem. building LCL with OPT=-Cr causes the problem in anchoreditor.pas (Assembling (pipe) /Users/{standard

[fpc-pascal] Re; New to freepascal and how to translate my delphi program

2011-04-18 Thread piet
Felipe and Jeppe, Thanks for the quick response. It was just the things I was looking for. Piet ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Self pointer existence

2011-04-18 Thread Wimpie Nortje
Thanks There is probably a bug in your code, but without seeing the code there is no way to tell. It was something to do with converting strings to pchar before passing to a C library. Looks like it is fixed now ___ fpc-pascal maillist -

Re: [fpc-pascal] New to freepascal and how to translate my delphi program.

2011-04-18 Thread Felipe Monteiro de Carvalho
On Mon, Apr 18, 2011 at 2:45 PM, Marcos Douglas m...@delfire.net wrote: Like read the text of PDF files? No, vectorial drawings. PDF can hold raster images, vectorial drawings and/or rich text. In CorelDraw in the dialog to export to PDF there is an option Convert text to vectors, that's what

RE : [fpc-pascal] Assembling (pipe) /Users/{standard input}:2540:suffixor operands invalid for `cmovns'

2011-04-18 Thread Ludo Brands
The as assembler version: Apple Inc version cctools-698.1~1, GNU assembler version 1.38 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: stripping HTML

2011-04-18 Thread Roland Schäfer
On 4/17/2011 5:13 PM, Ralf Junker wrote: I am the author of DIHtmlParser. I do not know if DIHtmlParser compiles and works in FPC linux-x86-64 because I do not have that environment available for testing. Unfortunately, low demand for that platform does not justify setting it up and

Re: [fpc-pascal] Font reading library

2011-04-18 Thread Felipe Monteiro de Carvalho
On Tue, Apr 12, 2011 at 6:43 PM, Darius Blaszyk dhkblas...@zeelandnet.nl wrote: Hi Felipe, Nice work. I have been playing with FreeType as well to have it render on OpenGL. For that I ported some code from the web and modified it slightly. The result is a bitmapped font for OpenGL. You can

Re: [fpc-pascal] New to freepascal and how to translate my delphi program.

2011-04-18 Thread Marcos Douglas
On Mon, Apr 18, 2011 at 9:52 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Mon, Apr 18, 2011 at 2:45 PM, Marcos Douglas m...@delfire.net wrote: Like read the text of PDF files? No, vectorial drawings. PDF can hold raster images, vectorial drawings and/or rich

[fpc-pascal] GDB Case insensitive Search

2011-04-18 Thread Richard Ward
I can't figure out how to make a case insensitive search in GDB. The GDB docs only say that you can do the following but don't give much else or explain regexp. forward-search regexp or reverse-search regexp These works fine for simple (case sensitive) searches but I tried quite few