Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2014-09

  1. Wraper for libpciaccess ?

    Does anyone know of an FPC wrapper for the library libpciaccess ? Thanks in advance Brian View this message in context:…

    Brian
    1
  2. Free Pascal Directories

    Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number…

    Brian, fredvs, Graeme Geldenhuys
    45
  3. Reproducible code: DLL calling Firebird crashes

    Apparently my crashes in a dll that use Firebird have to do with initialization sections in my business layer creating a single instance of my db layer. Distilled…

    Reinier Olislagers, José Mejuto, Marco van de Voort
    25
  4. how do I get Run Time info from a published method?

    say for example: type TmyClass = class published procedure Something (sender : Tobject);virtual; end; var myClass : TmyClass; then somewhere…

    Dennis Poon, Flávio Etrusco
    2
  5. fpcup: FPC trunk 64-bit for Windows

    I downloaded fpcup64.exe from https://bitbucket.org/reiniero/fpcup/downloads After installation everything works well, but the FPC version is 2.6.5. How to update it to…

    Juha Manninen, Michael Thompson, Reinier Olislagers
    5
  6. Internal error 200706094

    Hi! I have a large project and it compiles under 32 bits cpu, but doesn't under 64 bits. Here is a minimal problematic part:…

    Victor Matuzenko, leledumbo, waldo kitty
    2
  7. Is it possible to use top directory of subtree with -Fu -Fi -Fl options?

    (I just registered in this list, so I don’t know if this question has come up before, and the list archives do not seem seem to a search capability.) I have a long…

    Unknown author, leledumbo, Tony Papadimitriou
    4
  8. DLL calling Firebird 2: crashes at the end

    After hopefully getting parameter passing fixed (I hope, thanks Mark), I'm still facing this problem: dll using Firebird crashes on Windows and Linux Using a dummy db…

    Reinier Olislagers, Graeme Geldenhuys, Mark Morgan Lloyd
    13
  9. DLL calling Firebird: slow and crashes at the end

    DLL creation newbie here; Windows; x86 FPC trunk. Going with the FPC programmer's guide, I wrote a DLL that looks up address data in a Firebird embedded db. Managed to…

    Reinier Olislagers, Mark Morgan Lloyd
    7
  10. JSON Parser to tree view

    I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code…

    ik, Luiz Americo Pereira Camara, Michael Van Canneyt
    4
  11. is it possible to kill a thread from within fpc?

    I want to kill a thread created by my fpc program (not killing the entire process). I have to use an external win32 dll. I am already calling it from a separate thread…

    Dennis Poon, Jonas Maebe, Mark Morgan Lloyd
    3
  12. Hack for C-like macro functions — will it work in future?

    As we all know, C preprocessor allows function-like macros, including ones with empty expansion. They can be very convenient for things that you'll want to disable…

    Роман, Constantine Yannakopoulos, Florian Klämpfl
    7
  13. Commandline to compile projects with generics

    I don't use Lazarus, but only Freepascal. Untill the generics advent, I used to compile my projects with the following commandline: fpc progname.pp However, using…

    luciano de souza, leledumbo, Sven Barth
    4
  14. Persistent lists to save records

    Sometimes, I want only to save a simple file of records. The first approach is record files, handled with reset, read, write and close of CRT unit. However, thereis an…

    luciano de souza, leledumbo
    2
  15. Freepascal templating engines with logical structures

    I Know two templating engines for Freepascal: FPTemplate e JTemplate. Both can be successfully used for html construction. But they presents the same aspect: only…

    luciano de souza, ABorka, gabor
    4
  16. TDomNode to text and/or document

    I have a TDomNode (laz2_dom, but I guess it should be the same for all implementations). Is it possible to get a TXMLDocument from it? I tried: lDoc :=…

    Felipe Monteiro de Carvalho, Daniel Gaspary, Vojtěch Čihák
    3
  17. Lists of tuples

    Assuming that a tuple is a sequence of fields, accessible by position or name. Assuming that a list of tuples may significantly exceed available primary storage, and…

    Mark Morgan Lloyd
    0
  18. Is is impossible to extend a generic class in fpc 2..6.4?

    Is it impossible to extend a generic class? I tried to extend a generic class "TFPGMap" in fpl unit. its original definition is: generic TFPGMap<TKey, TData> =…

    Dennis Poon, Sven Barth
    2
  19. Optimal number of threads for SMP

    If my application needs SPEED, i.e. take full advantage of CPU capabilities, and the application has no I/O operation at all (neither disk nor network), it seems no need…

    Xiangrong Fang, Bernd, Graeme Geldenhuys
    11
  20. Mapping Cairo pixmap to FPC Bitmap and back

    Could anyone more knowledgeable than me point me in the right direction to find how a Cairo pixmap maps into a FPC Bitmap, and possibly to some existing code for doing…

    Giuliano Colla, luiz americo pereira camara
    2
  21. key-value engine for FPC

    Is there any good performance Key-Value storage engine written in free pascal, or can be linked with FPC application? I need an embedded storage engine with good…

    Xiangrong Fang, Sven Barth, Unknown author
    3
  22. PostMessage vs. QueueAsyncCall

    In a previous email asking about PostMessage, Michael suggested I used QueueAsyncCall instead, because although it's OK to use PostMessage, but it is considered a…

    Xiangrong Fang, Mattias Gaertner, Michael Schnell
    2
  23. Random thread lockup. QueueAsyncCall??

    I am writing my "prime finder" app to understand how thread synchronization works. I tried two methods (critical section and rtlevent), both have problem. For example…

    Xiangrong Fang
    1
  24. ReadXMLFile in fcl-xml package

    I use ReadXMLFile from fcl-xml package to read XML file in UTF-8 encoding. Then I parse Nodes and use TextContent property which is string in system encoding ... but I…

    LacaK, Mattias Gaertner
    1
  25. with statement using mulltiple objects

    According to the docs the with statement when used with mulltiple objects only works with the last parameter. The statement With A,B,C,D do Statement; is equivalent to…

    vfclists ., Bernd Oppolzer, Ched
    59
  26. how to implement a RTD server (COM Server) for windows

    Window's DDE protocol is too old and the new one is called RTD. I want to implement such an RTD server for Excel client to connect to. Is there any examples of…

    Dennis Poon
    0
  27. EpikTimer: maximum elapsed seconds

    I would like to know the maximum number of seconds EpikTimer can count. I put a program running for over 24 hours, but epiktimer told me only about less than 2000…

    Xiangrong Fang
    0
  28. console gdb in mac

    I'm trying to debug lcl-cocoa, but the debugger in the IDE is not helping (not stopping in breakpoints inside the LCL, can't read variable names, etc...) So I moved to…

    Felipe Monteiro de Carvalho, Jonas Maebe, Joost van der Sluis
    6
  29. return 8 byte of return as function result via register

    I am trying to use an external C++ dll and also privide call back functions to this dll to call back. However, the dll requires my functions to return 8 byte of 'struct'…

    Dennis Poon, leledumbo, Michael Schnell
    3
  30. Imagemagick: magickwand doesn't convert to TIFF 1 bit

    (Earlier posted on forum) See subject - I've posted this on stackoverflow http://stackoverflow.com/questions/25719495/magickwand-conversion-to-tiffccitt-group-4-compressi…

    Reinier Olislagers, José Mejuto
    3
  31. Fastest way of drawing 2D graphs

    I am new in FPC and want to understand the correct(fastest) methods when drawing 2D graphics. The task is simple but extensive: to draw about 200 polylines with…

    Hunter1972, Graeme Geldenhuys, Marco van de Voort
    6
  32. detect CPU cores

    Is there a platform independent (specifically Windows and Linux) way to detect cores and hyper-threads of the CPU? I am writing a calculation intensive app and would…

    Xiangrong Fang, Dmitry Boyarintsev, Marco van de Voort
    12
  33. where to find documentation on fgl unit?

    I googled and people said there isn't any. Anyone knows? Dennis

    Dennis Poon, Michael Van Canneyt
    4
  34. cthread and cmem

    which one should be the *first* unit to use? cthread or cmem? Thanks! Xiangrong

    Xiangrong Fang, Marco van de Voort
    1
  35. Overloading functions

    My understanding is that functions cannot be overloaded based on the return type, i.e. you can't have two functions with the same name and parameters which differ only…

    Mark Morgan Lloyd, leledumbo
    1
  36. Unhandled Exception

    I have an intermittant exception in my Lazarus app (Access violation) My app also uses a freepascal library - I think the problem is within it Can anybody suggest the…

    Steve Gatenby, Dennis Poon
    2
  37. RegExpr - replace

    I'm using RegExpr to parse some parts, just SOME parts, of a HTML and works perfectly. But, in one case I need identify a "pattern" to reuse using new "values". Please,…

    Marcos Douglas, leledumbo
    3
  38. Handling virtual abstract method in case of generics

    I am having trouble with the following code: generic TVector<T> = class type DataType = array of T; private //... protected //... public //... end; generic…

    Xiangrong Fang, Sven Barth
    1
  39. freeBSD and GetProcedureAddress() ?

    Hello everybody. Hum, i try to dynamically load (and run) some freeBSD libraries with a fpc-freeBSD-appliction. For testing, i use some library included in /usr/lib (so…

    fredvs, Marco van de Voort, Reinier Olislagers
    6
  40. Improved array initialization in Delphi XE7

    Hello together! Just today I've read that Delphi XE7 has introduced an improved array initialization and even in a way that I already planned to introduce it myself in…

    Sven Barth, Dennis Poon
    1
  41. FreeBSD implementation of clock_gettime(), clock_settime() and clock_getres()

    I've attached a patch in Mantis for the above. http://mantis.freepascal.org/view.php?id=26671 Description: ------------------ Attached is a patch for a FreeBSD…

    Graeme Geldenhuys
    0
  42. utilizing multicore

    How can I programming using FPC to make use of multiple cpu cores? Just use TThread? Thanks! Xiangrong

    Xiangrong Fang, Michael Van Canneyt
    1
  43. Fast CRC functions?

    We have an old function for calculating CRC like: function CalcCRC(const Str: String): Cardinal; var Len, i, CRCVal: Cardinal; Begin Len := Length(Str); CRCVal :=…

    Juha Manninen, Bruno Krayenbuhl, Graeme Geldenhuys
    13