Re: [fpc-pascal] RE: FPC and Profiling software

2008-03-13 Thread bartek
On Thursday 13 March 2008 11:26:49 Graeme Geldenhuys wrote: > Thanks Jeff. > > That seems to work fine with my project under Linux. Now I only need > to learn the format and meaning of all the numbers in callgrind.log > file. But I'm sure the website or man pages will give info on that. kcachegr

Re: [fpc-pascal] Vim FileType for pascal files

2008-02-24 Thread bartek
l at the beginning of each file. By the way, your way of doing it should work, but the VIM newsgroup is IMHO a better place to ask such a question. bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC + GTK2 : Using variable into a Widget name ?

2008-01-04 Thread bartek
rrays? var pFSImage: array[0..3] of pGTKWidget; i: integer; begin for i:= 0 to 3 do begin pFSImage[i] := your code here more code end; end; You could also use dynamic arrays if you don&#x

Re: [fpc-pascal] Problems with generics

2007-12-30 Thread bartek
On Sunday 30 December 2007 15:31:32 Micha Nelissen wrote: > bartek wrote: > > I am not quite sure whether my synatx is correct. IMHO explictly defining the > > type feels more pascalish. Having more time at hand i have written a much > > shorter example code which shows in

Re: [fpc-pascal] Problems with generics

2007-12-30 Thread bartek
On Sunday 30 December 2007 07:32:22 Micha Nelissen wrote: > bartek wrote: > > function HashOf(const Key: ShortString): DWord; > > > > function BucketNodeOf(const Hash: DWord): TBucket.PNode; > > DataContainers.pp(104,66) Fatal: Syn

[fpc-pascal] Specializing generics in a generic

2007-12-26 Thread bartek
mebody can enlighten me once again ;) Thank you in advance. bartek. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] More problems with generics

2007-12-23 Thread bartek
> FPC SVN (rev. 9495) -- FPC 2.2.0 dies with EAccessViolation while compiling > > the code in question > > linux 2.6.23 x86 > > > > Please try r9521 of FPC 2.3.1 > o_O works. Great! Thank you very much. :) bartek ___ fpc-pasc

[fpc-pascal] More problems with generics

2007-12-23 Thread bartek
advance. bartek {$mode objfpc}{$h+} unit RegisteredCallbacks; interface uses classes, sysutils; type { fake TList } generic TList = class private FakeMemory: T; function GetElement(const Index: integer): T; procedure SetElement

[fpc-pascal] Problems with generics

2007-12-17 Thread bartek
property TableSize: integer read GetTableSize write SetTableSize; end; --- 8< *snip, snip* ----- bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Heaptrace and generics

2007-11-15 Thread bartek
On Thursday 15 November 2007 17:59:26 Micha Nelissen wrote: > bartek wrote: > > Could be FPC at fault? Both files are attached, "DataContainers.pp" being > > the two lists and "DataContainers_Test.pp" the test program. > > > > FPC 2.2.0 on Linux 2.

[fpc-pascal] Heaptrace and generics

2007-11-15 Thread bartek
results in absolutely no problems reported by valgrind. Could be FPC at fault? Both files are attached, "DataContainers.pp" being the two lists and "DataContainers_Test.pp" the test program. FPC 2.2.0 on Linux 2.6.23 valgrind-3.2.3 thanks in advance bartek {$mode objfpc}{$h+}

[fpc-pascal] Heaptrace and generics

2007-11-09 Thread bartek
be FPC at fault? Both files are attached, "DataContainers.pp" being the two lists and "DataContainers_Test.pp" the test program. FPC 2.2.0 on Linux 2.6.23 valgrind-3.2.3 thanks in advance bartek {$mode objfpc}{$h+} unit DataContainers; interface type { TList }

Re: [fpc-pascal] Speed

2007-10-30 Thread bartek
mbler output of the fp compiler. "fpc -alrnt ..." You can use this a base for more handoptimizing assembler code. As a side note. I see you are using extended. Newer x86 CPUs support the SSE1/2/3/4 extensions which can process multiple doubles at mind-boggling speed. If you ca

Re: [fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-20 Thread bartek
On Sunday 20 May 2007 16:43:34 Jonas Maebe wrote: > On 20 May 2007, at 16:38, bartek wrote: > > OK. And what about this: > > -8<- > > /home/bartek/Dev/units/glgui/glgui.pp(376,33) Error: Can't take the > > address of > > constant exp

Re: [fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-20 Thread bartek
On Sunday 20 May 2007 16:22:44 Jonas Maebe wrote: > On 20 May 2007, at 16:20, bartek wrote: > > This made me curious, and I checked my links. Seems like I > > accidentally > > compiled with fpc 2.3.1. I am very sorry, my bad :( . > > But OTOH, I still want to know what

Re: [fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-20 Thread bartek
ge, this change has not yet been merged to the fixes branch (so > it's definitely not yet in 2.1.4) > This made me curious, and I checked my links. Seems like I accidentally compiled with fpc 2.3.1. I am very sorry, my bad :( . But OTOH, I still want to know what I need to do to get

Re: [fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-20 Thread bartek
Hi, I tried to compile my current project with the new compiler (2.1.4). This resulted in the following error: -8<- /home/bartek/Dev/units/vmath.pp(435,29) Error: Can't take the address of constant expressions -8<- -8<- destructor TLazyVariableManage

Re: [fpc-pascal] libsndfile library

2007-05-07 Thread bartek
not counting the graphics part, is ingenious IMHO. bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Problems when using gprof

2007-04-29 Thread bartek
ev/Infor$ [...] FreePascal fixes_2_2 on Kubuntu 6.10 x86 Thanks in advance bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Source line numbers during execution

2006-07-11 Thread bartek
ExceptFrameCount; Frames := ExceptFrames; for FrameNumber := 0 to FrameCount - 1 do csl_log(0, BackTraceStrFunc(Frames[FrameNumber])); csl_log(-1, 'done'); csl_log(-1, 'catched'); end; If anything can be made better, feel free to contact me. bartek

Re: [fpc-pascal] Nice website

2006-06-27 Thread bartek
Mattias Gaertner schrieb: > :) > > Mattias > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > Indeed, kudos to the people that made it. ___

Re: [fpc-pascal] make install problem

2005-11-11 Thread Bartek
explorer, it does launch) No error messages :/. OS: WindowsXP Fpc and Lazarus: newest from svn Thanks in advance. bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] error msg: "Selected asm reader not supported"

2005-08-08 Thread Bartek
Florian Klaempfl wrote: Bartek wrote: Vincent Snijders wrote: Bartek wrote: Jonas Maebe wrote: On 7 aug 2005, at 21:29, Bartek wrote: I am compiling my sources under win32 for win32 with Lazarus. And my source codes and the "tcl80.pas" ha

Re: [fpc-pascal] error msg: "Selected asm reader not supported"

2005-08-08 Thread Bartek
Vincent Snijders wrote: Bartek wrote: Jonas Maebe wrote: On 7 aug 2005, at 21:29, Bartek wrote: I am compiling my sources under win32 for win32 with Lazarus. And my source codes and the "tcl80.pas" has compiled fine with earlier versions of fpc. I only updated the fpc s

Re: [fpc-pascal] error msg: "Selected asm reader not supported"

2005-08-08 Thread Bartek
Jonas Maebe wrote: On 7 aug 2005, at 21:29, Bartek wrote: I am compiling my sources under win32 for win32 with Lazarus. And my source codes and the "tcl80.pas" has compiled fine with earlier versions of fpc. I only updated the fpc source from svn, compiled it, copied over th

Re: [fpc-pascal] error msg: "Selected asm reader not supported"

2005-08-07 Thread Bartek
Marco van de Voort wrote: Using the current compiler from svn, i get the following message when trying to compile "tcl80.pas". This also happens when i try to compile other code using asm code. [...]\tcl80.pp(1023,6) Fatal: Selected assembler reader not supported thanks for your help in ad

[fpc-pascal] error msg: "Selected asm reader not supported"

2005-08-07 Thread Bartek
hi Using the current compiler from svn, i get the following message when trying to compile "tcl80.pas". This also happens when i try to compile other code using asm code. [...]\tcl80.pp(1023,6) Fatal: Selected assembler reader not supported thanks for your help in advanc

Re: [fpc-pascal] showing source linenumbers on exceptions

2005-06-28 Thread Bartek
Vincent Snijders wrote: Peter Vreman wrote: hi, how can i show source line numbers, when an exception occurs, like sysutils do? ... An unhandled exception occurred at $0040E9B5 : EInOutError : Invalid filename $0040E9B5 TDXF__LOAD, line 271 of dxffile.pas $0040EFFA TDXF__CREATE, line

[fpc-pascal] showing source linenumbers on exceptions

2005-06-27 Thread Bartek
,alias:'FPC_BREAK_UNHANDLED_EXCEPTION']; ... but i don't how to set FrameCount and Frames. thanks in advance bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc documentation

2005-04-22 Thread Bartek
sorry, it was my fault. i accidently opened everytime the old documentation i used for 1.0.x. as to the fcl, i helped myself with the delphi docu. bartek Michael Van Canneyt wrote: On Wed, 20 Apr 2005, Bartek wrote: hi, is there an actualized version of the freepascal documentation

[fpc-pascal] fpc documentation

2005-04-20 Thread Bartek
hi, is there an actualized version of the freepascal documentation? everything i find on the freepascal site is not uptodate enough for 1.9.8. i am also not able to find any documentation of the fcl. nor on the fpc site neither on the laz site. thanks in advance bartek

Re: [fpc-pascal] fpc198 and old bugs

2005-03-09 Thread Bartek
--- - > >program bug; > >uses heaptrc,sysutils; > >begin > >markheap; > >end. > > Use the bug repository to report bugs otherwise they will be forgotten. done so. thanks for your answer. bartek

[fpc-pascal] fpc198 and old bugs

2005-03-08 Thread Bartek
e:\fpc198\work\bug.exe /P" Marked memory at $00083514 invalid Wrong signature $ instead of 8736A0C5 $004072DB $00404E74 $0040C6D6 $004096B4 $0040C473 $0040C1C9 $004082C6 $00408088 $004022C7 //-- tha

[fpc-pascal] fpc198 and old bugs

2005-02-25 Thread Bartek
e:\fpc198\work\bug.exe /P" Marked memory at $00083514 invalid Wrong signature $ instead of 8736A0C5 $004072DB $00404E74 $0040C6D6 $004096B4 $0040C473 $0040C1C9 $004082C6 $00408088 $004022C7 //-- tha

Re: [fpc-pascal] Runtime Error 216

2005-01-03 Thread Bartek
i've just recompiled all my programs with all optimization switches disabled and all checks disabled, just for curiosity, because you mentioned this problem. they are suddenly running perfectly fine. i think the code optimization or the checking is somehow broken... - Original Message -

Re: [fpc-pascal] Runtime Error 216

2005-01-03 Thread Bartek
yes, you're right. after disabling the stack cheking it runs fine. thanks - Original Message - From: "Jonas Maebe" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Monday, January 03, 2005 8:29 PM Subject: Re: [fpc-pascal] Runtime Error 216 On 3 jan 2005, at 20:19, Peter V

[fpc-pascal] Runtime Error 216

2005-01-03 Thread Bartek
. this snippet is causing the crash. i'm not sure if it is my fault. thanks in advance bartek program bug3; type PSDL_Surface = ^TSDL_Surface; TSDL_Surface = record offset: Integer; end; var screen :psdl_surface; function SDL_MustLock(Surface: pSDL_Surface): Boolean;

[fpc-pascal] SSE in overloaded operators

2004-12-17 Thread Bartek
hi, i'm trying to get this piece of code to work. but it fails on execution and returns a SIGSEV signal. i think this is caused by the weird code, fpc creates. fpc tryed to access the wide sse registers with multiple short 32bit registers, and at some point, protected memory is accessed. i'm using