fpc-pascal
Subscribe to this list Your subscription
Latest threads
- 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…
- Running Freepascal programs on other computers6
When I run any freepascal program that I compiled on my windows 10 desktop computer on any other PC, I always get a warning: We could not verify who created this file,…
- Can't close and reopen ptcgraph6
I ran into an unexpected issue with ptcgraph. If I use closegraph, I cannot re-open a new ptcgraph window with Initgraph. It looks like it opens the second graph…
- Mutual Reference Interfaces and Memory Leaks3
What is the recommended way to avoid memory leaks in mutual interface references? http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html . Is…
- Raspberry Pi Zero Wireless Self-hosted1
How simple can we get? http://wiki.freepascal.org/self-hosted
- Please vote for Lazarus on Sourceforge's "project of the month"0
Lazarus has been chosen by Sourceforge “Community Choice” Project of the Month Vote – August 2017 see…
- JSON SAX-based reader4
I have changed the JSON parser, it is now written on top of a SAX-like JSON reader (which is available separately). All unit tests work fine, and the few extra tests…
- Re: ptccrt missing keys9
I could really use F11 and F12 including shift, alt, and crtl if possible from the prccrt graphics window. I suspect there is some fundamental reason why F11 and F12…
- Silencing redundand FPC messages2
I am compiling from command line. I am screen reader user relying on spoken output. I would like to minimize the output as much as possible, especially if the output is…
- FPC for AVR11
What sort of targets are people looking at, what sort of debugging is available, and has anybody experimented with the "AVR Dragon"? Mark Morgan Lloyd markMLl .AT.…
- X64 only - Can't determine which overloaded function to call2
I have two almost identical programs, but one of them I cannot compile with Win64, but it works fine with Win32. I finally figured out that the difference between the…
- Parallel Port Access with Free Pascal - windows29
I am trying to get access to the parallel port with Free Pascal. I'm trying to use this version of inpout32 (x64) http://www.highrez.co.uk/downloads/inpout32/ Here's my…
- SIGSEGV in fpc_check_object3
In my Lazarus application I use a TPanel descendant component (TMyPanel) which have subpanels (TMySubPanel) which are TPanel descendants also. The subpanels accessed…
- Usage of TFPCustomImage2
The class TFPCustomImage and its usage has apparently changed in FPC 3.0.2 (and trunk) compared to FPC 3.0. This issue: https://bugs.freepascal.org/view.php?id=32005 is…
- fpGUI on macOS8
What sort of macOS abilities does fpGUI have? Is fpGUI mostly for linux/bsd/windows, and not as much macOS? Does it require some work to get it working, or installations…
- mips architecture2
Debian asks to build Lazarus for mips. See https://bugs.freepascal.org/view.php?id=31989 It fails with (9009) Assembling lazbuild (9022) Compiling resource…
