Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2014-10

  1. Generic specialization using $mode objfpc

    How to use this code below in mode objfpc?: TMyGeneric<T> = class(TObject) private FValue: T; public property Value: T read FValue write FValue; end; ... var…

    silvioprog, Kiên Nguyễn Tiến Trung, leledumbo
    8
  2. Generics: constructor restriction fail

    Following this article: http://alex.ciobanu.org/?p=51 The compiler does not check the constructor restriction. Try this test: {$mode delphi} TTest = class private //…

    silvioprog, Chriss Kalogeropoulos, Sven Barth
    4
  3. [OT] Generics and Type Constraints sample

    I tried this example (Lazarus 1.3 r46702 FPC 2.7.1 x86_64-linux-gtk 2; FPC from trunk too): http://blogs.teamb.com/craigstuntz/2008/08/29/37832 and got the error:…

    silvioprog, Flávio Etrusco, Sven Barth
    5
  4. Why TSdfDataSet doesn't simply return FCurRec as RecNo?

    TFixedFormatDataSet (ancestor of TSdfDataSet) overrides GetRecNo (correct) but it does a strange contortion instead of simply returning FCurRec: function…

    Luca Olivetti, Joost van der Sluis, Michael Van Canneyt
    11
  5. FPC Heap Management : sub-allocation ?

    Does FPC implement sub-allocation , in which the user program allocates a block of memory from the heap , and only "plays" in that sub-allocated block , such that if…

    Brian, Frederic Da Vitoria, Mark Morgan Lloyd
    7
  6. FileAge and timezone

    The docs of FileAge does not mention if timezone is used or not. http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/fileage.html Is the returned OS time stamp with or…

    Mattias Gaertner, Jürgen Hestermann, Michael Van Canneyt
    4
  7. fgl unit bug in generic class TFPGMap

    I think I found a bug in TFPGMap. Hope some of you can verify it. The bug seems to relate to the binary search used in the method "FIND" but it does not occur for all…

    Dennis Poon, Flávio Etrusco, leledumbo
    5
  8. how do I play mp3 files with Free Pascal?

    I can use the windows MMSystem unit but it only plays .wav file. How do I play .mp3 file? Dennis

    Dennis Poon, Marco van de Voort, Reinier Olislagers
    2
  9. any generic List class other than those in fgl unit?

    The TFPGMap in fgl unit has serious bug in the Find method. I tried but cannot fix it. I am hoping to find a well tested replacement class? Please kindly let me know.…

    Dennis Poon, leledumbo, Reinier Olislagers
    5
  10. fphttpclient and timeout

    Using basically HTTPClient.Get, I did not find time out configuration with fphttpclient. Did I missed it? If not, is there a way to implement it ? Using thread? If not,…

    Philippe, Michael Van Canneyt, silvioprog
    4
  11. section keyword

    I didn't find it in the reference. How does the section keyword work and where is it allowed? const devcfg3: longWord = 3; section '.devcfg3'; Mattias

    Mattias Gaertner, Jonas Maebe
    1
  12. [OT] Is "reference to procedure" implemented in trunk?

    Can I use something like this using FPC from trunk?: http://www.drbob42.com/examines/examinA5.htm Thank you! Silvio Clécio My public projects - github.com/silvioprog

    silvioprog, Joost van der Sluis
    2
  13. MS SQLConn - Possible memory leak in driver (dblib or libiconv2)

    My FPC is 2.6.5 on Windows + SQLServer 2008. I have a big loop. This loop calls a INSERT script (using SQLdb) to insert records at a table. Everything works. I do not…

    Marcos Douglas, LacaK, Reinier Olislagers
    3
  14. warning: link.res contains output sections; did you forget -T?

    Yes, I know this warning can be ignored, and every active member of this list knows it, too. However new users don't know it. Everybody who tries FPC / Lazarus for the…

    Juha Manninen, Jonas Maebe, leledumbo
    6
  15. Synapse TTCPBlockSocket Send and Receive issue

    I need to use TTCPBlockSocket on client side. I need to listen for server messages so I moved TTCPBlockSocket.RecvString(100) to another thread loop. The problem is that…

    Krzysztof
    0
  16. Memory leaks in the oracleconnection.pp unit (fpc-2.6.4/packages/fcl-db/src/sqldb/oracle)

    Hello! I found severe bugs in the current release (2.6.4) of fcl-db oracle connection module leading to memory leaks and Oracle server faults in some situations. I made…

    Попов Алексей, LacaK, Reinier Olislagers
    4
  17. fpGUI Thread-safe

    Is fpGUI running under X11 thread-safe? Thanks Brian View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpGUI-Thread-safe-tp5720361.html Sent…

    Brian, fredvs, Graeme Geldenhuys
    5
  18. FPC 2.8.0 or 3.0.0 schedulling?

    Any news on estimated dates for releasing FPC 2.8.0 or 3.0.0? ----------------- Re: [fpc-pascal] Namespaces Support Michael Van Canneyt Wed, 23 Oct 2013 05:01:33 -0700…

    Roberto Carlos, Graeme Geldenhuys, leledumbo
    2
  19. Lazarus 1.2.6 Release

    The Lazarus team is glad to announce the release of Lazarus 1.2.6. This release was built with fpc 2.6.4. Here is the list of changes for Lazarus and Free Pascal:…

    Mattias Gaertner, Eric Kom
    1
  20. 512bit (or higher) file encryption

    Need to encrypt file with 512bit (or higher) key. Looking at DCPCrypt but seems that none of them can do that. Any advice? Regards

    Krzysztof, Graeme Geldenhuys, José Mejuto
    4
  21. Any Email or News client in TurboVision or FreeVision

    Does anybody know of an email or news (nntp) client written in Turbo Pascal's TurboVision, or in Free Pascal's FreeVision. Any links or screenshots would be very useful.…

    Graeme Geldenhuys, Marco van de Voort
    2
  22. Size limits to name child specialized classes

    Nowadays, using FPC 2.6.4, specialized classes have a size limit on names. The compiler joins the the parent and child class names and when the resultant string reaches…

    luciano de souza, Sven Barth
    2
  23. Trying to register a Windows Service gives error

    I created a relatively simple Windows Service Application using FPC 2.6.4. The application imports CSV data from a monitored folder and updates product tables in a MS…

    Graeme Geldenhuys, Giuliano Colla, Michael Schnell
    9
  24. Instances of interfaces ?

    Section 7.1 Definition in Chapter 7 Interfaces of the FreePascal Language Reference says "Instances of interfaces cannot be created directly: instead, an instance of a…

    Adriaan van Os, Michael Van Canneyt
    2
  25. TIniFile: how to save bool as string?

    When I use the TIniFile to save my configurations, it saves the boolean values as 0 and 1. Is there any way to save these values ​​as string (true/false) instead of…

    silvioprog, Graeme Geldenhuys, JB
    8
  26. Is TFPList thread safe?

    I would like to know if TFPList is thread-safe or not? And if I make a component thread-safe by using critical sections etc. Is the performance penalty noticeable?…

    Xiangrong Fang, Dennis Poon, Jonas Maebe
    17
  27. mpcalc 7.4

    For anyone interested, a stable version 7.4 of mpcalc (unit for multiple-precision floating-point computations) is now available:…

    Unknown author
    0
  28. Syserrormessage, parameter data type

    In my programs I use this code quite often: SysErrorMessage(GetLastError); But recently my program had a range check error which let me have a look at the definiton of…

    Jürgen Hestermann, leledumbo, Marco van de Voort
    12
  29. 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
  30. TCP sample

    Is there any example about how to build a synchronous TCP server using fcl-net? Regards

    Fabrício Srdic
    0
  31. I can't compile gvector.pp in package fcl-stl

    I can't compile following file https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gvector.pp I want to use this unit because fcl-stl in fpc-2.6.4 is…

    Kiên Nguyễn Tiến Trung, Sven Barth
    2
  32. Windows type library files

    In order to generate type library files from Windows (or wine) headers, I built widl <https://www.winehq.org/docs/widl> from wine sources (on Mac OS X). Well, widl…

    Adriaan van Os, Dennis Poon, Sandro Cumerlato
    6
  33. Again: Use of abstract classes

    Someone could inform me if there is an entry in bugtracker with references to this topic? Here in FPC 2.6.4 this code compile well, without erros, warnings etc.: TTest =…

    silvioprog, Ewald
    2
  34. 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
  35. 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