fpc-pascal · 2018-06
- Free Pascal console programs on Android are easy15
http://turbocontrol.com/gnuroot.htm is a new (unpublished) web page. Feedback appreciated!
- GetAppConfigDir(False) in a Citrix environment5
One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\<username>\AppData\Local".…
- Loss of precision when using math.Max()41
I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console application…
- Daemon using TTimer on Windows10
I need to build a daemon app on Windows. It will need a timer to performe some tasks. This timer could be big among 15 min, 30 min, 2 hours, etc. I thought that I can…
- TFPGObjectList error0
I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize…
- How to list USB devices on Windows?4
I am writing a class that interfaces to a specific USB device HID type and I would like to list all such devices currently connected to the PC (usin Windows). On Linux I…
- Format specifier in FPC?2
I have the following format specifier in C : %+.05f. What would be the FPC equivalent? A float is printed like this: -0.70711 The specified '+' will explicitly print out…
- Lazarus and Linked Lists1
Is there a basic linked List object for Lazarus? Terry Haimann
- how to get rid of hints1
How to get rid of hint 6068? With fpc 3.1.1 using some units like fgl the compiler emits: .../fpc/rtl/objpas/fgl.pp(899,1) Hint: "inherited" not yet supported inside…
- macos make 3.1.1 fails3
Trying to compile fpc 3.1.1 i386 on Mac High Sierra 10.13.5: make CPU_TARGET=i386 PP=/usr/local/lib/fpc/3.0.4/ppc386 all The CPU_TARGET seems to be ignored:…
- Proper preprocessor?76
Are there any plans to make a proper preprocessor like #define in C? I’m not saying this is good programming practice or anything but I just had a really annoying copy…
- Compiling 3.1.1 trunk4
Hi, newbie to fpc (but not Pascal) here. I'm trying to compile the fpc trunk from svn on linux. I managed to find the buildfaq, but I'm running into problems. I've…
- Support for "class threadvar" sections inside class and record types9
Hello together! Announcing a small feature this time, but some might appreciate it: FPC now supports the declaration of threadvars inside class and record types. ===…
- Default record fields19
I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little…
- math with infinity and NaN23
I’ve been updating my old programs to use the MATH unit in freepascal and while testing things I came across a runtime error 217 Invalid floating point operation. …
- Equivalent of Delphi map files...10
Hello again :), I just forgot to ask; Delphi has an option to generate a so called "map file" that contains the function addresses matched with the function names when…
- Feature announcement: Dynamic array extensions93
Hello together! I'm pleased to announce that after nearly a year various extensions for dynamic arrays have been finished. This includes the following features: -…
- Multiple thread heaps8
If the default memory manager for FP creates a heap for each thread, what happens if an object is created in one thread and freed by another ? Also, do calls to New ()…
- Lazarus and Cocoa1
I’m trying to make a lazarus control which wraps an NSView but I haven’t used Lazarus before and I don’t really understand the architecture of the system. It looks…
- I am trying to install zeosdbo0
I am trying to install zeosdbo onto my Lazarus install and am getting the following error during the rebuild: Build IDE: Exit code 512, Errors: 1lazarus.pp(1,1) Fatal:…
- Realtime and freepascal???11
For a hard real-time project I am considering using freepascal. As this is my first endeavour in real-time I would like to ask the community on their experiences. Is FPC…
- AVX512 in ASM - From where should I start?3
In the case that I feel brave enough to code support for AVX512 on asm sections, from where should I start? This question is related to:…
- record alignment2
I have a struct I need to port from C but the size I’m getting in Pascal is wrong. From C sizeof(AAPLVertex) = 32 but in Pascal sizeof(AAPLVertex) = 24. The alignment…
- Better usage of "with"15
I was just watching a video from Jonathan Blow (the developer of a really popular game named Braid) on a new language he’s working on to get around all the cruft and…
- round(2.5)=219
The round function behaves different than in TurboPascal, and its English Wiki page differs from the German page. When given an argument halfway between to integers,…
- Re: Regression in StrToDateTime()2
You also can make your own procedure to fix the issue for yourself. Like you can rewrite the function StrToDateTime() to change all '. ' to '.' and then call the…
- FP IDE browse-function (search symbol) errors1
I'm struggling with two issues with the Search,Symbol (Browse) function of the FreePascal IDE. Are these known issues, or is something wrong with how I installed or…
- Migrate Delphi XE5 to FPC/Lazarus, any advice?7
I have this big tomographic data interpretation and visualization program on my hands for maintenance. It was started back in 2002 by another developer using Delphi7 and…
- Dynamic arrays using management operators14
Since we were talking about dynamic arrays I was curious to see if they could be implemented using the new management operators so I made a little proof of concept by…
- Anchors on a child form5
If I create a child form by setting Parent:=other_form; in FormCreate, it cannot be dragged to a new position by the user. If I then remove the top and left anchors by…
- OSv v0.51.0 released with FreePascal support0
the announcement on the OSv list: https://groups.google.com/forum/#!topic/osv-dev/4KWShVlt08s An excellent wiki article has been written back in september 2016 about…
- HTTPRoute.pas and TRouteObject3
Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so…
- := overload with implicit arrays in generics1
Is this is a bug or am I not doing something right? I wanted to assign an implicit array (I think thats what those parameters are being called now) so I made an overload…
- C# stackalloc5
As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really…
