[fpc-pascal]exception handling issue

2004-08-29 Thread kractor
having some problems with exception handling that have me pretty confused i'll include below the entire procedure where the exception handling occurs ... Procedure procAddNewAlbum; Var tmpAlbumName : AnsiString; tmpAlbumID : Longint; tmpNumTra

Re: [fpc-pascal]SDL on Win32

2004-06-15 Thread kractor
kractor wrote: I apologize in advance if I've completely missed something obvious on this (which *has* been known to happen from time to time), but I'm having issues with getting JEDI-SDL installed. In reading over the sections of the Docs I've scanned so far, in the "l

[fpc-pascal]SDL on Win32

2004-06-15 Thread kractor
I apologize in advance if I've completely missed something obvious on this (which *has* been known to happen from time to time), but I'm having issues with getting JEDI-SDL installed. In reading over the sections of the Docs I've scanned so far, in the "latest" JEDI-SDL from sourceforce it indi

Re: [fpc-pascal]exception handling

2004-03-21 Thread kractor
Jonas Maebe wrote: The problem is simply that "readln" is split into "read" and "readline_end". The former reads whatever you want to read, the latter consumes the end-of-line. The ioresult is checked after both operations. If the read already returned an error, then an exception will be raise

Re: [fpc-pascal]exception handling

2004-03-21 Thread kractor
Michael Van Canneyt wrote: I have been able to reproduce this. However, I'm not sure what the cause it. My guess is that the end-of-line is not consumed before the exception is raised, and therefore the readln(NewAlbum.alLabel); line gets an empty input line. Delphi does consume the end-of

Re: [fpc-pascal]exception handling

2004-03-17 Thread kractor
Michael Van Canneyt wrote: I have been able to reproduce this. However, I'm not sure what the cause it. My guess is that the end-of-line is not consumed before the exception is raised, and therefore the readln(NewAlbum.alLabel); line gets an empty input line. Delphi does consume the end-of

Re: [fpc-pascal]exception handling

2004-03-17 Thread kractor
Michael Van Canneyt wrote: On Tue, 16 Mar 2004, kractor wrote: spent a few moments going over the docs in the manual re: exception handling. for some reason it just doesn't seem to be sinking in, as nothing i've tried as of yet has managed to stop prog from crashing when data in in

Re: [fpc-pascal]exception handling

2004-03-17 Thread kractor
Thomas Schatzl wrote: Hi again, spent a few moments going over the docs in the manual re: exception handling. for some reason it just doesn't seem to be sinking in, as nothing i've tried as of yet has managed to stop prog from crashing when data in input that's of a different type than program

[fpc-pascal]exception handling

2004-03-16 Thread kractor
spent a few moments going over the docs in the manual re: exception handling. for some reason it just doesn't seem to be sinking in, as nothing i've tried as of yet has managed to stop prog from crashing when data in input that's of a different type than program is expecting (string as opposed

Re: [fpc-pascal]RE: SQLite Header File

2004-03-11 Thread kractor
Taj Morton wrote: It is better to include unit initc though, then including {$linklib c} Thanks! Got it working! Find a patch below the example in /usr/src/fpc-1.0.10/packages/base/sqlite/test.pas --- test.pas2004-03-03 15:41:32.0 -0800 +++ test-new.pas2004-03-03 15:42:32.000

Re: [fpc-pascal]'record' / 'array' variable types

2004-03-08 Thread kractor
Dr.Slump wrote: working on some user-defined variable types for a media database project i'm working on (slowly, oh so slowly). i've defined types for artist and album and track (individual). naturally, there's going to be multiple tracks per album, so i'm assuming that an array would be best to s

[fpc-pascal]'record' / 'array' variable types

2004-03-07 Thread kractor
working on some user-defined variable types for a media database project i'm working on (slowly, oh so slowly). i've defined types for artist and album and track (individual). naturally, there's going to be multiple tracks per album, so i'm assuming that an array would be best to store the trac

Re: [fpc-pascal]Default parameters support?

2004-03-03 Thread kractor
Steve Williams wrote: Does FPC support default parameters in procedures/functions? I have FPC 1.0.10 and I cannot get it to compile Delphi code that has default parameters. I'm using the -Sd option, but I cannot find any mention of default parameters in the documentation. I cannot try FPC 1.9.2

Re: [fpc-pascal]Can't seem to cycle a new compiler

2004-03-02 Thread kractor
Vincent Snijders wrote: On Tue, 02 Mar 2004 15:48:25 -0500 kractor <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: These are known problems. You must start with a 1.0.10 compiler when you create a new 1.9.X compiler. Some older (even quite recent) 1.9.x versions won't work

Re: [fpc-pascal]Can't seem to cycle a new compiler

2004-03-02 Thread kractor
Vincent Snijders wrote: On Tue, 02 Mar 2004 15:48:25 -0500 kractor <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: These are known problems. You must start with a 1.0.10 compiler when you create a new 1.9.X compiler. Some older (even quite recent) 1.9.x versions won't work

Re: [fpc-pascal]Can't seem to cycle a new compiler

2004-03-02 Thread kractor
[EMAIL PROTECTED] wrote: These are known problems. You must start with a 1.0.10 compiler when you create a new 1.9.X compiler. Some older (even quite recent) 1.9.x versions won't work. oh, so if i've already built / installed cvs version, then have to remove that and re-install 1.0.10 to build

[fpc-pascal]windows resources

2004-01-15 Thread kractor
I'm assuming that in order to access things in a dll file (for example the sqlite stuff) I would need to review the section in the documentation on "using windows resources"? ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mai

[fpc-pascal]latest cvs

2004-01-05 Thread kractor
I've finally managed to properly compile the latest CVS (as of an hour or two ago). Turns out the problems i was having with those permission denied errors were windows being stupid (right-click -> properties not showing files are "read only" when they actually were). Just like to take this tim

[fpc-pascal]win32 make install error

2004-01-04 Thread kractor
i've managed to (mostly) work out the problems i had building latest cvs. make cycle runs nicely, make all completes w/o crashing, but when i attempt a "make install" the following happens ... c:/pp/bin/win32/cp.exe -rfp tests/* /pp/examples/fcl cp.exe: cannot remove old link to `/pp/examples/fc

[fpc-pascal]building from cvs / win32

2004-01-02 Thread kractor
initc.ppu] Error 1 make[4]: Leaving directory `C:/Documents and Settings/baron kractor/My Documents/cvs_root/fpc/rtl/win32' make[3]: *** [cycle] Error 2 make[3]: Leaving directory `C:/Documents and Settings/baron kractor/My Documents/cvs_root/fpc/compiler' make[2]: *** [compiler_cycle] Err

[fpc-pascal]id3 tagging in mp3 / vorbis

2003-12-28 Thread baron kractor
Wondering if anyone had done any work with manipulating id3 tag information contained in mp3 / vorbis files from within fpc and could point me to some documentation? ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listi

RE: [fpc-pascal]longint -> Pchar

2003-12-10 Thread baron kractor
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of baron kractor Sent: December 10, 2003 4:29 PM To: [EMAIL PROTECTED] Subject: RE: [fpc-pascal]longint -> Pchar Got that particular issue fixed. Now I'm having some issues w/ really strange query results being returned. Even with the

RE: [fpc-pascal]longint -> Pchar

2003-12-10 Thread baron kractor
Got that particular issue fixed. Now I'm having some issues w/ really strange query results being returned. Even with the example code that came w/ the version of fpc that I'm using, I get the following results from a query that should return 0 or nil ... Number of records returned : 8589

[fpc-pascal]longint -> Pchar / string / ansistring

2003-12-09 Thread baron kractor
Is there a (hopefully easy) way to convert a longint variable to either Pchar / string / ansistring without changing the contents of the variable? For example, longint variable containing "12345" converted to one of the string types would still print as "12345". Closest I've been able to get so fa

RE: [fpc-pascal]mysql unit under win32

2003-11-24 Thread baron kractor
lorian Klaempfl Sent: November 24, 2003 9:52 AM To: [EMAIL PROTECTED] Subject: Re: [fpc-pascal]mysql unit under win32 baron kractor wrote: > Was just curious is anyone had come across any worthy documentation / > examples of using the mysql unit in a win32 environment? Hmm, it's use is

[fpc-pascal]mysql unit under win32

2003-11-23 Thread baron kractor
Was just curious is anyone had come across any worthy documentation / examples of using the mysql unit in a win32 environment? ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal