fpc-pascal
Subscribe to this list Your subscription
Latest threads
- SerReadTimeout question3
I can't seem to find any documentation or SerRead or SerReadTimeout.. searching for either along with Freepascal doesn't get me any results. If it exists somewhere and I…
- Get TMethod from function reference13
A function reference can call a class method but can you get the TMethod data from function references? It was possible with “is object” to cast to TMethod but that…
- Getting Shift key with PTCCRT6
I have some key sequences with PTCCRT.READKEY where I use a lower case letter to do one thing and an uppercase to do another, but if the Capslock is on, they do the…
- $modeswitch declared before $mode fails without warning3
One more thing today working with closures. Declaring the modeswitch before the mode does not actually enable the feature and gives no warning. What happens then is…
- Function reference doesn't capture in thread6
Can anyone explain why this program doesn’t capture the state of the local variable “I” and execute in order? It will return something like this: Invoked: 3 id:…
- Internal error 2019022201 from function reference2
This program gives internal compiler error 2019022201 (Free Pascal Compiler version 3.3.1 [2022/05/27] for aarch64). Something is wrong with the PPU. This is a very…
- Access Violation When SetLength(DynArray, Value)13
Is there a known edge case issue connected to setting the length of dynamic arrays? I have a program that simulates a billiards game, and during the rerack balls method…
- How to assign overloaded event handler?1
I don't know whether this is actually a bug or not but I cannot find a hint in the documentation. It seems that methods assigned to an event handler are not allowed to…
- fpwebfile, indexPageName and query -> 4043
if I request, e.g. http://localhost:8080 or http://localhost:8080/ fpwebfile returns the document defined as IndexPageName (in my case index.html), but if I request…
- Test Free Pascal program not compiling3
Trying to compile a small test pascal program on a arm cpu. I beleive it is an a53. Libre Le Potato I am getting the following error: Error: Error while assembling…
- Get highest element of a StringList16
I thought I would try: For Loop := 0 to High(MyStringList) do But I get "Error: Type mismatch" Is there a way to get the highest element of a stringlist other than: For…
- Why does nested function get corrupted?7
Curious more than anything, if is nested captures state in a record and passes it as an hidden self param, why does returning the variable and calling from outside the…
- TJSONRPCModule: access the request from an handler.3
I added a "Web JSON-RPC Module" to my project, I dropped on it a TJSONPCHandler. I find no way to access the request (I want to check the RemoteAddress): 1) the module…
- Arguments gets corrupted with anonymous nested function7
The following program uses an anonymous nested function which captures a local variable. It seems the arguments get corrupted (likely because of the hidden first param…
- reading a TFPGMap from several threads2
I have a couple of TFPGMaps that I populate once and never change. Is it safe to read them (i.e. use Find and Data[]) from different threads? I'd avoid using a critical…
- I am offering a $100 reward for linking static libraries18
I will pay $100 to the first person that can solve my problem of linking a compiled C static library to a Free Pascal program on Windows. Recently I have been building…
- BoolToStr12
I'm generating a report where I wish to display some Boolean values. I thought I would try BoolToStr, as according to:…
- Is there any benefit for a Delphi/Free Pascal/Lazarus programmer to build a C DLL in debug mode ?1
Is there any benefit for a Delphi or Free Pascal/Lazarus programmer to build a C DLL in debug mode ? Could it and would it somehow lead to better debugging ? If so how ?…
- HTTPS Client certificate in TFPHTTPServer0
Hi! Now that I'm able to use TFPHTTPServer and HTTPS, I want to know how to use the certificate of HTTPS client to authenticate a session on TFPHTTPServer. This is…
- Class or Record Helper for Interface?5
I just tried to write a type / record /class helper for an interface type and the compiler deosn't seem to allow it. Is this allowed and what is the syntax? Also, are…
- Teaching Kids Using Free Pascal3
Some of you might not be aware, but I teach small groups of kids ages 8-16 computer programming and digital electronics. When teaching programming I often use Free…
- TFPHTTPServer and HTTPS6
Exists in FPC some example that demonstrates the use of TFPHTTPServer with HTTPS? The unique example that I have found is about TCustomHTTPApplication. Fabio Luis Girardi
- Union field after property violates "field before property" rule + property of union field not possible.3
Delphi and presumably Free Pascal has some language inconsistency and problem/short coming concerning "Union Field" and/or "Union Property": The (previous) presented…
- Union followed by Property does not compile !3
program TestProgram3; { Test program to illustrate the 'union' followed by property problem in Delphi language and Free Pascal Language version 0.01 created on 1 august…
- Re: Here is real time graphics and physics simulation, library2
Den 2022-08-01 kl. 09:40, skrev I have exactly the same principle for all code I create for my teaching. I maximize transparency and keep the size down. For graphics, I…
- UBER H3 API working/partially converted1
(I mainly write this second e-mail to prevent you from wasting time on the previous e-mail, cause the conversion was already quite successfull with a different tool,…
- Here is real time graphics and physics simulation library6
I am looking for help adding in a bunch more features to my real time graphics and physics simulation library. Here is a very brief overview with some screenshots and…
- UBER H3 Pascal Bindings (H2PAS produces bad output)0
Hexagon Grid library, I am trying to make a binding for Pascal with the help of H2PAS but it produces bad output, see example below.4 Any advise how to improve the…
- Bug or feature ?3
I have a long code which include lines for writing stuffs into an assigned writable text-file F. WRITELN(F: 'Hello'); WRITELN(F, 'Hello'); The code can be compiled with…
- Re: fpc-pascal Digest, Vol 216, Issue 160
I got it working, but there are differences: When invoking WinRes, it looks as if the project directory is used as the base path. With fpcres, I think the directory in…
