Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-05

  1. timing again

    I posted a question about timing some time a go and got an answer; but let down for a while because other problems required my attention. So, I need a simple func to get…

    spir ☣, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    12
  2. Text relocation in x86 binary lib

    Hi! If I run an application which uses a library developed with FPC on a x86 plattform, the program gets killed by SELinux because of text relocations inside of the…

    Matthias Klumpp, CA Gorski, Florian Klaempfl
    14
  3. <time_fraction>Between bug?

    Try the following code snippet: uses DateUtils; var a,b: TDateTime; i: integer; begin a := EncodeDateTime(2010, 1, 1, 0, 0, 0, 0); for i := 0 to 9 do begin b :=…

    Bee Jay, Jonas Maebe, Marco van de Voort
    9
  4. power?

    // a & b are ints n := a ** b; // error: operator is not overloaded n := power(a,b); // error: identifier not found "power" Conversion to real does not help. How can I…

    spir ☣, Burkhard Carstens, Henry Vermaak
    5
  5. unit export control

    I'm converting a few components, first developped in independant programs, into units. I have 2 issues in the process. -1- internal dependency How can an interface…

    spir ☣, Jonas Maebe, Luca Olivetti
    2
  6. casting back a pointer to original type

    Say I store class instances of various types in a TFPList. All happen to be descendants of same superclass C and each one has a specific method "text". When retrieving…

    spir ☣, Andrew Hall, David Emerson
    11
  7. fpweb fcgi: auto shutdown feature

    After a bit studying fpWeb package, especially the FCGI application, I have a feature request to it. Would you (Joost? Michael?) please add auto shutdown (after some…

    Bee Jay, Horacio Jamilis, Michael Van Canneyt
    10
  8. Comedi Lib Header translation, was: h2pas enum error

    thank you Henry, I check this out. the comedilib.h has a "include comedi.h" statement so I guess I need to translate comedi.h to a unit comedi.pas and include it in…

    Hartmut Eilers, Henry Vermaak, Marc Santhoff
    4
  9. FPC bug or brain bug ?

    I don't understand why compilation of the program below failed in fpc and objfpc mode. In tp and delphi mode it works as expected but in fpc and objfpc mode the compiler…

    Yann Bat, Flávio Etrusco, Frank Peelo
    10
  10. stuck with untyped pointer

    While waiting for more information about how to use "associated objects" with TStringList, I started to implement // lists for names (TString) and values (TFPList). This…

    spir ☣, Alberto Narduzzi, José Mejuto
    16
  11. Re: ISO Standard Pascal I/O

    Me: Jonas: I can live with that, but it would save newcomers a lot of trouble if the documentation were a bit more upfront about what FPC is not. Just saying it…

    Roger Bailey, Michael Van Canneyt
    1
  12. flexible record design

    I'm looking for a "convenient" way to implement a type for kinds of flexible records. "Best" means simple and efficient. A flexible record is a kind of set of name:value…

    spir ☣, David Emerson, Felipe Monteiro de Carvalho
    6
  13. Re: fpc-pascal Digest, Vol 71, Issue 69

    OK, I give up. How do you handle standard input and output files in FPC? When I write something like: nextcharacter := input^ I get "error: 1: Illegal qualifier". Does…

    Roger Bailey, Jonas Maebe, Jürgen Hestermann
    2
  14. $CODEALIGN / Dynamic Arrays

    Does the $CODEALIGN (http://www.freepascal.org/docs-html/prog/progsu9.html) directive influence dynamic array memory layout ? I need an an aligned dynamic array of…

    Helmut Hartl, Jonas Maebe
    1
  15. Anything like TRichView?

    Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) CA

    CA Gorski, Graeme Geldenhuys, Vincent Snijders
    2
  16. Anything like TRichView

    Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) CA

    CA Gorski
    0
  17. CGI file upload

    How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling…

    Vannus, ABorka, Bee Jay
    74
  18. Executable stack in shared library

    Hi! I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has…

    Matthias Klumpp, Jonas Maebe, Tomas Hajny
    12
  19. problem linking when using "cthreads" when cross-compiling for arm

    After doing some research (mostly reading http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM) and experimenting, I am now cross compiling for ARM Linux from…

    Seth Grover, Marco van de Voort
    2
  20. Linking FPC code to a C program

    is it possible to link FPC compiled units to a C program on Linux? I'm not able to figure it out. FPC uses some strange way to name symbols and whatever I try, I always…

    Unknown author, Felipe Monteiro de Carvalho, Jonas Maebe
    7
  21. strtodate on linux

    I've used strtodate to convert 01/02/2010 on windows ok, but it fails with 'Invalid date format' on linux. anyone got any ideas why this happens? - V

    Vannus, ABorka
    2
  22. buildfaq.pdf - about different starting compiler and generated compiler

    I wonder if this sentence from the buildfaq is always relevantt : If I build FPC from the trunk (2.5.1 currently) and set explicitly the FPC binary to the 2.4.1…

    Thierry Bothorel, Marco van de Voort
    1
  23. Installing New Components (0.9.29/2.4.1)

    On investigating this problem in more detail, it seems to be associated with the following circumstances :- 1) It is when trying to install in Lazarus 0.9.29 / FPC 2.4.1…

    Technical
    0
  24. benefit of "cross" string added to compiler name?

    I am not comfortable with make and I was looking for why i get for example "ppcrossarm" if I cross build with a "one line" like make clean all install CROSSINSTALL=1…

    Thierry Bothorel, Jonas Maebe
    2
  25. CGI application

    This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the…

    Vannus, Carsten Bager, Felipe Monteiro de Carvalho
    8
  26. ftp server

    Hi May I know if there are classes to implement an ftp server using fpc on Windows? Warm regards Nataraj

    Nataraj S Narayan, Graeme Geldenhuys, Vannus
    4
  27. Re: fpc-pascal Digest, Vol 71, Issue 50

    thank you for your fast response. Sorry to say, that I don't understand what you suggest. Could you explain it a bit more ? Thanks a lot Hartmut Hartmut Eilers…

    Hartmut Eilers, Henry Vermaak
    1
  28. portable SelectText replacement

    I have the following code which I want to port to Windows, but I have no idea how the functionality of SelectText may be done in Windows. I googled a lot but…

    Hartmut Eilers, Henry Vermaak
    1
  29. Crosscompile FPC

    for one of my projects I want to have a build environment to build the source for the following platforms: Linux ARM; Linux i386, Linux X64 and Windows i386 the…

    Hartmut Eilers
    0
  30. TComponent with Corba Interfaces

    I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown…

    Graeme Geldenhuys, Michael Van Canneyt
    3
  31. sentinels, "marks", enumerations

    [follow-up from the thread about "void"] To favor the use of custom sentinels, I'm thinking at a Mark type. This is not strictly necessary, since the user can build…

    spir ☣
    0
  32. Stack fault under WinCE

    I am getting a stack overflow under Windows CE and I am rather lost about what it could be. Sure it could be an infinite loop, but the app doesn't hang, and the same…

    Felipe Monteiro de Carvalho
    0
  33. Remote Thread creation and function calling

    I have recently worked on a project that required creating a remote thread in another Process. The thread is injected by allocating memory in the target process and…

    Felipe Monteiro de Carvalho
    0
  34. Main thread wait and CheckSynchronize

    I have a seemingly simple question which nevertheless is giving me headaches: I have a main thread which does nothing but [1] execute CheckSynchronize, then [2] check…

    Roland Schaefer, Brad Campbell, Jonas Maebe
    7
  35. What is the lowest MS-DOS version supported by FPC?

    I've tried googling and searching FPC mailing list for information about this one, but I found nothing. I just found in http://www.delorie.com/djgpp/v2faq/faq3_1.html …

    Bihar Anwar, Tomas Hajny, Vinzent Höfler
    4
  36. Execute commands in Windows

    To execute commands in Linux it goes with fpsystem(); Is there a similar function for Windows?

    Rainer Stratmann, Henry Vermaak
    1
  37. fpc-xml: SAX_HTML parsing "script" tags

    Hello Is there any known way to parse html files with: <script> some script with tricky symbols , like "< >" that ruins the parsing </script> tag? I've not found any…

    dmitry boyarintsev, Lee Jenkins
    2
  38. question about class

    I'm trying to transform a manually implemented type, with pseudo-method as funcs/procs, into an fpc "class" type; and facing numerous issue: namely 3 whole pages of…

    spir ☣, Andrew Hall, David Emerson
    2
  39. TAP-Win32

    Anyone knows how to use it from pascal ? I am even willing to pay for a component that simplifies TAP-win32 use.

    Jorge Aldo G. de F. Junior, Felipe Monteiro de Carvalho, José Mejuto
    9
  40. FPC not mentioned on JSON website?

    Can somebody from the FPC team contact the JSON website [http://www.json.org/] so that they can list Free Pascal Compiler's fcl-json package under Delphi/Object Pascal…

    Graeme Geldenhuys, Jonas Maebe, Michael Van Canneyt
    8
  41. a few trivial questions

    * TFPList Is there another way to traverse a list than for i :=0 to (list.count - 1) do ... What about list.high? Also, is it possible to set a list's base index to 1…

    spir ☣, Graeme Geldenhuys, Jonas Maebe
    18
  42. Does FPC has consts of portable OS error codes?

    As the title says. :-) I mean

    Bihar Anwar, Jonas Maebe, leledumbo
    8
  43. annoying gdb bug fixed

    For those of you interested, in the GDB 7.1 release there is a bug which prevents "var" arguments from being "print"ed correctly in GDB. I logged a bug for this…

    Seth Grover, Jonas Maebe, Pierre Muller
    3
  44. Installing Component Packages

    It is a component previous written (and modified by me) for Delphi and transferred to Lazarus. It originally worked on 0.9.26/2.2.2, and still does on one computer. I am…

    Technical
    0
  45. Installing Component Packages (ex Clipboard on WindowsCE)

    Thankyou, Felipe, for your comments concerning multiple versions of Lazarus. I am now using only one (different) version on each computer. This refers to your comments…

    Technical, Felipe Monteiro de Carvalho, Jonas Maebe
    2
  46. class & object

    Below two quotes from the ref manual: http://www.freepascal.org/docs-html/ref/refch6.html#x67-750006 << In the Delphi approach to Object Oriented Programming, everything…

    spir ☣, Michael Van Canneyt, Thierry Coq
    3
  47. UTF8Decode

    When compiling this program http://www.conoce3000.com/Test.pp in Windows receive the following error: Test.pp(4,11) Error: Can't determine which overloaded function to…

    Luis Fernando Del Aguila Mejía, Graeme Geldenhuys, Jonas Maebe
    9
  48. XML Iteration

    This isn't still true for latter version of FPC like 2.4.1, right? http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes "A quick note on navigating the…

    Lee Jenkins, Frank Church, Luiz Americo Pereira Camara
    18
  49. Generic enumerators

    Sample code for someone in need of generic containers with generic enumerators (no biz/ads there):…

    Honza, Anthony Walter, Florian Klaempfl
    3
  50. Clipboard on WindowsCE

    Does anyone know how to activate the clipboard when programming for Windows CE? I can do it OK when programming for Win32 etc, but not for WinCE. The message when the…

    Technical, Felipe Monteiro de Carvalho
    3