fpc-pascal · 2017-07
- Free Pascal 3.0.4-rc1 released!7
We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…
- Super Large Integer Math Calculations10
For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then…
- Best way to insert bytes into a TBytes variable?21
I am working on moving away from using AnsiString as communications buffer in an old application, so I need to write efficient replacements for certain string functions…
- Food for thought - language string improvement46
Ever had a problem like this? You have some SQL, say: SELECT Customers.CustomerName, Orders.OrderID FROM Customers FULL OUTER JOIN Orders ON Customers.CustomerID =…
- Const attributes9
The following code is compilable. I'm using a private const with type defined and I can change it in the constructor. 1. Is this by design? 2. Is there a way to declare…
- XML: Differences between Delphi and FPC5
FPC/Lazarus always tried stay compatible with Delphi... thus, why the FPC XML classes is so different than Delphi classes? Delphi XML is interface-based. There exists…
- BlockWrite of dynamic arrays1
I am converting older code to move from AnsiString to TBytes as non-text data container. While doing it I am using conditionals so I don't destroy the working code until…
- TThread.Priority when ?1
Hello. When TThread.Priority will be implemented ? Why not give a compiler message that TThread.Priority is not yet implemented when using it ? Fre;D ----- Many thanks…
- My bug or rtl bug with TThread and TThreadList?3
Could someone please look at this small bit of code and tell me I have a bug or if there is something wrong with the RTL?…
- SVN RSS4
Is it possible that the SVN RSS is stuck at day 21 ? https://svn.freepascal.org/feeds/fpcsvn.rss
- Implementing AggPas with PtcGraph102
What is the best method for getting the memory image to a ptcgraph window? I have been trying to figure how to use something like putimage to do this but I'm not sure…
- FPCUnit/DUnit: How abort all other tests?3
I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail,…
- New tool sspell for pascal programmers1
I've just finished working on a tool called sspell (stands for source code spell checker) for a project of mine. This tool extracts text from comments and string…
- OS/2 support and text colors2
Not strictly FPC related, but I know here are some OS/2 software developers around - and I have no idea where else to ask. I'm working on supporting OS/2 in fpGUI…
- Static local variables available?7
I am trying to clean up an existing application where handling of incoming serial data is done inside an event function OnRxData() of the serial component. I want to…
- Compiler debug build2
Hi all Currently I am debugging a nasty shared memory bug. More specifically it's related to memory allocator, though not directly. More to the point - lack of…
- Semaphores removed from the rtl?9
When and why were semaphores removed from the rtl?
- backtrace code in fpc5
Hello everyone, I am trying to port the code for backtrace, e.g., GetLineInfo(), to my freepascal kernel in order to print a backtrace when an exception happens. The…
- Subclassing generic records?6
I’m trying to find a way to extend generic records since (as far as I know) there is no subclassing of records. I could use variant records here but these don’t work…
- Sistema grande em CGI2
Bom dia pessoal ! Alguém aí já desenvolveu algum sistema grande em cgi ? (muitos acessos simultâneos, etc) Queria saber se ele dá conta, ou até onde se pode ir. Eu…
- Class type to package name?4
Assuming the class type has been registered either through RegisterComponent or RegisterNoIcon, what is the most straight forward way to get the package name it is…
- strutils (RTL) content missing from fp-docs in Debian package1
Since fpc version 3.0 (2.6.4 was OK) the Debian docs package has no content for strutils. Does anyone have any thoughts on what the cause might be? Peter B…
- TInterfacedObject destructor reentrance bug2
I have found a bug in the TInterfacedObject. Better than explaining is to examine and execute the code below. When executing the code below the destructor of the class…
- C to Pascal conversion - Help request2
can someone please help me converting the folowing C types to Pascal? SF_CUE_POINT is simple, but I'm not sure how to convert SF_CUES_VAR(count) ad SF_CUES. Thank you in…
- Convert to int64 note9
I've been trying to get my programs to compile without any warnings or notes, but I keep getting this one: promill.pas(2137,42) Hint: Converting the operands to "Int64"…
- FPDoc - how to document overloaded functions?5
How do you document overloaded functions? In this case I have overloaded functions that have different parameters (obviously), but also different result types. I've been…
- Delete and Add for TBytes?4
I would like to replace a buffer handling scheme in an old application (written in Delphi) where the buffer was originally of type string and later when unicode appeared…
- FPDoc - how to document a function result?1
As the subject line says. Do I simply create a ELEMENT take with the function name and ".Result"? For example: <element name="MyFunction.Result"> <short>This is the…
- FileAge deprecated in Delphi, but not in FPC1
As past discussions showed, Free Pascal tries to be Delphi compatible regarding the RTL. I noticed that Delphi's FileAge() function [the one with a single parameter) has…
- Fixed record files4
I have a few questions about fixed record files. I have the following: Type DrawCMD = Record GC: Byte; PX,PY,PZ,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; Var DrawFile …
- If vs case or something else?5
I'm trying to optimize a console application ported over from Turbo Pascal with a huge set of if then else statements like this: Var TXT : String; If TXT = 'Thing1' then…
- for loops performance problems?7
I recall earlier this year some people in this mailing list were discussing surprising performance problems with fpc and for loops. I wanted to know if this is still an…
- Serial to TCP gateway in FPC?41
I need to implement a serial to TCP gateway in order to communicate between a Windows based control software and a system controller box. The software and the controller…
