Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2014-12

  1. Brook Framework and Template Engines

    What's the current status of the Brook Server Pages project? What's the recommended template engine to use with Brook Framework? Best regards

    Fabrício Srdic, Flávio Etrusco, luiz americo pereira camara
    9
  2. How can you convert an enum value to string?

    Is there a subroutine that can convert an enum value to a strings, so that I can do something like ShowMessage(EnumToStr(enumValue))? Frank Church =======================

    Frank Church, Graeme Geldenhuys, Howard Page-Clark
    12
  3. raw printing throught USB port / WINDOWS

    I need a solution (unit?) to access printer (matricial like LX80, LX300 and so on) in raw mode throught USB port directly from FPC program build in mode win32 or win64.…

    Philippe, Chriss Kalogeropoulos, LacaK
    7
  4. AWS Lib - Object Pascal library for the Amazon Web Services

    I'm glad to announce the 0.2 release of AWS Lib, a minimalistic Object Pascal implementation for the Amazon Web Services. The project has been completely rewritten using…

    Marcos Douglas, JB, luiz americo pereira camara
    3
  5. memory leak in TCustomSQLQuery.Create

    In TCustomSQLQuery.Create, FRefreshSQL:TStringList is created on line 2095, but never freed. This causes a small memory leak. Please see the attached test program…

    Michael Van Ham, Michael Van Canneyt
    1
  6. cloning data containers

    I hope you all had nice christmas days and now can answer my question. ;) Is there any way of cloning record and objects having only data fields? Or do I have to copy…

    Marc Santhoff, Bart, Chriss Kalogeropoulos
    8
  7. Generated names in specialized classes are weird in Free Pascal

    Recently I've made a class to generate error log for codes in Delphi and Free Pascal. It works capturing the class name where the problem occurred, adding the date/time…

    silvioprog, Sven Barth
    5
  8. Question about functions returning a string

    Take the following function prototype (in {$mode objfpc}{$H+} for the record): Function SomeFunction(const Data: PChar; const Len: LongWord): String; cdecl; public;…

    Ewald, Dan, Flávio Etrusco
    7
  9. Benchmarks are odious, but...

    At http://www.fourmilab.ch/fbench/fbench.html John Walker, formerly of Autodesk, rates FPC as one of the faster languages but remarks "To the best of my knowledge, none…

    Mark Morgan Lloyd, leledumbo
    1
  10. we can "nintendo dual screen" begin, again brother - I'll pull some strutils

    /rtl/nds# make PP=ppcarm BINUTILSPREFIX=arm-none-eabi- Makefile.fpc <http://free-pascal-general.1045716.n5.nabble.com/file/n5720668/Makefile.fpc> View this message in…

    year0096IC
    0
  11. Linux, keypressed, readkey

    Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt?

    Rainer Stratmann, Kiên Nguyễn Tiến Trung, leledumbo
    6
  12. unit crt linux CR LF

    When using the crt unit the CR LF is not working properly as I understand. Is it possible to change this behaviour? So that the CR LF is working? For examlpe when…

    Rainer Stratmann, leledumbo
    1
  13. file identification and metadata retrieval

    currently I'm searching for a library for use with fpc to handle arbitrary files. My goal is to check if file extension corresponds with content (e.g. a .gif named .png)…

    Marc Santhoff
    0
  14. multi-platform and filesystem case sensitivity

    what is the recommended way of handling filesystem case sensitivity when users can provide a filename mask for use in processing? i'm not sure what the best or…

    waldo kitty, Bart
    1
  15. Which gdb version to use?

    Since some versions gdb crashes with FPC programs if the "print" command is called with a query of pointer to not existing record fields for example, it triggers an…

    Martin Schreiber, Pierre Free Pascal, Tony Whyman
    8
  16. Size of a partition

    How to get the total size of an unmounted partition in Linux? For example "/dev/sdb1"

    Rainer Stratmann, Bart, David W Noon
    15
  17. When loading a TComponent from file, method Loaded fired but method Loading not.

    Could you please explain this problem? I think that Loading method should be called by streaming system.

    Kiên Nguyễn Tiến Trung, Michael Van Canneyt
    2
  18. Generic: record type restriction

    I need to restrict a generic type to accept specialization only of enum types. In Delphi, I can do that using "T: record", but, when I try to use it in FPC (even using…

    silvioprog, Sven Barth
    1
  19. else and otherwise in a case statement

    I've been doing a bulk replace of 'case..else' to 'case..otherwise' to eliminate possible ambiguities that have bitten me in the past, and have noticed something…

    Mark Morgan Lloyd, Ewald, Howard Page-Clark
    3
  20. compare currency and double

    I have the following code: var val: Currency; res: Double; begin val := 2345.67; res := 1e300; if val >= res then WriteLn('val >=res') else WriteLn('val < res'); end;…

    Xiangrong Fang, Jonas Maebe, Joost van der Sluis
    4
  21. AnsiStrLComp AnsiStrLIComp

    According to the docs AnsiStrLComp treats #0 as normal characters, which sounds as if it does not stop at #0. Does it stop at #0 or does it not?…

    Mattias Gaertner, Jonas Maebe, Michael Van Canneyt
    4
  22. findfirst wildcards...

    how do you process for multiple filemasks? eg: find ts??????.sel and t???.sel for the same processing run ====== snip filemask.pas ====== Program Filemasks; Uses…

    waldo kitty, Bart, Graeme Geldenhuys
    24
  23. node.js-like system using pascal

    Is there anyone out there making node.js-like system using FreePascal? Thank you. -Bee-

    Bee, Michael Van Canneyt
    2
  24. red( clGrayText)

    using -Cr (Range Check) option, red( clGrayText) as example, throw an exception! how should I program "red" (or green, blue and may be some others) functions to avoid…

    Philippe, Mattias Gaertner
    4
  25. Helper type and class fields

    "A helper type may not declare instance data, but class fields are allowed." ( http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi) ). In…

    silvioprog, Sven Barth
    2
  26. -CR option and simplehtmltreeparser

    compiling simplehtmltreeparser with -CR option I get: F:lazaruscomponentsinternettoolsdatasimplehtmltreeparser.pas(591,13) Error: Incompatible type for arg no. 2: Got…

    Philippe
    0
  27. SameValue and +-Infinity

    today I discovered that SameValue(infinity, neginfinity) returns TRUE. Why? It should be FALSE. Or not? Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64…

    Valdas Jankūnas
    0
  28. mORMot

    Discussion elsewhere has mentioned mORMot as a development framework. It claims to work with both Delphi and FPC: is anybody actively using it "in anger", so that I can…

    Mark Morgan Lloyd, Alan Krause
    1