Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2014-01

  1. Generic String Functions

    What is the relation between Generic Functions and (static) DXE String encoding schemes ? Can you (e.g.) do a (silly) Generic Function that takes two strings of any (but…

    Michael Schnell, Marco van de Voort, Sven Barth
    29
  2. fp universal library ?

    Hello everybody ;-) I have developed a fp-wrapper, uos, who links to the best audio open-source libraries: This main fp-wrapper uses other fp-wrappers who link to those…

    Fred van Stappen, Christo, Dmitry Boyarintsev
    35
  3. overload question (variant vs enum subrange)

    TFoo1 is a sub range of FFoo And it seems to match both TFoo and variant. No other type seems to be bothered by variant. Also variant is the only type, that I found…

    Martin Frb
    1
  4. TThread.Suspend

    First question: is Start an accurate replacement for Resume, or can it only be used to start a thread created in the suspended state? Second question: now that Suspend…

    Mark Morgan Lloyd, Marco van de Voort, Michael Schnell
    7
  5. Use environment variables in configuration file?

    hinst, Michael Van Canneyt
    4
  6. c structs and pascal interfaces

    I want to use c "interfaces" exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. Here's an example of an exported…

    Andrew Haines, Jonas Maebe
    2
  7. FPCUnit and threads

    FPCUnit has support for threads test? If yes, do you have an example? Marcos Douglas

    Marcos Douglas, Michael Van Canneyt
    1
  8. ExtractStrings skips empty string parts?

    Conforms issue #16043: "ExtractStrings in the Classes unit skips over empty text. For example: "AAA,BBB,,CCC" is converted to: "AAA" "BBB" "CCC" I was expecting: "AAA"…

    silvioprog, Frederic Da Vitoria, Michael Van Canneyt
    7
  9. Does TBufDataSet support Blob or memo field?

    I created a TMemoField in TBufDataSet but no matter I do: 1) Field.asString := 'some value' or 2) Field.LoadFromStream(someStream). Afterwards, this F.AsString always…

    Dennis Poon, LacaK
    6
  10. Formating JSON outputs

    JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: program test;…

    luciano de souza, Michael Van Canneyt, Sven Barth
    2
  11. best method: multiple three state options in a decision tree

    what is the best method of coding a decision tree with options that have three states and all options are additive? clarification: i have a situation with 5 (at this…

    waldo kitty, Jürgen Hestermann, Lukasz Sokol
    13
  12. Memory leak on TFPGInterfacedObjectList

    Hello list. Whenever I add interfaced objects to a TFPGInterfacedObjectList, those objects apparently add two references, while release only one when the list is cleaned…

    Joao Morais, Marco van de Voort
    2
  13. Pure FPC ?

    Hello. Does it exist a option to compile fpc without Delphi compatibility ? If no, what do you think about that ? I know, it will be lot of work (like create a…

    fredvs, Fred van Stappen, hinst
    15
  14. [ARM-Android] Safe values for -Cp and -Cf

    In case I would like to have at least 2011 devices as minimum targets, what are the safe values for them? Are -CpARMv6 -CfSOFT enough? Or either could be made better?…

    leledumbo
    0
  15. Test, please ignore

    Florian Klaempfl
    0
  16. how to pass a procedure address and execute it?

    i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call…

    waldo kitty, Ewald, Jim Leonard
    11
  17. FPC trunk missing include file due to recent httpd24 change?

    Got this compiling trunk in fpcup: [1] Perhaps a forgotten file in commit r26573 michael * Patch from Dennis (Bug ID 25534) to add some APR functions to the interface…

    Reinier Olislagers, Michael Van Canneyt
    1
  18. [PATCH] TUploadedFile: some improvements

    Please see in: http://bugs.freepascal.org/view.php?id=25583 Thank you! Silvio Clécio My public projects - github.com/silvioprog

    silvioprog
    0
  19. Strange message about mixed signed expression

    I always wondered why I get a compiler message for the following code snipped: ---------------------------------------------------------------------------- function…

    Jürgen Hestermann, Florian Klämpfl, Frederic Da Vitoria
    10
  20. Include trunk fpcres location in fpc.cfg paths?

    I'm trying to get fpcup to natively compile FPC trunk+Lazarus on ARMHF and finally getting somewhere.... In the Lazarus part however I get lazbuild.lpr(1689) Error:…

    Reinier Olislagers, Jonas Maebe
    2
  21. Winsock problems on trunk: rtl-extra?

    FPC trunk x86, windows. Warning: fiddling newb alert. I have a unit httpclient that apparently uses winsock2: 3rdparty\httpclient.pas(0,0) Fatal: Can not find unit…

    Reinier Olislagers, Sven Barth
    2
  22. Adding files to a tar file

    This code should add all the files of a directory in a tar file. program e01; {$mode objfpc}{$H+} uses libtar, sysutils; var archive: TTarWriter; search: TSearchRec;…

    luciano de souza, Flávio Etrusco, waldo kitty
    3
  23. Can Delphi load a small function of a shared lib written in Free Pascal 2.6.2?

    On Windows, I'm trying to serialize an object to JSON in Delphi 7, using FPC functions linked in a shared lib. I'm sendind a small demo in attached. To test it is very…

    silvioprog, hinst, Michael Van Canneyt
    6
  24. Optimisation : X+X or 2*X or X*2 ?

    The multiplication in floating arthmetic units is usualy know as being slower than the addition. So, have I interest to code X+X, 2*X or X*2 when using reals (mainly…

    Ched, Charles Edouard Des Vastes-Vignes, Mark Morgan Lloyd
    8
  25. [fcl-web] [fphttpserver] what should pathinfo contain?

    I recently has a problem with Brook where every request except default fails and when I debug, I see that pathinfo always has the same content as host. Is this correct?…

    leledumbo
    0
  26. CPPClass Documentation?

    This morning, I saw on fpc-devel a message titled `CPPClass`, which made me wonder if this keyword means what its name implies. Sadly though, there is not much…

    Ewald, Michael Van Canneyt, Sven Barth
    4
  27. windows.GetProcAddress() vs DynLibs.GetProcAddress()

    Hello. I have a external dll. In Windows i can access perfectly the procedures with GetProcAddress() if i use Windows unit. If i use DynLibs unit, prog crash when i try…

    Fred van Stappen, Ewald, hinst
    59
  28. DecimalSeparator automatic change ?

    I have strange problem, I have application on Windows 2012 Server, where is set locale to Slovak (DecimalSeparator is comma) In my application in DataModuleCreate I…

    LacaK, Michael Van Canneyt
    2
  29. minor glitch in phrasing of rarely seen compiler warning

    I recently wrote code that produced this Warning ... Warning: compiler switches aren't supported in \ styled comments Should this not read as follows? Warning: compiler…

    Howard Page-Clark
    0
  30. Re: ARM Linux crosscompiler: compiles but... executable gives segmentation fault

    I guess not, when I remember correctly this has already been repaired for armv6m. The problem for me is that .Lj9 is defined as a negative number. As a consequence r13…

    Michael Ring, Jeppe Græsdal Johansen, Koenraad Lelong
    10
  31. Linking C library

    I'm trying to link a C library to my pascal app. From the messages I understand that I forgot to link in some additional library. However I cannot find which one that…

    Darius Blaszyk, Marco van de Voort
    1
  32. respawn a daemon in Linux

    Hi Linux Experts. Since years I am running an fpc program as a kind of daemon on a PC Linux server. I simply defined a "respawn" line in /etc/inittab and with any start…

    Michael Schnell, Mark Morgan Lloyd, Michael Van Canneyt
    18
  33. ARM Linux crosscompiler: compiles but... executable gives segmentation fault

    For the Dutch among us: de dag die je wist dat zou komen... Thanks to earlier help I got to build an ARM Linux cross compiler module in fpcup which even compiles fpcup…

    Reinier Olislagers, Florian Klämpfl, Michael Ring
    14
  34. Profiling ARM targets

    What is the recommended way to profile FPC applications run on ARM targets in light of the error message: Fatal: Option "-pg" is not, or not yet, supported on the…

    Bruce Tulloch, Jonas Maebe
    2
  35. Re: ARM Linux crosscompiler: compiles but... executable gives segmentation fault

    Might be related to the mla/mls optimization which somehow has been enabled even though it's still broken ----- Reply message ----- Fra: "Reinier Olislagers" Dato: man.,…

    Jeppe Græsdal Johansen
    0
  36. invalid floating point

    Running win32 fpc 2.7.1 10/01/2014 Compiling with no -v options.I get An unhandled exception occurred at $0043C670:37 EInvalidOp: Invalid floating point operation…

    John Lee
    0
  37. fpc build breaks since 26398

    Hi Looks like since 26398 rev. fpc cannot be built. It fails with following when running "make all". classes.pp(56) Warning: Implicit uses of Variants unit Fatal: Can't…

    denisgolovan, Marco van de Voort, Mattias Gaertner
    4
  38. Documentation, syntax diagrams

    Today I found this type definition in some FreePascal sources: TypeReal =type Double; I wondered what the second “type” keyword means here (I have never seen this…

    Jürgen Hestermann, Constantine Yannakopoulos, Howard Page-Clark
    29
  39. Efficient millisecond timestamp

    What's the most efficient and portable way of getting a millisecond timestamp, relative to any ancient epoch? I find TimeStampToMSecs(DateTimeToTimeStamp(Now)) hard to…

    Mark Morgan Lloyd, Graeme Geldenhuys, Michael Schnell
    11
  40. Compiled resource file search path

    Hi Could anybody give a hint on which fpc option to use to force compiler search .res files in some directory? I've added -vt switch and it shows that the only file name…

    denisgolovan, leledumbo, Paul Ishenin
    5
  41. Load .NET dll (or bootstrap CLR to be precise) from FPC

    I'm writing a web app hosting several tasks in FPC, however one of the task is calling a function residing in a .NET dll. I've made a flat C interface for the dll (so…

    leledumbo, Dmitry Boyarintsev, hinst
    9
  42. UTF8 codepage for file in trunk: codepage constant names?

    First, thanks to all involved in documenting the existing FPC trunk Unicode situation on the wiki. Exactly the kind of docs I was looking for! I'm trying to avoid…

    Reinier Olislagers, Jonas Maebe, Michael Van Canneyt
    9
  43. Ansi version of string functions

    I would like to know what is the difference between AnsiStrscan and strscan, or, generically, the Ansi* functions versus non-ansi versions? Thanks a lot. Xiangrong

    Xiangrong Fang, Jonas Maebe
    1
  44. Is it just me or... trunk cross compile failure on arm-linux

    Working on my arm-linux cross compiler (which used to at least build a compiler etc), I currently hit this with fpc trunk:…

    Reinier Olislagers, Florian Klämpfl, Pierre Free Pascal
    8
  45. gtree - Freeing a nil Root without error

    gtree.TTree type has the following code: constructor TTree.Create; begin FRoot := nil; end; destructor TTree.Destroy; begin FRoot.Free; end; How is possible then that…

    Daniel Gaspary, leledumbo, Marco van de Voort
    5
  46. Trunk Win64 compilation problems: objects.ppu - commit 26398?

    Hitting compilation problems on trunk with fpcup. cp.exe: C:/development/fpctrunk/rtl/units/x86_64-win64/objects.ppu: No such file or directory make.exe[4]: ***…

    Reinier Olislagers, Marco van de Voort
    2
  47. Checking assignment compatibility

    Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = TypeOf(result)); which- as…

    Mark Morgan Lloyd, Jonas Maebe, Michael Van Canneyt
    6
  48. how to initialize a SearchRec var?

    understanding that SearchRec has different formats for different OS targets, we've tried to use fillchar to initialize it to an empty record... unfortunately that does…

    waldo kitty, Bart, Florian Klämpfl
    22
  49. Free Pascal 2.6.4-rc1 released!

    Hello We have placed the first release candidate of the Free Pascal Compiler version 2.6.4 on our ftp servers. You can help improve the upcoming 2.6.4 release by…

    Marco van de Voort, Bart, Ched
    30
  50. Boolean types

    What is assignment-compatible with a bytebool etc.? My reading of the manual suggested that it should be possible to assign numeric zero or non-zero, but fPB1L: bytebool;

    Mark Morgan Lloyd, leledumbo, Sven Barth
    6