fpc-pascal
Subscribe to this list Your subscription
Latest threads
- UnicodeString and Length() function2
I never really used the UnicodeString (or WideString for that matter) - I've always used AnsiString with UTF-8 content. I also have my own UTF8 functions Copy(),…
- cwstrings unit and UTF8Decode()18
I'm using FPC 2.6.4 primarily. Am I correct in that UTF8Decode and most (if not all) UTF8-to-UTF16 conversions don't function correctly (or not at all) if you don't…
- IsValidIdent() with dots3
Hi Is there a function like IsValidIdent but accepting also dots (.), as in name "TForm1.Action1Execute"? While fixing a bug: http://bugs.freepascal.org/view.php?id=25954
- Smartphone apps in FPC16
I was on this list years ago, and then fell off at some point for some reason, but back again now. :-) Having written for DOS all those years ago, I am now…
- Mangle name in fpc-FreeBSD ?37
Hello. I have problem to access methods from a C library. For FreeBSD, the methods cannot be accessed (but ok for Linux and Windows). In FreeBSD, LoadLibrary(aac.so) is…
- crosscompiling problem (.a file)5
I have installed Lazarus 1.6 (64-bit version) in the windows directory c:\lazarus16. I downloaded the source compiler in c:\lazarus16\FPC - missing subdirectories. In…
- Fpc 3.0 Bug: type specialization and operator overload2
Fpc version: 3.0 (the one provided by Lazarus). Please confirm if this is a bug regarding operator overloading and type specialization. It is a quite difficult to…
- Primitive Record Wrappers38
In some situations, would be very interesting to determine whether the value of a primitive variable is initialized or not. For example, fields in database records can…
- PDF generator7
I have committed a PDF generator to FPC Subversion: fcl-pdf. Why a new pascal PDF generator ? Mainly because the existing ones written in Object Pascal suffer from…
- How do I test the testfppdf on Windows?35
I just created the folder "fonts" and copied the "C:\Windows\Fonts\arial.ttf" into that, so I changed the line "D.AddFont('FreeSans.ttf', 'FreeSans-12' to…
- Codepage + class helper raises "Error identifier idents no member ..."11
Consider the following code: === code === program project1; {$mode objfpc}{$H+} *//{$codepage utf8}* uses Classes; type TFoo = class helper for TStream public procedure…
- FillChar/FillByte and Finalize()2
Should I (and in which case) call Finalize() when using FillChar/FillByte? Heaptrc unit is not detecting any memory leak. For example: type PMyRec = ^TMyRec; TMyRec =…
- CMS in Pascal ?4
I'm looking for a minimalist flat-file CMS. There are many floating around, I found a list on e.g. http://www.hongkiat.com/blog/flat-cms/ Is there one written in Object…
- CMem issue?20
I got an AV in the CMem unit. To reproduce the problem just compile and run this code below: === code === program project1; {$mode delphi} uses Classes, SysUtils, cmem;…
- TFPTimer wtih timer_create5
Hi all! I'm searching a way to implement a TFPTimer that don't uses threads. On Linux and FreeBSD I found the timer_create and family functions. My question is: What…
- TStringHelper.Split() issue?6
Just test this code below: === code === program Project1; {$mode delphi} uses SysUtils; var content: string = 'x:y'; splited: TArray<string>; begin splited :=…
- AnsiCompareStr question (again...)8
in an application, I use a TStringList.Sort to sort a list of these two words "(C-C)" and "(C=C)". When I use the same unit in another project, the Sort function sort…
- fcl-xml HTML parser0
today I did a little modification to a tool I wrote some time ago. To my surprise even the unmodified code produced totally wrong result while the old binary did work as…
- Annual Inform0
Annual inform: I am programming LibreN3D for 3D animations, and some other projects in FreeDOS and other systems, but these two past years they really were standing by.…
- Fpc Bug 3.0: Generics and Operator Overloading3
Fpc version: 3.0 (the one included with Lazarus 1.6). Please confirm if it is a bug: it seems the compiler doesn't handle operator overloading properly when using…
- Fpc Bug: Type specialization with Generics and Operator Overloading in Diferent Units1
Fpc version: 3.0 (the same included with lazarus 1.6). Please confirm if it is a bug: If i declare a generic record with overloaded add operation, i need to specialize…
- Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)39
Sorry, my previous example was not complete. Here is a problem detected when compiling UniDAC 6.2.8. Taken from real code in VirtualTable.pas program Project1; {$MODE…
- Bitcounting11
Does FreePascal have a routine for counting bits? So that e.g. BitCount(%1001100100001) gives 5 (number of bits that are 1)? I came up with (extracted from IntToBin()):…
- Trapping distant exceptions0
I'm sure I should know this, and think it's an FAQ, and I'm pretty sure somebody (Graeme?) was discussing it recently. Assuming that an exception handler at the end of a…
- fpc 3.0 ansistring codepage behavior2
I am debugging an issue (x86_64 Linux platform) which I have in FPC 3.0 which I didn't have in 2.6.4. It is a complex project with a lot of threading, custom memory…
- Access violation in an empty project declaring heaptrc2
Just create a project like this: program project1; {$mode objfpc}{$H+} uses heaptrc; begin end. Now, compile and try to run that, you will get this error: Heap dump by…
- Happy tickets benchmark58
Here is my little brute-force test for FPC, C and C# compilers. http://arbinada.com/main/en/node/1532 The results are not so good with FPC but I cannot use Delphi to…
- compile Link Smart option, is it -XX or -CX?3
According to http://www.freepascal.org/docs-html/prog/progse30.html the smartlink option on the command line is -CX Compilation and Linking Linking Link Smart is -XX…
- Wiki (image) uploading temporarily disabled1
The tech support scammers discovered that mediawiki's antispam regex doesn't get applied to image descriptions, so they're now attacking us that way. I hope to find a…
- Crash using library.1
Hello. I use a audio library (libfaad.so) for reading *.m4a audio files. But, after 2 loading-run, the program crash. Here is the result of the debugger: Program…
