Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2016-04

  1. TMaskUtils.ValidateInput function: how is it supposed to behave?

    I cannot find any documentation about TMaskUtils.ValidateInput function (unit MaskUtils). AFAICS Delphi does not have such a class? (ref:…

    Bart, Graeme Geldenhuys, Luiz Americo Pereira Camara
    12
  2. UnicodeString and surrogate pairs

    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…

    Graeme Geldenhuys, Marco van de Voort, Martin Schreiber
    9
  3. Debug and Release RTL & FCL side by side

    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…

    Graeme Geldenhuys, Michael Van Canneyt, Tomas Hajny
    3
  4. FPC can't determine overloaded function to call

    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 =…

    Graeme Geldenhuys, Jonas Maebe, Peter
    4
  5. Is there a FPC symbol or define for the binary output filename?

    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…

    Paul Michell
    0
  6. Iterator for Unicode encoded strings

    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…

    Graeme Geldenhuys, Michael Schnell, Michael Van Canneyt
    3
  7. FastCGI on Windows IIS

    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 -…

    Marcos Douglas, Michael Schnell, Michael Van Canneyt
    16
  8. FPC create unit path

    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…

    Darius Blaszyk, Graeme Geldenhuys, Sven Barth
    2
  9. Class/Record helpers on genericd?

    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…

    Anthony Walter, Maciej Izak, Sven Barth
    3
  10. FPC 3 regression: cannot use TStringList for UTF-8 data any more?

    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…

    Unknown author, Graeme Geldenhuys, Jonas Maebe
    46
  11. Unit path search order

    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))…

    Martin Schreiber, Jonas Maebe
    3
  12. c-blocks odd hints

    The compiler seems to generate odd hints: Local absolutevar "FPC_BLOCK_SELF" is not used Here's the code. if Assigned(gc.extendedGamepad) then…

    Dmitry Boyarintsev
    0
  13. FCL maskutils incompatible with Delphi

    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…

    silvioprog, Andreas Klausmann, Bart
    8
  14. TPersistent does not call IFPObserved.FPONotifyObservers

    I have a class inheriting from Tpersistent: type TCondition=class( TPersistent, ICondition) var aCondition : TCondition; but surprisingly, when I call…

    Dennis
    0
  15. Is Generics.collections stable?

    Has Anyone used Generics.Collections at https://github.com/dathox/generics.collections ? Is it stable enough for production use? Dennis

    Dennis, Graeme Geldenhuys, leledumbo
    8
  16. Build in a C compiler

    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…

    Rainer Stratmann, Jonas Maebe, leledumbo
    14
  17. Problem using ipc with OSX and fpc 3.0.0

    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…

    Tony Whyman, Jonas Maebe
    1
  18. Any chance to add the TStringBuilder to FCL?

    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…

    silvioprog, Bart, Dmitry Boyarintsev
    24
  19. fpdoc fixes for FPC 3.0.2

    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,…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  20. is there any pascal library of SNTP (Simple Network Time Protocol)?

    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

    Dennis, Graeme Geldenhuys, Unknown author
    2
  21. STATIC can only be used on non-virtual class methods

    Consider the following code: === test begin === {$MODE DELPHI} TStaticVirtualTest = class sealed(TObject) public class procedure Test; virtual; static; end; class…

    silvioprog
    0
  22. Error: Internal error 2014052302 on changing some common units

    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…

    Dennis, Dennis Poon, Sven Barth
    2
  23. A better way?

    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…

    Ryan Joseph, Dennis, Ewald
    33
  24. try..finally vs interfaces performance

    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…

    Mazola Winstrol, Graeme Geldenhuys, Luiz Americo Pereira Camara
    8
  25. Initialization in Shared Libraries

    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,…

    Mazola Winstrol, Jonas Maebe, Michael Van Canneyt
    6
  26. TP lex change input buffer

    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…

    Darius Blaszyk, leledumbo
    1
  27. TStringHelper with SysUtils functions

    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…

    silvioprog
    0
  28. fcl-pdf: Extracting a page...

    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

    Marcos Douglas, Graeme Geldenhuys, José Mejuto
    4
  29. Implicit Operator Overloading

    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>…

    Mazola Winstrol, Sven Barth
    3
  30. Sqldb - How to pass an array of values as a param to be used with SQL IN operator?

    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)…

    Luiz Americo Pereira Camara, leledumbo, Stephen Chrzanowski
    8
  31. FPC 3.0.0 and constref default param

    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)…

    Krzysztof, Maciej Izak
    3
  32. Debug a getter (was Lazarus vs MSEgui)

    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…

    Michael Thompson, Graeme Geldenhuys, Martin
    2
  33. Class vs Object type

    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…

    Graeme Geldenhuys, Adriaan van Os, Dennis
    15
  34. How do record variants without a field name?

    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,…

    Ryan Gonzalez, leledumbo
    1
  35. Lazarus vs MSEgui

    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,…

    Santiago A., Anthony Tekatch, Fred van Stappen
    12
  36. PDF generator: please test

    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…

    Michael Van Canneyt
    0
  37. FPC generated executables and digital signatures

    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…

    Graeme Geldenhuys, Marco van de Voort, Michael Thompson
    14
  38. FPC releases for Win64 - 2.6.2 & 2.6.4 versus 3.0.0

    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,…

    Graeme Geldenhuys, Dimitrios Chr. Ioannidis, Jonas Maebe
    7
  39. Create dynamic SQL according to available params

    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…

    Luiz Americo Pereira Camara, Graeme Geldenhuys, Marcos Douglas
    13
  40. FPC 3: disabling automatic AnsiString codepage conversion

    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…

    Tobias Giesen, Graeme Geldenhuys, Jonas Maebe
    31
  41. fpSelect fails with UDP sockets?

    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;…

    Klaus Hartnegg, Mark Morgan Lloyd, Unknown author
    5
  42. Postgresql interface bronken for Raspberry pi model 1b

    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…

    Björn Lundin, Bo Berglund, Marco van de Voort
    9
  43. Write Applet with FPC JVM

    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…

    Ingemar Ragnemalm, leledumbo
    2
  44. SVN FPC tag content?

    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…

    Bo Berglund, Graeme Geldenhuys, leledumbo
    4
  45. Framework for Objects Serialization / Deserialization

    Is there a fpc framework for or some standard to serialize / deserialize classes and other custom types? Regards

    Mazola Winstrol, Dmitry Boyarintsev, Michael Van Canneyt
    3