Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2014-03

  1. Free Pascal console programs on Android are easy

    http://turbocontrol.com/gnuroot.htm is a new (unpublished) web page. Feedback appreciated!

    Paul Breneman, Mark Morgan Lloyd, Sandro Cumerlato
    15
  2. Free pascal candidate for project of the month

    FYI: Free Pascal is candidate for SF project of the month april, up against strong candidates as subversion for windows (the server, not tortoise) and smplayer. Note…

    Marco van de Voort, Dennis Poon, Lukasz Sokol
    7
  3. Access fpc libraries with Java ?

    Hello. I try to access fpc libraries with Java. I can access those libraries with: => Python without problems, even callback functions... => fpc programs, of course...…

    fredvs, Alan Krause, Helmut Weber
    21
  4. FPC 2.6.4 for GO32

    Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing. Always I get "No debugger support available". Thank you for your help. Lubomir…

    Lubomír Čabla, Pierre Free Pascal, Tomas Hajny
    12
  5. Enumeration type: FreePascal Vs. Delphi

    A project of mine was forked and adapted to Delphi by a programmer. Now we're working to join both branches. He did change the enumerations, he did use "=" instead of…

    Unknown author
    0
  6. Compiler and RTL unit tests

    A while back I read about how the Delphi community would like the internal Embarcadero unit tests (if they actually exist) be made public. As usual, Embarcadero didn't…

    Graeme Geldenhuys, Michael Schnell, Reinier Olislagers
    2
  7. Some articles on Lazarus/Free Pascal.

    Since many years I have been writing articles about Object Pascal (both in Delphi/Kylix and FPC/Lazarus), as well as some other things. These articles were published -…

    Michael Van Canneyt, Dave Copeland, fredvs
    6
  8. Only test

    Hi. Please discarcd. Just to check that I'm connected again. Antonio --- Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la…

    A. Fortuny
    0
  9. reference counting of multi-dimensional array

    If I have this: var a2: array of array of Integer; i, j: Integer; begin SetLength(a2, 3); for i := 0 to 2 do begin SetLength(a[i], 3); for j := 0 to 2 do a[i][j] := 1;…

    Xiangrong Fang, Jonas Maebe
    1
  10. function mapping to array?

    Is the following possible: type TFunc=function(x: Double): Double; procedure apply(f: TFunc; var x: array of Double); var i: Integer; begin for i := 0 to Length(x) - 1…

    Xiangrong Fang, Jonas Maebe
    1
  11. fpc in symlinked directory

    When I start fpc in a directory containing symlinks the compiler uses the resolved directory, leading to wrong source file names. For example: /tmp/orig/project1.pas…

    Mattias Gaertner, Jonas Maebe, Marc Weustink
    44
  12. Error compile library on Linux.

    Hello. After successfully translate a useful unit into a universal library, i want to do the same with something bigger. I have compile that unit into a Windows library.…

    Fred van Stappen, Ewald, Fabio Luis Girardi
    16
  13. fpmake dependecies

    I'm playing again with fpmake and I struck an issue with it. Probably due to a wrong setup of my packages, but I cannot find a way to resolve it. I keep on getting the…

    Darius Blaszyk, Michael Van Canneyt
    3
  14. Two "double" related question

    I am trying to convert an R program to pascal. Having 2 problems: 1. In R, ln(0) is -Inf (negative infinity) and ln(-1) is NaN, while in FPC (2.6.2), ln(0) is NaN, and…

    Xiangrong Fang, Jonas Maebe
    1
  15. executeprocess help

    This enables a process eg an .exe to be run without using cmd (unlike exec) and if so, I'd like to use it. Can anyone provide one or two simple example lines for using…

    John Lee
    0
  16. TSQLQuery.ApplyUpdates problem with UTF-8

    Is TSQLQuery.AppleUpdate works with UTF8 string field content? I fetched a web page and extracted part of its content and appended it into TSQLQuery record's string…

    Dennis Poon, LacaK, Michael Van Canneyt
    15
  17. XMLWrite looses data

    I'm loading up a XSL file into a TXMLDocument using XMLRead. Up to this point everything seems to be ok, and I can query the DOMNodes without problem. If I then save…

    Graeme Geldenhuys, Daniel Gaspary, Mattias Gaertner
    4
  18. [ANN] Travel Lazarus Brook | REST | JSON

    [ANN] Travel Lazarus Brook | REST | JSON. It is with great pleasure that I bring this news to you. Received from a friend:…

    silvioprog
    0
  19. Bug in enumerators 2.6.4

    Hi List. I think i have found a bug related to enumerators, overridden methods and forward declared classes. Please consider the code listed here:…

    Torsten Bonde Christiansen, Bart, Marco van de Voort
    11
  20. struct definition in C

    What would be the equivalent of the following struct definition in C? typedef struct MyStruct { unsigned a :6; unsigned b :15; unsigned c:11; }MyStruct; I imagine this…

    Darius Blaszyk, Bernd Oppolzer, Jonas Maebe
    8
  21. fppoll/epoll examples/documentation

    This may seem crazy, but I cannot find any documentation or examples on fppoll( ) and the events member of TFdPoll structure. ALso, there is a epoll .*freepascal*.org…

    Unknown author, Ralf Quint
    2
  22. Ipc, start new process, shared memory

    Are there code snippets for starting a new process in the background and then communicate with that process via shared memory?

    Rainer Stratmann
    0
  23. Lazarus better than delphi

    I have been using Delphi 7 forever. I evaluated Delphi xe5 Update 2. Today, I use Lazarus 1.2 and FPC 2.6.2. Lazarus/FPC is just better than Delphi. All development on…

    Unknown author, Dennis Poon, Fabio Luis Girardi
    6
  24. THandle in code that must compile also with Delphi

    FileCreate and FileOpen return THandle with FPC but integer with Delphi2007. Delphi defines THandle as LongWord but for some reason Integer is used instead. With FPC on…

    Juha Manninen, Marco van de Voort, Mark Morgan Lloyd
    7
  25. Linking object file

    I was wondering if it's possible to link FPC object files by using the $Link directive? At least I have troubles in getting this to work and therefore I'm asking here.…

    Darius Blaszyk, Tomas Hajny, Unknown author
    4
  26. Cloning objects?

    Is there a drop-dead simple way to clone an object? I've got a small tree of classes (tBaseProfile, and four descendants of such). Only the descendant classes are…

    Timothy Groves, Andreas Schneider, Howard Page-Clark
    4
  27. Searching Text Files

    I'm writing a little personal program in Lazarus that manages pdf files. One of the things I want to do is search for text/phrases within the pdfs. Has anybody tried to…

    Martin Collins, Mark Morgan Lloyd, Michael Schnell
    3
  28. Dynamic array initialization

    Hello list! Are dynamic arrays initialized with nil after the setlength call? Doc[1] doesn't say a word about that and my tests say yes, they are initialized with nil.…

    Joao Morais, leledumbo
    1
  29. RTL debuginfo on GDB 7.4+ and OSX Mavericks

    Hello list. I've just upgraded to OSX Mavericks. GDB is no longer installed with xcode5 so I downloaded, compiled and installed GDB 7.6.2 myself. I can debug my own…

    Joao Morais, Dmitry Boyarintsev, Jonas Maebe
    5
  30. Library.StringFunction() : PChar => NO

    Hello great fpc people. It is about functions dealing with string inside a library... If i use that kind of function inside the library : It will be the memory manager…

    Fred van Stappen, leledumbo, Reinier Olislagers
    14
  31. dynamic array reference count

    I just want to confirm one thing: var a, b: array of Integer; begin SetLength(a, 100); SetLength(b, 100); a := b; end. Now "a" will point to the same memory block as…

    Xiangrong Fang, Jürgen Hestermann, Michael Schnell
    4
  32. nested inline

    Is nested inline allowed? i.e. will the compiler generate inlined code for the following source: procedure a; inline; begin end; procedure b; inline; begin a; end; if I…

    Xiangrong Fang, leledumbo, Sven Barth
    3
  33. procedure modifiers

    I wonder where should I put procedure modifiers, in the interface section, or implementation section, or both? e.g. interface function test(data: Integer): Integer;…

    Xiangrong Fang, Michael Van Canneyt
    1
  34. Installer (2.6.4 win32) and path issues

    I installed 2.6.4 for win32. I removed the 2.6.4rc1 installation. After that I wanted to rebuild Lazarus, so I did a "make clean all" in Lazarus dir, but got only errors.

    Bart, Marco van de Voort, Reinier Olislagers
    5
  35. TProcess on windows: incompatibility between poUsePipes and InheritHandles:=false

    In order to use poUsePipes, InheritHandles must be true (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms686331%28v=vs.85%29.aspx) This is a limitation of…

    Luca Olivetti, Sven Barth
    4
  36. Elegant way to switch sort mechanism in TSortedCollection?

    I'm working on a project that utilizes a TSortedCollection to help keep items sorted during processing. There is a need to re-sort the collection by different criteria…

    Jim Leonard, Frederic Da Vitoria, Philippe
    11
  37. Request for help

    I'm helping the editor of Blaise Pascal magazine to develop some components for Lazarus & Delphi (for the Leap Motion). We need someone with experience in 3D-rendering…

    Michael Van Canneyt
    0
  38. $LINKLIB MSVCRT on windows/osx

    Hey: Has anybody got a clue how to statically link the windows c run time with lazarus/freepascal on Windows 7/8 x32 or x64? , there are all sorts of references to…

    Unknown author, Dmitry Boyarintsev, Ludo Brands
    11
  39. FPC 2.6.4 release!

    Finally, FPC 2.6.4 has landed. FPC 2.6.4 is an update to 2.6.2 and 2.6.0 that contains most library progress over the 2.6.2. It will probably conclude the 2.6.x branch.…

    Marco van de Voort, Peter Brooks, silvioprog
    2
  40. Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

    Now that OSX Mavericks 10.9 is running full speed, it has broken the {$LINKLIB gcc} compiler directive. {$LINKLIB c} still WORKS. But {$LINKLIB gcc} does not. The reason…

    Unknown author, Jonas Maebe, Mattias Gaertner
    11
  41. FPC for ARMv4

    Hi I have a board running Linux - it reports itself as armv4tl: uname -a Linux phidgetsbc 3.1.6 #3 PREEMPT Fri Jan 6 13:05:50 MST 2012 armv4tl GNU/Linux cat /etc/issue…

    Jon, Jonas Maebe, Sven Barth
    5
  42. Shared memory on various OSes

    When a DLL/so is loaded dynamically by multiple program instances, are globals shared or would this require explicit use of OS-level shared memory? The application is…

    Mark Morgan Lloyd, Michael Van Canneyt
    2
  43. Mantis maintenance

    Not sure, if Mantis is maintained by FPC or Lazarus team (or actually either. I've provided a plugin for it to preserve backtrace formatting.…

    Dmitry Boyarintsev
    0
  44. DBF components are maintained now

    Just wanted to let you know about http://wiki.lazarus.freepascal.org/User_Changes_Trunk#TDBF_unit_deprecation_removed Currently I'm adding test cases to dbtestframework…

    Reinier Olislagers, Attila Kovács, Graeme Geldenhuys
    3
  45. (no subject)

    Hello, guys! Firstly, thank you for such a great project! It's very nice to use it in a study process in a school/university. And now a question :) I have some trouble…

    Barracuda, Jonas Maebe, Sven Barth
    3
  46. For Slackware users

    I wrote some scripts to convert FPC & Lazarus binaries to Slackware packages. If you're interested you can find them to…

    Yann Mérignac
    0
  47. Mirror empty

    The fpc mirror http://www.hu.freepascal.org/ is empty. Who is responsible for it? Mattias

    Mattias Gaertner, Florian Klämpfl, LacaK
    5
  48. 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
  49. Lazarus 1.2 Release

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

    Mattias Gaertner
    0
  50. A linking error in a SDL example

    A friend ask me about the audio playing with SDL. I tried to do an example. As I use Linux, with the following command, I consider all packages neeeded would be…

    luciano de souza, Yann Mérignac
    2