fpc-pascal · 2016-04
- TMaskUtils.ValidateInput function: how is it supposed to behave?12
I cannot find any documentation about TMaskUtils.ValidateInput function (unit MaskUtils). AFAICS Delphi does not have such a class? (ref:…
- UnicodeString and surrogate pairs9
Does FPC's RTL (or FCL) include a function to check for UTF-16 surrogate pairs? I'd be very surprised if there isn't, but I have yet to find it in the documentation or…
- Debug and Release RTL & FCL side by side3
I sometimes hit a bug in my applications, but then there is no Stack Trace information, or simply something like 3 entries that don't give much information. See attached…
- FPC can't determine overloaded function to call4
I can't figure out why FPC is struggling with figuring out which overloaded methods to call. This is my application code which FPC has a problem with. type TPDFFloat =…
- Is there a FPC symbol or define for the binary output filename?0
I'm writing a library that needs to be used as statically linked units in an application and also as a stand alone dll/so for use from other software. The library needs…
- Iterator for Unicode encoded strings3
This question really applies for all Unicode encodings (UTF-8, UTF-16 and UTF-32). In the modern world you simply can't use indexed access into Object Pascal strings to…
- FastCGI on Windows IIS16
I'm trying to use FastCGI on IIS without success. https://www.iis.net/configreference/system.webserver/fastcgi My environment is: - FPC 2.6.5 - Lazarus 1.5 - IIS -…
- FPC create unit path2
When I try to compile a test app, I get an error saying the output folder (defined by FU) cannot be created by FPC. I suppose this behaviour is ok? Is there a way to…
- Class/Record helpers on genericd?3
Correct me if I'm wrong, but didn't you add support for class/record helpers on generics? For example I'd like to be able to add methods to dynamic arrays: type…
- FPC 3 regression: cannot use TStringList for UTF-8 data any more?46
disallowing "AnsiString" code for UTF-8 is a huge regression. I use TStringList for UTF-8 strings. This is no longer possible, because automatic conversions cause…
- Unit path search order3
http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-280003.1.2 states: " You can add a directory to the unit search path with the (-Fu (see page 100))…
- c-blocks odd hints0
The compiler seems to generate odd hints: Local absolutevar "FPC_BLOCK_SELF" is not used Here's the code. if Assigned(gc.extendedGamepad) then…
- FCL maskutils incompatible with Delphi8
Last week, a member of Lazarus Brazillian group reported a problem related to the MaskUtils unit. His message (adapted from pt-BR to en-US) was: *"Good afternoon.* *I…
- TPersistent does not call IFPObserved.FPONotifyObservers0
I have a class inheriting from Tpersistent: type TCondition=class( TPersistent, ICondition) var aCondition : TCondition; but surprisingly, when I call…
- Is Generics.collections stable?8
Has Anyone used Generics.Collections at https://github.com/dathox/generics.collections ? Is it stable enough for production use? Dennis
- Build in a C compiler14
That would be great. It is not that difficult. { = begin } = end and the other stuff is quite similar. Pascal and C are close related. It could be made with a compiler…
- Problem using ipc with OSX and fpc 3.0.01
I have a problem with some existing code that compiled with fpc 2.6.4 under OSX and does not compile with fpc 3.0.0. The problem is that the code makes a direct call to…
- Any chance to add the TStringBuilder to FCL?24
Is there any chance to add a class like Delphi's TStringBuilder <http://docwiki.embarcadero.com/Libraries/Seattle/en/System.SysUtils.TStringBuilder> to FCL? It would be…
- fpdoc fixes for FPC 3.0.21
I have some fixes for fpdoc [and more to come] and would like them applied to FPC 3.0.2 if possible. Is there an estimate cut-off date for back-porting fixes to 3.0.2,…
- is there any pascal library of SNTP (Simple Network Time Protocol)?2
I am want to embed the SNTP into my applications so that I don't have to run Dimension 4 or other software to correct my PC Clock. Thanks in advance. Dennis
- STATIC can only be used on non-virtual class methods0
Consider the following code: === test begin === {$MODE DELPHI} TStaticVirtualTest = class sealed(TObject) public class procedure Test; virtual; static; end; class…
- Error: Internal error 2014052302 on changing some common units2
whenever I change the source of a common unit (that is used by many other units), when I compile with lazarus 1.7 +FPC 3.1.1, this error will appear in the messages…
- A better way?33
The most annoying problem I have with Pascal currently is with circular unit dependanices and “global” classes that need to be referenced from many units. In other…
- try..finally vs interfaces performance8
Recently i did some maintenance in a code of a colleague. I realized that he designed several classes with interface support so he do not need to protect the code blocks…
- Initialization in Shared Libraries6
I writting a cross-platform shared library (.dll, .so). I need to initialize some global variables. As the free pascal doesn't support library events (PROCESS_ATTACH,…
- TP lex change input buffer1
I'm using TP lex in my application and I would like to change the input buffer from using files to (memory) strings. What is the supposed way to do this? Currently I…
- TStringHelper with SysUtils functions0
How do I use the TStringHelper with SysUtils functions? When I've tried to compile this code: === code === program Project1; {$mode objfpc}{$H+} uses SysUtils; begin…
- fcl-pdf: Extracting a page...4
Is it possible read a PDF, extract a page and create a new one using the new fcl-pdf? If yes, could you send an example how I can do that? Marcos Douglas
- Implicit Operator Overloading3
Fpc: 3.0 Should the compiler to allow the definition of two operator overloading with the same parameters and diferent result types? e.g: ==== code ==== TMyRecord<T>…
- Sqldb - How to pass an array of values as a param to be used with SQL IN operator?8
I switched most of my SQL queries to use Params instead of formatting directly the SQL. But until now i havent figured a way to pass an array of values (mostly integers)…
- FPC 3.0.0 and constref default param3
This code worked fine on FPC 2.6.4: procedure Test(constref AParam: String = 'def_param'); begin writeln(AParam); end; But on FPC 3.0.0 I get error: unit1.pas(30,42)…
- Debug a getter (was Lazarus vs MSEgui)2
I was hoping someone would answer this. I currently insert the equivalent of sHack := MyStrings.Text; into code, and watch that.... Means I have to know I want the…
- Class vs Object type15
I use Class and Object data types frequently in my code. I like the fact that Object data types can be used without first instantiating an instance and it gets freed…
- How do record variants without a field name?1
I posted this to Stack Overflow ( http://stackoverflow.com/questions/36504292/iso-pascal-record-variants-without-a-field-name), but it hasn't gotten any feedback. So,…
- Lazarus vs MSEgui12
I know it is a dangerous question that can easily turn into a holly war, flame or whatever. But here it is. I have only used Lazarus or a general editor (usually Jedit,…
- PDF generator: please test0
Graeme has fixed a number of errors that should hopefully solve the problems with codepages; Changes have been tested on windows/linux/bsd but on Windows only with a…
- FPC generated executables and digital signatures14
I don't visit Windows much, but was doing some testing on a Win7 VM. Every time I run my FPC generated executable I get a Security Warning dialog pop up and it mentions…
- FPC releases for Win64 - 2.6.2 & 2.6.4 versus 3.0.07
No my Win64 VM I have FPC 2.6.2 and 2.6.4 installed using the official FPC installers. For example: fpc-2.6.4.x86_64-win64.exe I wanted to upgrade my VM to FPC 3.0.0,…
- Create dynamic SQL according to available params13
I enconter the following pattern frequently (simplified): SQL: Select * From Customers Where FieldX = 1 Later i need a similar query that uses a different filter like…
- FPC 3: disabling automatic AnsiString codepage conversion31
my application uses the AnsiString type to store UTF-8 data. That was totally fine. Now in FPC 3, automatic conversions cause data loss. I get question marks replacing…
- fpSelect fails with UDP sockets?5
Does fpSelect not work with UDP sockets? It always returns 0, which means it did not see a packet. Is anything wrong with this code? Uses UnixType, BaseUnix, Sockets;…
- Postgresql interface bronken for Raspberry pi model 1b9
Hi! I'm using a pi as a monitor for some process, so I'm trying to get SDL2 and a working postgres interface on it. However I'm running into trouble on timestamps fields…
- Write Applet with FPC JVM2
Hello, FPC list! Is there anyone who knows how to write a JVM applet with FPC? I have this minimal Java applet: import java.applet.*; import java.awt.*; public class…
- SVN FPC tag content?4
I am wondering if the FPC release tag for 3.0.0 is ever updated with the bugfixes or if it is static. I.e. if I want to get the bugfixes into my FPC do I have to update…
- Framework for Objects Serialization / Deserialization3
Is there a fpc framework for or some standard to serialize / deserialize classes and other custom types? Regards
