fpc-pascal
Subscribe to this list Your subscription
Latest threads
- 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
- Class constructor called unconditionally15
First, take a look at this small project: === code === program Project1; {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} {$IFDEF MSWINDOWS} {$APPTYPE CONSOLE} {$ENDIF} type TFoo =…
- PDF generator, try 21
Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in the PDF generator: e.g. Unicode fonts should now render correctly. The…
- Default source encoding7
According to http://wiki.freepascal.org/index.php?title=FPC_Unicode_support#String_constants "the constant strings are assumed to have code page 28591 (ISO 8859-1 Latin…
- History of the Cardinal data type?25
Just curious. What is the history behind the Cardinal data type. As per the FPC documentation, it is always mapped to the LongWord type. I presume it is the same in…
- How to crosscompile i386-linux from X86_64-win644
what parameter(s) need to cross-compiling i386-Linux from X86_64-win64 ? When I am trying to compile from "win32" with win32 compiler:…
- heaptrc and high RAM usage1
I have an app that is using too much RAM and I am trying to figure out which structures are using how much RAM. Note that this is not a leak, everything is freed nicely…
- IFDEF usage in x86_64's SwapEndian() implementation5
Here is the x86_64's SwapEndian() function implementation. =============[ src/rtl/x86_64/x86_64.inc ]==================== function SwapEndian(const AValue: DWord):…
- Migrating from FPC 2.6.4 to 3.0.0 . What should I be aware?1
I'm planning constantly moving my apps to FPC 3.0.0. Compiled the smallest app and everything seems to working fine. In official recent changes list I read that main…
- TPersistent overhead5
What are all the performance costs associated with subclassing TPersistent for RTTI information? I want to use this in some classes but unfortunately the way my code is…
- [heaptrc] no output for weblaz projects.3
I use heaptrc unit without any problem, using Lazarus project options. Now I try fcl-web applications (curently fphttpapp) and... heaptrc does not work. I see the…
