Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2011-03

  1. run pascal programs as scripts

    I would like to execute small pascal programs like normal unix scripts. For example: #!/usr/bin/instantfpc begin writeln('shebang executed'); end. Has anyone already…

    Mattias Gaertner, Darius Blaszyk, Felipe Monteiro de Carvalho
    43
  2. Strange arm-linux cross-compilation errors

    In this thread: http://www.lazarus.freepascal.org/index.php/topic,12585.0.html I though that maybe posting here would help, since the user has some problems with some…

    Felipe Monteiro de Carvalho, herux, Jonas Maebe
    2
  3. TIniFile crash/memory loss

    When you use TIniFile with CacheUpdates := true, then when you free the TIniFile an error can occur if the component was unable to update the changes (in UpdateFile),…

    Bart, DaWorm, José Mejuto
    14
  4. Generics in Delphi mode?

    Hi. I just found out today that generics also work in Free Pascal (and as I understand it, it was even implemented before it was added in delphi :) ). However, the way…

    timveldhuizen, bsquared, Jonas Maebe
    5
  5. Lazarus 0.9.30 released

    The Lazarus team is glad to announce the 0.9.30 release. This release is based on fpc 2.4.2. This release is available for download at the SourceForge download page:…

    Mattias Gaertner, Bernd, ik
    2
  6. calling object pascal object function in c/c++

    I am working on calling object pascal functions from c/c++. I notice that when a unit is compiled into object code, the name of a function is altered in this convention:

    Toan Pham, leledumbo
    3
  7. TDOMElement and multiple attributes

    I want to create a node with multiple attributes. It works by using SetAttribute multiple times but it looks like I cannot specify the order in which the attributes…

    Reimar Grabowski, Flávio Etrusco, Mattias Gaertner
    9
  8. Associate initializer value with array item type

    Hello. Let's say I have a type: TClothingType = (ctJacket, ctPants, ctShirt); and I want to associate it with color: var Colors: array[TClothingType] = (clRed, clBlue,…

    cobines, Jeppe Johansen
    1
  9. SAX XML example

    There is on wiki nice tutorial about XML, but I can't find any example how to use units SAX and SAX_XML. I have very big XML and I must read it partially. Regards.

    Unknown author
    0
  10. Looking for a suitable graphics library/component

    I am seeking for some advice regarding what graphics library to use for a new project. I am aware that the application can be done by drawing lines, points and text…

    Adrian Maier, Anthony Walter, Horacio Jamilis
    5
  11. Using properties in interfaces

    if I understand the documentation correct, this is the only way using a property in an interface: IMyInterface = interface function GetTag: Integer; procedure…

    Michael Fuchs, Sven Barth
    1
  12. Re: Accessing USB HID from Lazarus programs?

    I posted this on the lazarus list but they suggested to send it to the FPC list instead in order to possibly get better answers... On Sun, 20 Mar 2011 10:04:28 -0500, Bo…

    Bo Berglund, Henry Vermaak, Lukasz Sokol
    8
  13. Free Pascal 2.4.4 RC1 available

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

    Marco van de Voort, C Western, Frank Church
    4
  14. FPC 2.4.2 i386 MacOS: Inc broken for Int64's

    my app uses the built-in Inc function to add Int64 variables. Unfortunately, they are treated as UInt32, so the values are truncated as 32 bit values. Wow! That is an…

    Tobias Giesen, Jonas Maebe
    1
  15. Re: com port using prolific driver

    John, any unit that will talk to a "standard" COM port should work - when you plug in the cable, it should enumerate as a COM port - I do this with an FTDI adapter board…

    Gene Buckle, John Lee, Jorge Aldo G. de F. Junior
    5
  16. Converting code from C++ to FP....

    I have a bunch of C++ files containing math processing functions, which I need to convert to pascal. But I have never programmed C++ (only ANSI C some 15 years ago) and I

    Bo Berglund, Aleksa Todorovic, Ingemar Ragnemalm
    10
  17. double dispatch

    Can FPC deal with double-dispatch ? Say you have an object defined as : Type TMyObject = Class Public Procedure DoSomething(Const aObject : TObject); Virtual; End;…

    Jorge Aldo G. de F. Junior, Jonas Maebe, leledumbo
    4
  18. (Unix) serial port handling

    Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data,…

    Mark Morgan Lloyd, greim, Henry Vermaak
    11
  19. Type of file mode variable

    In the file \lazarus\fpc\2.4.3\source\rtl\inc\systemh.inc I found the following definitions: { file input modes } fmClosed = $D7B0; fmInput = $D7B1; fmOutput = $D7B2;…

    Jürgen Hestermann, Jonas Maebe, Michael Van Canneyt
    5
  20. upgrading fpc rpm removes fpc.cfg

    I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc 2.4.0. Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and installed…

    Mattias Gaertner, Jonas Maebe, Luca Olivetti
    2
  21. Thank you FPC team, Lazarus team and all the community

    I wrote my first ("real" or "in production") job using FPC and Lazarus, after more than 10 year working with Delphi. An installer to an old application that no have…

    Marcos Douglas
    0
  22. Function to know if WIN is 32 or 64

    Is there some function to know if the Windows is 32 or 64? Marcos Douglas

    Marcos Douglas, DaWorm, Henry Vermaak
    26
  23. macros

    Some day I saw an example using "macros" on the code. I want to put the compiler version in an "about form"... I remember something like %fpcversion%...…

    Marcos Douglas, Roland Schäfer
    2
  24. Consumer producer unit (donation to fcl)

    i have implemented a small consumer x producer unit (ie: threads that produce or consume tobjects) it is thread safe (based around a tthreadsafequeue with signalling -…

    Jorge Aldo G. de F. Junior, David Mears, Felipe Monteiro de Carvalho
    2
  25. Actor Model implementation in Pascal

    This is my attempt at implementing an actor model in freepascal http://code.google.com/p/pascal-actor-model/ This is an very early code. Any help is appreciated. Every…

    Jorge Aldo G. de F. Junior, Sven Barth
    5
  26. The FPC's LDAP binding support

    I found the LDAP binding support of openldap in the FPC's package directory. I have two questions regarding it: 1. How up to date is the binding ? 2. I could not find…

    ik
    0
  27. wiki page confusion with Ordinal to Word conversion

    http://wiki.freepascal.org/User_Changes_2.4.0#Byte.2FWord.2FLong.2FQwordbool_types Based on this wiki description, If a value of Ord(True) is assigned to say a Word…

    Ben, Jonas Maebe
    2
  28. TThread.Resume

    TThread.Resume is marked deprecated. Where is the comment or documentation what to use now? Mattias

    Mattias Gaertner, Jonas Maebe, Marco van de Voort
    6
  29. Converting 32bit intel asm to Pascal or 64bit at&t asm

    I'm trying to convert the following 32bit asm to pascal so it's portable. Also to 64bit asm. It's from ACS audio component suite. What am I doing wrong? I tested my…

    Andrew Haines, Thomas Schatzl
    5
  30. Converting .m4a to .wav

    Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? Leonardo M.…

    Leonardo M. Ramé, Jonas Maebe, Matt Emson
    3
  31. Mutithreaded book

    I am developing an application that should scale well into those multicore CPUs that we have today, so, basically, i have to use threads. Anybody knows a good book about…

    Jorge Aldo G. de F. Junior
    0
  32. constref question

    The parameter passing mode "constref" ensures that something is passed as reference and never as value, so my question is using something like this: type pmyrec=^myrec;…

    José Mejuto, Jonas Maebe, leledumbo
    4
  33. Read-only global references

    Where a unit exports an instance of an object, what's best practice for making this read-only? I'm referring to the object reference itself here, not properties of the…

    Mark Morgan Lloyd, Aleksa Todorovic, leledumbo
    11
  34. circular reference

    If circular reference not is a good practice (even if to use a implementation section) then I have to put all code, that works together, in the same unit, right? So, I…

    Marcos Douglas, Mattias Gaertner
    2
  35. TBlowfishDecryptStream flaw

    i have a problem with TBlowfishDecryptStream : Try lBuffer := TMemoryStream.Create; lSource := (aObject As TMemoryStream); lSource.Seek(0, soFromBeginning); lCypher :=…

    Jorge Aldo G. de F. Junior, Michael Van Canneyt
    3
  36. SHA1 of a TMemoryStream

    I need to perform a Hash of data stored at a TMemoryStream... But unfortunately, the following program spits out different results if i run it in sucession... Note that…

    Jorge Aldo G. de F. Junior, Marco van de Voort
    2
  37. Free Pascal For Android

    http://alexmogurenko.com/blog/programming/android-building-free-pascal-compiler-for-android/ How can I do this on a Mac OS? Thank you! Lennie De Villiers

    Lennie De Villiers
    0
  38. FPC - Compile To Android (ARM) On Mac

    Has anyone got this right and wiling to share some knowledge? cheers Lennie

    Lennie De Villiers, de_jean_7777, Schindler Karl-Michael
    2
  39. FPC vs AIR

    was having a look at cross-platform stuff and found:- a guy who doesn't seem to know about freepascal.org…

    Vannus
    0
  40. Merging r.16418 to FPC 2.4.4

    Is it possible to merge rev. 16418 from trunk to FPC 2.4.4? http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=16418 cobines

    cobines, Jonas Maebe, Marco van de Voort
    5
  41. Forward type not resolved

    Hi, I'm trying to create a forward declaration for a class, as I use to do in Delphi, but I'm getting "Forward type not resolved". How can I troubleshoot this?. Here's…

    Leonardo M. Ramé, Florian Klaempfl, Jorge Aldo G. de F. Junior
    5
  42. Conversion between ordinals and pointers is not portable

    I have this code: TYPE PRDBRecord =^TRDBRecord; TRDBRecord =PACKED RECORD Content :ARRAY [0..65500] OF BYTE; END; VAR MOffset:INTEGER; p :PByteArray; FData …

    Roland Turcan, Jonas Maebe, Max Vlasov
    3
  43. Standard exceptions

    while porting software from .NET to FreePascal I am looking for some exceptions for recurrent errors. For example: ArgumentException, ArgumentNullException,…

    Michael Fuchs, Jonas Maebe, Marco van de Voort
    8
  44. Fwd: Problem

    To Rocco: the correct address to send messages for the list to is Begin forwarded message:

    Jonas Maebe, Michael Van Canneyt
    1
  45. XHTML writer support in fcl-xml

    Right now, fcl-xml only contains writer for THTMLDocument class from htmlelements unit. There's also another THTMLDocument class in dom_html unit which is used as a base…

    leledumbo
    0