fpc-pascal · 2022-09
- JSON RPC changes in 3.3.114
So I got the project building after changing the enums but now after running the server breaks after sending the first request and I get the error "'No class…
- Lazarus Release 2.2.40
The Lazarus team is glad to announce the release of Lazarus 2.2.4. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and…
- Enum property can't be published6
I just tried to build a lazarus project using 3.3.1/ppca64 and I’m getting an error that an enum can’t be published. This was working on 3.2.2/ppcx64 so what changed?
- mciSendString with long file names14
I'm trying to get mciSendString() to work with long file names with spaces in them and I'm not having any success. I know with winnows you need quotes around long file…
- Learning Guide Focused On Android and Mobile0
I'm looking for any learning materials that may help me learn free pascal to the target Android and Mobile. There are a good number of tutorials online for general…
- 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…
