Re: [fpc-pascal] Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

2018-08-06 Thread Jim Lee
they don't last.  And, these were not cheap ones - they cost me ~$600 USD each for 1TB. I've gone back to rotating magnetic media as I've only lost 2 of those in 35 years... -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

2018-08-06 Thread Jim Lee
they don't last.  And, these were not cheap ones - they cost me ~$600 USD each for 1TB. I've gone back to rotating magnetic media as I've only lost 2 of those in 35 years... -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
me MumbleScript, or whatever the hot language of the week happens to be. -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 13:28, Ryan Joseph wrote: On Jul 17, 2018, at 2:07 PM, Jim Lee wrote: And that's why I hesitate whenever someone comes along and says we should add to Pascal I just want my life to be easier and to enjoy programming in Pascal as much as possible. If I’m doing work I

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 11:50, Ryan Joseph wrote: On Jul 17, 2018, at 12:24 PM, Jim Lee wrote: It has to fit the spirit of the language as well. I don’t propose new features to copy other languages but I’ll mention other languages as evidence that more people than just myself have discovered some

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 11:00, Ryan Joseph wrote: On Jul 17, 2018, at 11:27 AM, Jim Lee wrote: Likewise, "modern" programming languages are all converging on a common feature set, like cultural cross-pollination. if that’s our mindset then how do we account for times when we’ve actually

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
. Likewise, "modern" programming languages are all converging on a common feature set, like cultural cross-pollination. I prefer to have a variety of dialects and paradigms to choose from (and a variety of cultures) over a global sameness. -Jim _

Re: [fpc-pascal] A new fpc desirable feature

2018-07-17 Thread Jim Lee
the program must end with "Thank you." -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interrogating external devices using USB

2018-07-05 Thread Jim Lee
that may give you an example of how to wrap the hamlib library with a pascal interface: https://www.cqrlog.com/ Hope this helps, -Jim  W7JLL ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Jim Lee
supposedly Pascal's most significant paradigm: strong typing. As Jim Lee points out, strong typing does limit utility - but if utility is first concern, a weakly typed language such as C would be more appropriate. When looking at the (partial) disassembly of my little program, we see to what d

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-02 Thread Jim Lee
/unsigned values, the utility of the language is greatly diminished. -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Jim Lee
tributions or ideas welcome. That's what I'm trying to do.  And, thank you for your own heroic contributions! -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
There is 1 documenter: me. Pardon my ignorance, but I take it that "packages" is more like an un-curated repository of contributions rather than an official part of the fpc distribution?  If so, I wasn't aware of that.  It would explain a big part of my frustrat

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
On 07/01/18 12:07, wkitt...@windstream.net wrote: On 07/01/2018 02:38 PM, Jim Lee wrote: The most common scenario for me is this: "I wonder if fpc (or Lazarus) already has ".  Go to the wiki and browse haphazardly, looking for [...] that may be part of your problem... you'

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
uch the only game in town when it comes to a cross-platform Pascal able to be used for low-level, even bare metal programming.  I also realize that documentation is often low on the list of priorities - but good documentation is vital to build a user bas

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
it's back to the land of C for me.  Too bad - Pascal was always my favorite language. -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
ideal.  At some point I'd even like to contribute to the documentation, but right now it's a Catch-22 that has me seriously considering giving up on these tools (and that from 40+ years of programming veteran!)... -Jim P.S. - Read this as frustration, not criticism.  I'd just l

Re: [fpc-pascal] Compiling 3.1.1 trunk

2018-06-23 Thread Jim Lee
On 06/23/2018 02:18 PM, Sven Barth via fpc-pascal wrote: Jim Lee mailto:jle...@gmail.com>> schrieb am Sa., 23. Juni 2018, 17:34: Hi, newbie to fpc (but not Pascal) here. I'm trying to compile the fpc trunk from svn on linux.  I managed to find the buildfaq, but I

Re: [fpc-pascal] Compiling 3.1.1 trunk

2018-06-23 Thread Jim Lee
On 06/23/2018 08:46 AM, Jonas Maebe wrote: On 23/06/18 06:24, Jim Lee wrote: I'm trying to compile the fpc trunk from svn on linux.  I managed to find the buildfaq, but I'm running into problems. I've done this: $ svn checkout http://svn.freepascal.org/svn/fpcbuild fpcbuild

[fpc-pascal] Compiling 3.1.1 trunk

2018-06-23 Thread Jim Lee
]: Leaving directory '/home/jlee/src/Pascal/fpcbuild/trunk/fpcsrc' make: *** [Makefile:2278: fpcsrc/build-stamp.x86_64-linux] Error 2 What am I missing? Thanks, -Jim ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Default record fields

2018-06-23 Thread Jim Lee
t with slightly different syntax. Nevermind. I sometimes do not even understand how people did stuff for 50 years without TObjectClassAdvancedTemplateGenericRecordRTTI... Restraint is a virtue exercised by the wise and experienced; the young and foolish prefer

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-14 Thread Jim Leonard
e for each component reference." -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magic bag!

Re: [fpc-pascal] Illeagal assignment to For Loop variable in Free pascal

2014-06-17 Thread Jim Leonard
gal-assignment-to-For-Loop-variable-in-Free-pascal-tp5719603.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-

Re: [fpc-pascal] Identifier not found "MEMW"

2014-05-08 Thread Jim Leonard
], we could advise how difficult it would be to port... -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread Jim Leonard
On 4/6/2014 4:40 PM, m...@rpzdesign.com wrote: Jim: Are you able to web surf to the lazarus.freepascal.org web site? Yes. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread Jim Leonard
cgi-bin/mailman/listinfo/fpc-pascal -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magic bag! __

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-13 Thread Jim Leonard
iteration depending on the number and status of the entries. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magi

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-13 Thread Jim Leonard
On 3/13/2014 9:49 AM, Jim Leonard wrote: On 3/12/2014 6:58 PM, Philippe wrote: you could - store the actual collection to a TMemoryStream, - destroy the collection, - Load then a new collect to be sort with different method ... Yes, that's what I'm doing now for every re-sort.

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-13 Thread Jim Leonard
an override any of the methods, but if not, it sounds like this is what I'll have to do unless I want to write my own custom data structure for this process. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-13 Thread Jim Leonard
ltaneously. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magic bag! ___ fpc-pascal m

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-12 Thread Jim Leonard
t's kept sorted only through inserts and deletes. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and try

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-12 Thread Jim Leonard
Sorry, some Turbo Pascal-isms in my initial mail -- I see that FreePascal's TCollection class has an explicit .Sort method so this helps me re-sort on demand, but it doesn't help me switch the Compare method. So, my question still stands. On 3/12/2014 1:51 PM, Jim Leonard wrote: I

[fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-12 Thread Jim Leonard
y own sort routines for a plain TCollection)? -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to ste

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-06 Thread Jim Leonard
record is 'large'... but then again... some thought and meditation is necessary ;) Not much thought required -- a pointer to the record is 4 bytes, no matter how large the record is. In fact, it's probably faster than what you're doing, and more flexible. -- Jim Leonard (t

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-05 Thread Jim Leonard
then Compare := 1 else Compare := 0; end; -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magic bag! __

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-04 Thread Jim Leonard
efore the insertion, then call a normal .Insert? Why overload something if there isn't really a need to? -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread Jim Leonard
model, whose entire model (inheritance) addresses this sort of thing. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars: http://trixter.oldskool.org/ You're all insane and trying to steal my magi

Re: [fpc-pascal] Proper way to cast dynamic array in watch window?

2013-11-10 Thread Jim Leonard
On 11/10/2013 2:41 AM, Jürgen Hestermann wrote: But the debugger is not able to do this. So you need to write foo^[i] when you want to examine this value in watch window or other debug windows. Works perfectly, thanks very much. -- Jim Leonard (trix...@oldskool.org) Check out some trippy

[fpc-pascal] Proper way to cast dynamic array in watch window?

2013-11-09 Thread Jim Leonard
2]) but I must be doing it wrong as those aren't working. What is the proper way to cast dynamic arrays so that I can inspect them in the watch window? -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars:

[fpc-pascal] Viewing disassembly without call stack?

2013-11-06 Thread Jim Leonard
er is something where I can rewrite a line/section, compile, and then view the disassembly to see if what I wrote produces more optimal code. -- Jim Leonard (trix...@oldskool.org) Check out some trippy MindCandy: http://www.mindcandydvd.com/ A child borne of the home computer wars:

[fpc-pascal] Re: FreePascal as an embedded language in Firebird: possible and desirable?

2011-08-09 Thread Jim
On 9-8-2011 17:49, Jonas Maebe wrote: > > On 09 Aug 2011, at 17:04, Jim wrote: > >> 4. I just tried to open up communication and provide a way for >> both sides to communicate and keep track of things. > The problem is that this is generally not how things actually g

Re: [fpc-pascal] Re: FreePascal as an embedded language in Firebird: possible and desirable?

2011-08-09 Thread Jim
On 9-8-2011 16:39, Marco van de Voort wrote: > In our previous episode, Jim said: >> Firebird issue/feature request: >> http://tracker.firebirdsql.org/browse/CORE-3571 >> FreePascal issue/feature request: >> http://bugs.freepascal.org/view.php?id=19946 > > IMHO

[fpc-pascal] Re: FreePascal as an embedded language in Firebird: possible and desirable?

2011-08-09 Thread Jim
On 27-7-2011 9:10, Jim wrote: > Hi FreePascal and Firebird people, > (Cross-posted to the FPC and Firebird Development mailing lists) > > 1. Background > = > For the upcoming Firebird 3.0 database server release, developers are > working on allowing external lan

[fpc-pascal] FreePascal as an embedded language in Firebird: possible and desirable?

2011-07-27 Thread Jim
Hi FreePascal and Firebird people, (Cross-posted to the FPC and Firebird Development mailing lists) 1. Background = For the upcoming Firebird 3.0 database server release, developers are working on allowing external languages (at first Java) for writing stored procedures and functions.

[fpc-pascal] Request for implementing issue 0017664 - fix included in mantis

2011-05-31 Thread Jim
Hi all, A gentle request - if people are looking at the issue already, consider this message as not sent. I've looked at issue 0017664 (fbembed.dll library not loaded as part of initialisation of firebird). The fbembed library works as an embedded database, but also has the regular client/server

[fpc-pascal] Re: Firebird 2.5 embedded bug? Debugging skills needed

2010-12-21 Thread Jim
On 20-12-2010 18:23, Jim wrote: > (Posted to Firebird-dev list, copied to freepascal list for info) > > Hi all, > > Recently I mentioned a problem running FreePascal 64 bit code with > Firebird 2.5 embedded 64 bit on Windows (Vista). > All these cases seem to lead to access

[fpc-pascal] Firebird 2.5 embedded bug? Debugging skills needed

2010-12-20 Thread Jim
(Posted to Firebird-dev list, copied to freepascal list for info) Hi all, Recently I mentioned a problem running FreePascal 64 bit code with Firebird 2.5 embedded 64 bit on Windows (Vista). Tried a later 2.5.1 snapshot, didn't work either. It does work with a separate regular Firebird 2.x 64 bit

Re: [fpc-pascal] Reading MDB (MS-Access) data under Linux

2010-11-01 Thread Jim
On 1-11-2010 12:18, Graeme Geldenhuys wrote: > Hi, > > I need to write a data conversion app. Has anybody read MDB data under > Linux yet, using SqlDB? I saw there was a ODBC database component, and > searched by Ubuntu repository. I installed 'iodbc', 'libiodbc2' and > 'libiodbc2-dev'. The 'iod

Re: [fpc-pascal] Initializing records and other complicated structures

2010-09-28 Thread Jim
On 27-9-2010 13:30, Sven Barth wrote: > Am 27.09.2010 10:38, schrieb Honza: >> 2010/9/27 Jim: >>> As TIfdTag seems to contain non-pointer records only, I thought I could >>> use Sizeof and tried this: >>> FillByte(tag, SizeOf(tag), 0); //initialize var. >

[fpc-pascal] Initializing records and other complicated structures

2010-09-27 Thread Jim
Hi, Fpc sometimes complains (hints) about local variables not being initialized. My question: how do I initialize more complicated structures like records? And should I need to (I'm guessing no in the example below, but the contents of the record will be undefined - no problem as there are no poin

[fpc-pascal] Request for a look at sqldb Firebird database code

2010-09-09 Thread Jim
Hi all, Still wrestling with my locate clone at (download source+exe) http://bitbucket.org/jb/flocate/get/tip.zip I've hit some interesting behaviour: running 64 bit embedded Firebird with 64 bit fpc lead to unhandled exceptions in the Firebird dll, see: http://mantis.freepascal.org/view.php?id=1

Re: [fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Jim
On 1-8-2010 14:29, Marco van de Voort wrote: > In our previous episode, Marco van de Voort said: >> >> Call inherited create(true) in your constructor instead of just create(). > > Hmm no, that is not it either, since the constructor is overloaded. Then a > small example program to test is really

[fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Jim
Hi all, Still working on my file indexer: http://bitbucket.org/jb/flocate/changeset/6c6fa90e632e Each search for files creates a TObjectList descendant (TDirectoryEntryList, see directoryentrylist.pp) On finding a file, the search class createa a DirectoryEntry object with the relevant file prop

[fpc-pascal] Firebird embedded x64: strange error code when database not found

2010-06-19 Thread Jim
Hi all, Still getting Firebird embedded to workg correctly. Seems like I get improper error messages... I seem to have 32 bit working; now I'm testing 64 bit functionality: Windows Vista Free Pascal Compiler version 2.4.1 [2010/06/06] for x86_64 Firebird 2.1.3.18185 See http://bitbucket.org/jb/f

[fpc-pascal] Re: Embedded firebird test program was: Firebird stored procedure exceptions generate access violation

2010-06-16 Thread Jim
> Sorry all: > > Solved: PEBKAC/PICNIC problem as usual. > > I assigned a variable that hadn't been initialised as a stringlist to > the connection's Params property. > > On with the next problem... > > thanks, > jb > Progress & help requested from the experts. 32 bit works, 64 bit doesn't:

[fpc-pascal] Re: Embedded firebird test program was: Firebird stored procedure exceptions generate access violation

2010-06-16 Thread Jim
On 16-6-2010 11:09, Jim wrote: > I've uploaded it to: > http://bitbucket.org/jb/flocate/issue/5/cant-get-embedded-firebird-to-work > the latest attachment is > fbembedtest16June_10.52.zip > > Possibly due to my newbie-ness, I can't get embedded Firebird to work; >

[fpc-pascal] Embedded firebird test program was: Firebird stored procedure exceptions generate access violation

2010-06-16 Thread Jim
On 6-6-2010 16:06, Michael Van Canneyt wrote: >> (gdb) break fpc_raiseexception >> Breakpoint 1 at 0x40a9c6 >> .. debug output >> Breakpoint 1, 0x0040a9c6 in fpc_raiseexception () >> (gdb) backtrace >> #0 0x0040a9c6 in fpc_raiseexception () >> #1 0x0043d284 in >> IBCONNECTION_TIBCONNECTIO

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 19:06, Jim wrote: > On 6-6-2010 16:06, Michael Van Canneyt wrote: >> >> >> On Sun, 6 Jun 2010, Jim wrote: >>> (gdb) break fpc_raiseexception >>> Breakpoint 1 at 0x40a9c6 >>> .. debug output >>> Breakpoint 1, 0x004

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 16:06, Michael Van Canneyt wrote: > > > On Sun, 6 Jun 2010, Jim wrote: >> (gdb) break fpc_raiseexception >> Breakpoint 1 at 0x40a9c6 >> .. debug output >> Breakpoint 1, 0x0040a9c6 in fpc_raiseexception () >> (gdb) backtrace >>

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 5-6-2010 10:47, Michael Van Canneyt wrote: > It might be worth putting all parameters in a record definition and pass > the > record to your function. That makes the procedure declaration somewhat more > manageable and understandable. (and definitely more efficent as well). Progress! As you su

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 11:54, Michael Van Canneyt wrote: > Maybe there is some special handling required for firebird exceptions, > although that would surprise me. Normally I'd simply expect this to > be a special error code, and the message of the exception as the error > message... > > Michael. Found a pd

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 11:54, Michael Van Canneyt wrote: > On Sun, 6 Jun 2010, Jim wrote: >> On 5-6-2010 12:23, Michael Van Canneyt wrote: >>> On Sat, 5 Jun 2010, Jim wrote: >>>> On 5-6-2010 10:47, Michael Van Canneyt wrote: >>>>> On Sat, 5 Jun 2010, Jim wrote:

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 5-6-2010 12:23, Michael Van Canneyt wrote: > On Sat, 5 Jun 2010, Jim wrote: >> On 5-6-2010 10:47, Michael Van Canneyt wrote: >>> On Sat, 5 Jun 2010, Jim wrote: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x0001ad7d in FINALIZE$_D

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-05 Thread Jim
On 5-6-2010 10:47, Michael Van Canneyt wrote: > On Sat, 5 Jun 2010, Jim wrote: >> Finally, the question: >> What I really want is to get a Firebird SQLCODE error code or some other >> details that allow me to figure out whether one of my custom exceptions >> get calle

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-05 Thread Jim
On 5-6-2010 10:47, Michael Van Canneyt wrote: > On Sat, 5 Jun 2010, Jim wrote: >> Finally, the question: >> What I really want is to get a Firebird SQLCODE error code or some other >> details that allow me to figure out whether one of my custom exceptions >> get calle

[fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-05 Thread Jim
Hi all, Still working on my locate clone at http://bitbucket.org/jb/flocate/ - download at http://bitbucket.org/jb/flocate/downloads Running Free Pascal Compiler version 2.4.1 [2010/06/01] for x86_64 on Windows. I've cobbled together some Firebird database code. If you want to have a more comple

[fpc-pascal] Re: More memory leaks and other problems: request for review of probably stupid mistake

2010-04-03 Thread Jim
On 31-3-2010 20:47, Flávio Etrusco wrote: >> If you still want to use records, before the Dispose(APResultRecord) >> set the ansistring fields to '', this will garantee that the reference >> is freed. >> >> > Or call Finalize() on them. > > Flávio > > Dear José & Flávio, Thanks for the tip

Re: [fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread Jim
On 31-3-2010 20:47, Flávio Etrusco wrote: >> If you still want to use records, before the Dispose(APResultRecord) >> set the ansistring fields to '', this will garantee that the reference >> is freed. >> >> > Or call Finalize() on them. > > Flávio > Thanks José & Flávio, Sounds like a good

[fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread Jim
Hi all, I'm trying to learn FreePascal by writing a file indexer a la locate and I'm hitting more walls after receiving quick and clear help from Michael Van Canneyt regarding memory leaks. In the last couple of hours I've seen memory leaks cropping up in the main LPR file, invalid pointer probl

Re: [fpc-pascal] Newbie problems with memory leak and access violation/AV

2010-03-30 Thread Jim
On 30-3-2010 9:28, Michael Van Canneyt wrote: > After allocating an object which you will free in the same routine, > you should ALWAYS put a try..finally statement, and free the object in > the > finally clause: ++ makes sense. > After that, the error still happens, but at least there is no memor

[fpc-pascal] Newbie problems with memory leak and access violation/AV

2010-03-30 Thread Jim
Hi all, Background: Hobby programmer; Microsoft Access VBA/Visual Basic 6/Visual Basic.Net background. I'm a FreePascal newbie but have fiddled with it some time ago. Was looking into learning C++ but that seems too curly, so started again. I've decided to write a file scanner program that indexes

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
pkzip changed the dates on the unzipped files, and this was somehow screwing up FPC. Once I reset the dates on all the files in the FPC directory to the same date the compiler returned with -iD everything started working again! So I think I'm all set. Thanks for the help... Regards,

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
pas(56,1) Fatal: Can't find unit SYSWIN32 It seems to be looking in the correct spot now, and syswin32.ppw does indeed exist in the \fpc\units\win32\rtl directory, but it's still giving me the same error (and I'm assuming the message "PPU Loading" means it found the uni

[fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
pening. Okay, after this lng winded story the question is; what am I missing? This is the EXACT same setup I've been using for a very long time, but for some reason it's not working now. Does anyone have an idea of what's going wrong here? TIA... Regards, Jim Wilson ___

Re: [fpc-pascal]Win32 API Call

2004-06-22 Thread Jim Wilson
functions as "stdcall" (FPC 1.0.x just used "stdcall" by default). I'll make note of that. I'm attaching corrected version of your program. Thanks for that -- you were a big help! Regards, Jim Wilson ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]Win32 API Call

2004-06-21 Thread Jim Wilson
D := 'Unknown'; Profile.Name := 'Unknown'; end; writeln ('GUID : ',Profile.GUID); writeln ('Name : ',Profile.Name); writeln ('Results: ',Results,' - ',GetLastError); END. Regards, Jim Wilson ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] File copying

2004-05-03 Thread Jim Wilson
brutally slow. I've always used blockread and blockwrite for such things. Seems to work pretty fast. Regards, Jim ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread Jim Wilson
At 11:18 AM 3/27/2003, you wrote: Sorry, I meant physical. The Win32 API has a function called GlobalMemoryStatus that might give you some of the info you're looking for, but obviously it's not cross-platform. Don't know if that helps much

Re: [fpc-pascal]Gratitude for FPC

2003-02-11 Thread Jim Wilson
d in the "author" list on the web site. BTW, Michael, Peter and Pierre...where are your photos?? THANK YOU ALL for Free Pascal :) I second this whole thing. You guys have really done an awful lot! Regards, Jim ___ fpc-pascal maillist -