[fpc-pascal] [EMAIL PROTECTED] dead?
Hi All, I sent an email to [EMAIL PROTECTED] a few weeks ago with the URL of a mirror I'd just setup, and a request to be added to the rsync push list. However, the URL was never listed and I never got a responce. Is that address dead? Thanks! -- Taj ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Program Functions used in Dynamic Library
Hi All, I'd look this up, but I don't know what to look *for*. I'm trying to write a SDK for a plugin system. Plugins are shared objects/dynamic linking libraries which export two functions, Start and Stop. Start is the programs chance to set itsself up, and Stop, destroy its items, etc. Anyway...I'm getting sidetracked. I would like to build the SDK (functions that a plugin is allowed to call, eg for setting up GUI, etc) into the main application. That way, all the plugins use the same functions, the plugins are small, and don't eat lots of memory. The advantage to having the SDK built in (that I can see...correct me if I'm wrong), is that it can do anything (that FPC allows) to the program, *instead* of using shared objects, which seems to have some limitations of how it can affect it's host thread. My question is, I guess, how can I write functions into a program (in a unit), and then have dynamic libraries (which can be compiled at a different time than the app), call the functions? Some kind of runtime linking? Many thanks, -- Taj Never memorize something that you can look up. --Albert Einstein ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]TStringList index
Hi all, This code has been driving me nuts for the past week. IDs:=TStringList.Create; for i:=0 to Datab.List_Field.Count-1 do begin Tmp:=TStringList(Datab.List_Field.items[i]); IDs.Strings[i]:=Tmp.Strings[0]; Tmp.Free; end; It crashes with An unhandled exception occurred at 0x08062FE5 : ESTRINGLISTERROR : List index exceeds bounds (0) 0x08062FE5 Datab.List_Field.Count-1=18. It appears that IDs is not letting me write to item i. Any ideas? Thanks, Taj ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]TStringList index
Hi Vincent, Instead do: IDs.Add(Tmp.Strings[0]); Aha! Thank you! --Taj -- panic: kernel trap (ignored) ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Splitting Strings at character
Hi All, I'm looking for a routine to create a string list from a string, with items being seperated with a comma (,). For example: free,pascal,OO,linux,win32 Would create a stringlist with: free pascal OO linux win32 Any ideas? Thanks, Taj ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]RE: SQLite Header File
Hi Marco, All bindings that bind to a C library need to include {$linklib c}. When it is not there it is a bug in the binding. The {$linklib c} is required to let fpc know that it needs to use special startup code. 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.0 -0800 @@ -1,6 +1,7 @@ program test; -uses sqlite,sqlitedb, strings,classes; +uses sqlite,sqlitedb, strings,classes,initc; +{$linklib c} var MySQL: TSQLite; Thanks again! --Taj -- Gee, Toto, I don't think we are in Kansas anymore. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]SQLite Header File
Hi! I'm looking for a new header file for SQLite...the old one included with FPC 1.0.3 doesn't seem to work (program dies with: Creating class Inconsistency detected by ld.so: dl-minimal.c: 134: realloc: Assertion `ptr == alloc_last_block' failed!) Any idea where I can get a new one? Thanks! --Taj -- I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up. -- Mark Twain, The Innocents Abroad ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Berkeley DB + FPC
Hi All, Have any interfaces been written for BerkeleyDB (preferabl... Googled it but nothing turned up :(. Any leads would be nice. Thanks! --Taj -- Pohl's law: Nothing is so good that somebody, somewhere, will not hate it. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal