[fpc-pascal]Dynamic Arrays (Pointers)

2003-01-24 Thread James Mills
Hi, I'm using FPC 1.0.4 Would someone be so kind as to show me an example of using dynamic arrays of an object, creating new objects on the fly in code and disposing of them when they're no longer needed. Use of this would be in a irc services program I'm porting to linux from delphi (windows), i

Re: [fpc-pascal]FPC vs. GPC (was:FPC 1.0.6 and open arrays)

2003-01-28 Thread James Mills
On Tue, Jan 28, 2003 at 12:05:28PM +0100, Andreas K. Foerster wrote: > On Mon, Jan 27, 2003 at 10:42:37PM +0100, Marco van de Voort wrote: > > > > Will there also be sopport for conformant Arrays as they are defined > > > in standard Pascal (ISO-7185)? > > > > Not that I'm aware of (unless you p

[fpc-pascal]1.0.6 problem

2003-02-03 Thread James Mills
Hi all, I just recently upgraded to FPC 1.0.6 (Debian testing-SID), one of my programs now doesn't compile because of this error. functions.pas(42,2) Error: Incompatible types: got "" expected "" Here is the source pertaining to it: { Function Declarations } function SignOf(args: pString; argC

Re: [fpc-pascal]1.0.6 problem

2003-02-03 Thread James Mills
On Mon, Feb 03, 2003 at 01:37:34PM +0100, Jonas Maebe wrote: > > On maandag, feb 3, 2003, at 13:24 Europe/Brussels, James Mills wrote: > > >I just recently upgraded to FPC 1.0.6 (Debian testing-SID), one of my > >programs now doesn't compile because of this error.

Re: [fpc-pascal]Performance testing of FPC programs?

2003-02-07 Thread James Mills
On Fri, Feb 07, 2003 at 04:56:10PM +0100, Preben Mikael Bohn wrote: > Hi all, I have a relatively large FPC program that I suspect have a few > bottlenecks (regarding processing speed). Are there any ways I can test how > long time the program spends in the different procedures/functions? Use this

[fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
Hi all, Sorry if this is trivial, but I'm sick of it :) I'm using fpc to convert my (originally delphi) code to read and write ini style files, however writing will not work as I want, the data in the pointer keeps getting filled with junk. I'm using getMem, and reAllocMem functions to create dyn

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
On Sun, Feb 09, 2003 at 08:30:57PM +1000, James Mills wrote: > Hi all, > > Sorry if this is trivial, but I'm sick of it :) > I'm using fpc to convert my (originally delphi) code to read and write > ini style files, however writing will not work as I want, the data in &g

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
On Sun, Feb 09, 2003 at 02:22:55PM +0100, Anton Tichawa wrote: > Hello, James! > > I found an error at GetMem / ReAllocMem: Your code: > > getMem(tmpStrings, 100); > {reAllocMem(tmpStrings, (I + 1));} > > reserves 100 or (I + 1) BYTES, but you need space for 100 or (I + 1) > STRINGS, i. e.

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
On Sun, Feb 09, 2003 at 02:22:55PM +0100, Anton Tichawa wrote: > Hello, James! > > I found an error at GetMem / ReAllocMem: Your code: > > getMem(tmpStrings, 100); > {reAllocMem(tmpStrings, (I + 1));} > > reserves 100 or (I + 1) BYTES, but you need space for 100 or (I + 1) > STRINGS, i. e.

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
On Sun, Feb 09, 2003 at 03:12:07PM +0100, Anton Tichawa wrote: > On Sunday 09 February 2003 12:54, you wrote: > > > freeMem(tmpStrings, sizeOf(String) * (N)); > > No, only: > > freeMem(tmpStrings); But getMem and reAllocMem allocate a number of bytes on the heap, wouldn't you have to free that

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread James Mills
On Sun, Feb 09, 2003 at 03:42:29PM +0100, Anton Tichawa wrote: > Hi, > > > But getMem and reAllocMem allocate a number of bytes on the heap, > > wouldn't you have to free that number of bytes using freeMem(pointer, n) > > ? > > No, Free Pascal keeps track of the allocated size for a pointer creat

[fpc-pascal]Classes/Objects/Pointers

2003-02-09 Thread James Mills
Hi all, Sorry to bother you again, can't seem to see what I'm doing wrong it's the same as my dynamic code for strings... var nicks: PNick; nNicks: Integer; procedure initialiseDataNicks; procedure addNick(data: String); procedure updateNick(index: Integer; nick: pNick); function getNi

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread James Mills
On Mon, Feb 10, 2003 at 01:24:05PM +0100, Anton Tichawa wrote: > Hello! > > If TNick is a class - I don't have the declarations - it must be initialized > with > > nicks := new(TNick, init(nick, hops, signon, ident, host, server, unused, > name)); > > That's correct because TNick is alre

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread James Mills
On Mon, Feb 10, 2003 at 03:55:45PM +0100, Anton Tichawa wrote: > Hello, James! > > Personally, I would prefer an even simpler way - but that depends on the > future development and backwards compatibility of Free Pascal. Basically, the > first step towards objects is ENCAPSULATION, which is PURE

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread James Mills
On Mon, Feb 10, 2003 at 01:10:41PM -, Matt D. Emson wrote: > James, > > One important question... If you are using Delphi source (as you implied > in the pointers thread), why use Turbo Pascal style objects in your > conversion? If you used classes, it would be much easier on yourself. No > po

[fpc-pascal]FPC Problem with reAllocMem...

2003-02-10 Thread James Mills
Hi all, I've annoyed you guys enough with pointers, objects and clases :P I'm sorry :) This bugs me though as to why this program crashes at the 4th call to addNick(nick: String); Here is the gdb results, and attached is the source code if anyone is willing to have a look. thank you very much :

Re: [fpc-pascal]FPC Problem with reAllocMem...

2003-02-10 Thread James Mills
Another interesting thing to note as well which I think is rather strange... if you change in datanicks.pas lien 65, reAllocMem(nicks, sizeOf(TNick) * nNicks); to getMem(nicks, sizeOf(TNick) * nNicks); It will crash the same way as before, but at the 5th call of addNick cheers James ___

Re: [fpc-pascal]Gratitude for FPC

2003-02-11 Thread James Mills
On Tue, Feb 11, 2003 at 12:16:50PM -0800, Mark Emerson wrote: > Marco van de Voort wrote: > > Yes, I think Carl did a good job there. > > Wellnot only Carl...I think you ALL (on the FPC team) are doing an > EXCELLENT job. I'm exceedingly grateful to have this compiler, and, as > a bonus, to a

[fpc-pascal]Classes and copying

2003-02-12 Thread James Mills
Hi all, With respect to classes (and perhaps also objects), how do you copy the contents of a class in memory (an object) to another? ie: var a: TClass; b: TClass; begin a := TClass.init; b := a; //This only copies the pointer and doesn't work ?? end. cheers James __

Re: [fpc-pascal]CompareStr

2003-02-12 Thread James Mills
On Thu, Feb 13, 2003 at 02:49:49AM +0100, Iv?n Montes wrote: > Hi, > > Maybe it's how it's supposed to be but if use : > > compareStr( 'hello', 'hello-bye' ) > > I get 0, so they are equal. > > If one string is bigger than the other they should be different, isn't it? > > Otherways what can I

[fpc-pascal]FPC Error! :(

2003-02-13 Thread James Mills
Hi, What on earth does: schanserv.pas(715) Fatal: Internal error 55665566 mean ? cheers James ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Line Continuation

2003-02-13 Thread James Mills
On Thu, Feb 13, 2003 at 08:39:27PM +0200, Haluk DUMAN wrote: Never post HTML to the list. Use PlainText. cheers James ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]FPC Error! :(

2003-02-14 Thread James Mills
nal error will come up. Which is undocumented. channelClass is only needed so that the compiler knows what .getNick is after channels[index].getNick(I) The compiler should probably say, '(x,x) Error: Identifier not found ?? hope this helps. cheers James > > -Original Message-

Re: [fpc-pascal]FPC Error! :(

2003-02-14 Thread James Mills
On Fri, Feb 14, 2003 at 12:54:25PM +0100, Peter Vreman wrote: > > On Thu, Feb 13, 2003 at 06:04:07PM -, Lee, John wrote: > >> This isn't enought info! A bit more info needed eg what version/flavour > >> of > >> fpc, date, what source are you compiling...Regards John > > > > Better yet, I've fou

Re: [fpc-pascal]FPC Error! :(

2003-02-14 Thread James Mills
On Fri, Feb 14, 2003 at 01:46:24PM +0100, Peter Vreman wrote: > > On Fri, Feb 14, 2003 at 12:54:25PM +0100, Peter Vreman wrote: > >> > On Thu, Feb 13, 2003 at 06:04:07PM -, Lee, John wrote: > >> >> This isn't enought info! A bit more info needed eg what > >> version/flavour > >> >> of > >> >> f

Re: [fpc-pascal]reporting faults

2003-02-14 Thread James Mills
On Fri, Feb 14, 2003 at 01:12:16PM -, Lee, John wrote: > Hello everyone...Just a reminder that it's always good to hear from you > about faults in fpc because this helps to make it better, and you can report > these via the web site interface, or using these [fpc-pascal] & [fpc-devel] > mailing

Re: [fpc-pascal]use of c++ libraries

2003-02-19 Thread James Mills
On Wed, Feb 19, 2003 at 10:39:18PM +0100, Olaf Leidinger wrote: > > > Hello everybody! > > > > > > Let's say I've written a nice library in c++ and I'd like to use it in > > > Free Pascal. The list archive sais that linking c++ libs (e.g. from gnu > > > c++) isn't possible, yet - and using dynamic

[fpc-pascal]Window Maker and FPC

2003-02-23 Thread James Mills
Hi, Has anyone attempted writing an application for Window Maker ? More specifically, has anyone attempted to write a docked window maker applciation ? Just on the subject of gui applications, I take it most people use GTK and that it is the perfered gui framework to use ? cheers James _

[fpc-pascal]memw

2003-02-23 Thread James Mills
Hi, This is from an old Turbo Pascal source of the Pascal S compiler source: getmem(spnt,((sleng+3) div 16 +1)*16); k := seg(spnt^); memw[k:0] := sleng; memw[k:2] := 0; move(sbuff[1],mem[k:4],sleng); How would you convert that into FPC syntax for

Re: [fpc-pascal]Question about fp

2003-02-25 Thread James Mills
On Tue, Feb 25, 2003 at 04:11:25PM +0200, Brent Cox wrote: > I don't know is this is the correct place to ask, if not please direct me to the > right place. > > I am running the fp editor on mandrake 9.0. All my borders are not the normal lines > but are the extended charactes I.E the a with a d

[fpc-pascal]Slight problem

2003-03-01 Thread James Mills
Hi all, I have a slight problem I cannot solve. Attached is the source. The file temp has test nicks you can paste into the test program. datatest has the following commands: a - add nick (paste lines from the temp file) d - delete nick l - list nicks i - identify a nick The problem is, when a

Re: [fpc-pascal]Slight problem

2003-03-01 Thread James Mills
Ignore this post. Indexing problem elsewhere in my code :( ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]BUSINESS RELATIONSHIP AND PARTNERSHIP

2003-03-15 Thread James Mills
Gawd almighty! I don't believe this idiot is still trying to post messages to this mailing list. *shakes head* James ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]BUSINESS RELATIONSHIP AND PARTNERSHIP

2003-03-15 Thread James Mills
On Sat, Mar 15, 2003 at 03:06:38PM +0100, Jonas Maebe wrote: > > > On Sat, 15 Mar 2003 [EMAIL PROTECTED] wrote: > > > STRICTLY PRIVATE & CONFIDENTIAL > [snip loads more illegal crap] > > This should be the last time that something like that appeared on the FPC > mailing lists. All posts by non-

Re: [fpc-pascal]Can I program a linux device driver with fpc?

2003-03-17 Thread James Mills
On Mon, Mar 17, 2003 at 09:22:31AM +0100, Michael Van Canneyt wrote: > > > On Mon, 17 Mar 2003, milimeter wrote: > > > Hello, everybody > > > > Is there any possibility that we write a linux device driver with fpc? If we > > can, how? > > In theory it is possible. In practice, this has never

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread James Mills
On Fri, Mar 21, 2003 at 02:04:39PM +0100, Michael Van Canneyt wrote: > > > On Fri, 21 Mar 2003, Anton Tichawa wrote: > > > On Friday 21 March 2003 13:09, you wrote: > > > > On Friday 21 March 2003 12:29, you wrote: > > > >> >> > But, when I use fail in my simple example program, it returns > > >

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-24 Thread James Mills
On Mon, Mar 24, 2003 at 04:17:28PM +0100, Florian Klaempfl wrote: > A.J. Venter wrote: > >Just in case anybody needs some ammo against people who think pascal is > >dead. > >This months Linux format includes AJ's Internet Cafe For LTSP (now > >DireqCafe) which was written in FPC. > >Just goes to sh

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-25 Thread James Mills
On Tue, Mar 25, 2003 at 08:26:16AM +0100, Anton Tichawa wrote: > On Monday 24 March 2003 23:16, you wrote: > > On Mon, Mar 24, 2003 at 04:17:28PM +0100, Florian Klaempfl wrote: > > > A.J. Venter wrote: > > > >Just in case anybody needs some ammo against people who think pascal is > > > >dead. > > >

Re: [fpc-pascal]Lazarus +FPC

2003-03-28 Thread James Mills
On Fri, Mar 28, 2003 at 02:52:31PM +0200, A.J. Venter wrote: > Hi, > How much compatibility is broken between fpc-1.0.6 and fpc-laz 1.0.7 ? Why can't Lazarus be run with just the normal FPC compiler anyway ? Why does it have to have a specially built compiler ? James _

Re: [fpc-pascal]Lazarus +FPC

2003-03-28 Thread James Mills
On Fri, Mar 28, 2003 at 02:41:17PM +0100, Marco van de Voort wrote: > > On Fri, Mar 28, 2003 at 02:52:31PM +0200, A.J. Venter wrote: > > > Hi, > > > How much compatibility is broken between fpc-1.0.6 and fpc-laz 1.0.7 ? > > > > Why can't Lazarus be run with just the normal FPC compiler anyway ? Wh

Re: [fpc-pascal]OpenGL/GLUT run time error when I whant compile this code

2003-04-04 Thread James Mills
On Sat, Apr 05, 2003 at 10:02:07AM +0800, Karim Forsthofer wrote: > Hello > I played around with the OpenGL unit, and I wrote some minimal OpenGL code to get a > window: > Here is the code: > > program glbasic; > > uses > gl, glut; > > const > width = 640; > height= 480; > > procedure

[fpc-pascal]CGI Programming

2003-06-07 Thread James Mills
Hi all, Now that uni is almost over (only exams left), I wish to write a web application for my 5 member group of software engineers (students). Is it wise to write such as application (cgi app in pascal) ? It needs to be secure and allow only members of the group to login and view the pages with

[fpc-pascal]Strange error with a simple class

2003-06-08 Thread James Mills
Hi, I get the following with a very simple class: Runtime error 216 at 0x0805A735 0x0805A735 0x080481FF TCONFIG__PRINT, line 29 of configclass.pas 0x0805BE35 main, line 29 of forum.pas 0x080480B0 Any ideas ? cheers James -- - - James Mills Zero Defect Software Engineers Group

[fpc-pascal]Strange error from a simple class

2003-06-08 Thread James Mills
Hi, I get this error from a very simple class: Runtime error 216 at 0x0805A735 0x0805A735 0x080481FF TCONFIG__PRINT, line 29 of configclass.pas 0x0805BE35 main, line 29 of forum.pas 0x080480B0 Any ideas ? cheers James unit configClass; interface type TConfig = class(TObject) co

Re: [fpc-pascal]Strange error from a simple class

2003-06-08 Thread James Mills
On Sun, Jun 08, 2003 at 04:43:21PM +0200, Michael Van Canneyt wrote: > > > On Sun, 8 Jun 2003, James Mills wrote: > > > Hi, > > > > I get this error from a very simple class: > > > > Runtime error 216 at 0x0805A735 > > 0x0805A735 > > 0

Re: [fpc-pascal]Strange error from a simple class

2003-06-08 Thread James Mills
On Mon, Jun 09, 2003 at 12:57:24AM +1000, James Mills wrote: > On Sun, Jun 08, 2003 at 04:43:21PM +0200, Michael Van Canneyt wrote: > > > > > > On Sun, 8 Jun 2003, James Mills wrote: > > > > > Hi, > > > > > > I get this error from a very sim

Re: [fpc-pascal]Strange error from a simple class

2003-06-08 Thread James Mills
On Sun, Jun 08, 2003 at 05:39:51PM +0200, Michael Van Canneyt wrote: > > > On Mon, 9 Jun 2003, James Mills wrote: > > > On Mon, Jun 09, 2003 at 12:57:24AM +1000, James Mills wrote: > > > On Sun, Jun 08, 2003 at 04:43:21PM +0200, Michael Van Canneyt wrote: > >

[fpc-pascal]ezCGI Source

2003-06-08 Thread James Mills
Hi, Where can I find the source for ezcgi ? Or must I download the entire fcl source (where is this also?) cheers James ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]CGI Programming

2003-06-09 Thread James Mills
On Mon, Jun 09, 2003 at 06:10:25AM -0600, [EMAIL PROTECTED] wrote: > > > > > > ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit > > which has all that ezcgi had, but is embedded more in the FCL. ezcgi is outdated ? It suits me just fine :) How is cgiapp better than ezcgi (j

Re: [fpc-pascal]CGI Programming

2003-06-09 Thread James Mills
On Mon, Jun 09, 2003 at 09:50:33PM +0200, Michael Van Canneyt wrote: > > > On Mon, 9 Jun 2003, James Mills wrote: > > > On Mon, Jun 09, 2003 at 06:10:25AM -0600, [EMAIL PROTECTED] wrote: > > > > > > > > > > > > > > ezcgi i

[fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread James Mills
testdb.pas(84,3) Error: Error while linking Closing script ppas.sh What have I done wrong here ? ... Yes I have installed the appropiate libmysqlclient-dev (from debian). cheers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread James Mills
On Sat, Jun 14, 2003 at 04:08:38PM +0200, [EMAIL PROTECTED] wrote: > > > On Sat, 14 Jun 2003, James Mills wrote: > > > $ fpc testdb > > Free Pascal Compiler version 1.0.6 [2002/08/10] for i386 > > Copyright (c) 1993-2002 by Florian Klaempfl > > Target OS: Lin

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread James Mills
On Sat, Jun 14, 2003 at 05:01:38PM +0200, [EMAIL PROTECTED] wrote: > > > On Sun, 15 Jun 2003, James Mills wrote: > > > On Sat, Jun 14, 2003 at 04:08:38PM +0200, [EMAIL PROTECTED] wrote: > > > > > > > > > On Sat, 14 Jun 2003, James Mills wrote: &

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread James Mills
On Sat, Jun 14, 2003 at 06:30:09PM +0200, [EMAIL PROTECTED] wrote: > > > On Sun, 15 Jun 2003, James Mills wrote: > > > On Sat, Jun 14, 2003 at 05:01:38PM +0200, [EMAIL PROTECTED] wrote: > > > > > > > > > On Sun, 15 Jun 2003, James Mills wrote: >

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-15 Thread James Mills
On Sun, Jun 15, 2003 at 12:34:07PM +0200, [EMAIL PROTECTED] wrote: > > > On Sun, 15 Jun 2003, James Mills wrote: > > > On Sat, Jun 14, 2003 at 06:30:09PM +0200, [EMAIL PROTECTED] wrote: > > > > > > > > > On Sun, 15 Jun 2003, James Mills wrote: >

Re: [fpc-pascal](Auto) XML Record Loader - Exist?

2003-06-16 Thread James Mills
gt; > > >1 >2 >/Y> > > RUI BRENNAN > > > Thanks, >Rodrigo "Rui" R. (1/2 RRC?Soft) > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] >

Re: [fpc-pascal]SDL with FPC - possible?

2003-06-20 Thread James Mills
;contributed units? > > > > > _______ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]SQLite and FPC

2003-06-25 Thread James Mills
n converted the headers for SQLite (2.8.3 I believe) to fpc, I'll include these as well as Eric Jourde's unit. I'd very much appriciate anyone's help with this, as I plan to use SQLite in my project as an embedded database system. cheers James -- - - James Mills Zero Defect Soft

Re: [fpc-pascal]SQLite and FPC

2003-06-25 Thread James Mills
On Wed, Jun 25, 2003 at 11:08:35AM +0200, Michael Van Canneyt wrote: > > > On Wed, 25 Jun 2003, James Mills wrote: > > > Hi all, > > > > I'm wondering if anyone would do me the favour of either writing a unit > > for sqlite (2.8.3) or fixing Eric Jour

[fpc-pascal]TCollection question

2003-07-06 Thread James Mills
heers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
aillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG unit dataNicks; interface uses sysUtils, Functions, tokenizerClass, nickClass; var nicks: PNick; nNicks: Integer; procedure init; pr

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
ascal.org/docs-html/fcl/classes/tlist.html cheers James > > it at least describes the tlist methods. > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
t find a recent version so fast. > > > > > > So I put down a very old version (April 2002) on the web here: > > > > > > www.stack.nl/~marcov/fcl.pdf > > > > I think it's here also in html format: > > http://www.nl.freepascal.org/docs-html/

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
Actually Michael, Could you possibly spare 5 mins and give a really simple example of a TList descandent ? I'm a tad confused here, (too slowly getting anywhere)... Thank you :) cheers James ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.f

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
ree; > > inherited; > end; > > function Add(AItem: TMyListItemClass): integer; > begin > result := FList.Add(AItem); > end; > > procedure Delete( AIndex: integer ); > begin > FList.Delete(AIndex); > end; > > function Coun

Re: [fpc-pascal]TCollection question

2003-07-06 Thread James Mills
; {don't forget some code to empty list} > FList.Free; > > inherited; > end; > > function Add(AItem: TMyListItemClass): integer; > begin > result := FList.Add(AItem); > end; > > procedure Delete( AIndex: integer ); > begin >

[fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
line numbers ? (I think perhaps the SQLite library is interferring with the debug symbols in the program? I'm not sure). Any ideas ? cheers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
On Mon, Jul 07, 2003 at 08:19:38PM +1000, James Mills wrote: > Hi, > > I have a problem with the SQLite library (www.sqlite.org). > I believe Michael helped me with the conversion of the headers and the > unit that Eric Jourde wrote. > > This all works fine, however when com

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
gt; 0x0809911D > > > > Without the source and line numbers ? (I think perhaps the SQLite > > library is interferring with the debug symbols in the program? I'm not > > sure). > > > > Any ideas ? > > > > cheers > > James > >

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
L PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
ing to Michael of FPC :) I can send you a tar.gz of the header translation and the unit though... cheers James > > > > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pasc

Re: [fpc-pascal]FPC Debugging (with SQLite)

2003-07-07 Thread James Mills
i > compatibility over Turbo Pascal?!?! Good question. However I don't really care about Delphi compatibility, as as such I think the FPC developers put it in Strings for a very logical reason. Afterall it is a String function call. cheers James > > Matt > > - Original Me

Re: [fpc-pascal]New to the list/question

2003-07-09 Thread James Mills
e potion that puts needed funds into public coffers to comfort little > > crippled children, then I'm for it." > > > > "This is my position, and I will not compromise." > > > > ______ > > Do you Yahoo!? &g

[fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
har; var index: Integer): Boolean; var i: Integer; begin isin := TRUE; for i := low(chars) to high(chars) do begin if NOT isin(s, '' + chars[i]) then begin index := i; isin := FALSE; break; end;

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
behaviour... cheers James > > Matt > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal mail

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
: String); > > A string, or a array of char? > > IMHO it is logical that it crashes? I am passing ['0'..'9'] to a: const chars: array of char; Can't you do this ? If not how else can I rewrite this function ? cheers James > > > _

Re: [fpc-pascal]Strange Segfault...

2003-07-10 Thread James Mills
functions)... Perhaps there isn't... cheers James > > Matt > > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Gr

Re: [fpc-pascal]Strange Segfault...

2003-07-13 Thread James Mills
tions weren't working :) cheers James > > > __ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > ___ >

Re: [fpc-pascal]Strange Segfault...

2003-07-13 Thread James Mills
't see any problem) cheers James > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist -

[fpc-pascal]SQLite and NULL Strings...

2003-07-13 Thread James Mills
--- 0 -> channelNotice Fields --- 0 -> "" This should be: 0 -> Any ideas anyone ? The attached sqlite.pas and sqlitedb.pas were put together by Michael, myself and Eric Jourde (possibly ported from tsqlite I hear) cheers James -- - - James Mills Zero Defect S

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > Hi, > > > > This is a very weird behaviour I've found of either SQLite, or the Unit. > > I'm not sure... I have been discussi

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 02:26:28PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > Hi, > > > > This is a very weird behaviour I've found of either SQLite, or the Unit. > > I'm not sure... I have been discussi

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 03:39:36PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]Strange Segfault...

2003-07-14 Thread James Mills
t; > end up with > > similar results. > > > > You'd be much better off Returning a value, and thereby avoiding > > the > > potential for big allocation/deallocations. That or use > > shortstrings. > > > > Matt > > > > > &

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-14 Thread James Mills
On Mon, Jul 14, 2003 at 03:06:44PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 02:26:28PM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > Just reconfirming with you and solidifying my knowledge. > > The reason it returns "" is because: when working with > > native pasca

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 03:15:58PM +0200, Michael Van Canneyt wrote: > > > On Tue, 15 Jul 2003, James Mills wrote: > > > On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Mon, Jul 14, 2003 at 03:39:36PM +0200, Michael Van Canneyt wrote: > > > On Mon, 14 Jul 2003, James Mills wrote: > > > On Mon, Jul 14, 2003 at 09:59:17AM +0200, Michael Van Canneyt wrote: > > > > > > > > > On Mon, 14 Jul 2003, James Mills wrote

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 07:04:05AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 05:27:42PM +0200, Michael Van Canneyt wrote: > > > On Wed, 16 Jul 2003, James Mills wrote: > > > On Tue, Jul 15, 2003 at 07:04:05AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > &g

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 08:35:44AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > My program relies on the fact that some fields (which are string > > types) > > are null. I'm not sure what to say next so I'll leave it at t

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 08:53:12AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 15, 2003 at 08:35:44AM -0700, Alan Mead wrote: > > > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > >

Re: [fpc-pascal]Re: SQLite and NULL Strings...

2003-07-15 Thread James Mills
___ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Softwar

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread James Mills
On Tue, Jul 15, 2003 at 09:41:11AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > Well the only bad thing is that it returns data where there should > > be no > > data. ie: '""' instead of the expected '

Re: [fpc-pascal]Synapse for FPC

2003-07-21 Thread James Mills
Lib. > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
for creating this suite... cheers James > > -- > Lukas Gebauer. > > E-mail: [EMAIL PROTECTED] > WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP > Library > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http:/

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
suited to work with FPC, till we have sufficient support for > threads and the like. (scheduled for 1.2) Good :) The more FPC stuff out there the better I say, it's a bloody beautifull compiler of a very nice old language! cheers James > > Michael. > > > _

[fpc-pascal]XChat plugins using FPC

2003-07-22 Thread James Mills
the right direction... cheers James -- - - James Mills Zero Defect Software Engineers Group - ZDSEG ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]XChat plugins using FPC

2003-07-22 Thread James Mills
can save a lot of time) Now once these headers are converted... When writing the plugin source itself, do I need to use PChar's instead of pascal strings ? cheers James > > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://

  1   2   >