Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-03

  1. fpGUI Toolkit v0.7-rc1 for FPC 2.4

    fpGUI v0.7-rc1 is available --------------------------- An archived source download can be found at the following URL, or the source code could be pulled directly from…

    Graeme Geldenhuys, Adrian Veith, David Emerson
    53
  2. More memory leaks and other problems: request for review of probably stupid mistake

    I'm trying to learn FreePascal by writing a file indexer a la locate and I'm hitting more walls after receiving quick and clear help from Michael Van Canneyt regarding…

    Jim, Flávio Etrusco, José Mejuto
    4
  3. Comedi hardware support

    I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR. ( http://www.comedi.org ) I googled for anything regards that but had no…

    Hartmut Eilers, Alberto Narduzzi, Roland Schaefer
    2
  4. Cmpxchg

    I have been browsing the web somewhat to figure out how I can have access to a cmpxchg function in freepascal. At the momente I found very little information. Some…

    Werner Van Belle, Jonas Maebe
    2
  5. Changes in 2.4.0

    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 After quite a long time of absence from FPC, I decided to pick it up again. One of the first things I stumbled upon was the…

    Unknown author, Jonas Maebe, Michael Van Canneyt
    4
  6. Newbie problems with memory leak and access violation/AV

    Background: Hobby programmer; Microsoft Access VBA/Visual Basic 6/Visual Basic.Net background. I'm a FreePascal newbie but have fiddled with it some time ago. Was…

    Jim, Michael Van Canneyt
    2
  7. Cross compiling: "from linux to Darwin or Mac OS X"

    Torsten Bonde Christiansen, Brad Campbell, Jonas Maebe
    4
  8. Re: stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question

    You're right, it can. The product the company I work for produces is a shared library, and I'm just looking into and making sure that our .dll is usable in as many was…

    Seth Grover
    0
  9. when cross-compiling, "Recompiling Unit..., checksum changed for System"

    i use cross-compiling from win32 to (target)linux... and get this error; "Recompiling BaseUnix, checksum changed for System" i am using this snapshot:…

    Haluk DUMAN, Jonas Maebe
    1
  10. Makefile:135: *** Compiler /home/ik/projects/fpc/fpc/compiler/ppcx64 not found. Stop

    I'm trying to compile svn FPC after few months of not touching it and I have the following error: $ make zipinstall make fpc_zipinstall ZIPTARGET=install…

    ik, Jonas Maebe
    2
  11. var parameters under 64-bit GDB?

    I'm using FPC 2.4.1 with GDB 6.8 under Ubuntu 8.04.2 LTS on a all 64-bit system. All var parameters [even of simple types like Integer, Boolean etc.] show up as memory…

    Graeme Geldenhuys, Flávio Etrusco
    1
  12. DWARF2 or DWARF3 debug info

    I'm using FPC 2.4.1 with GDB 6.8 under Ubuntu 8.04.2 LTS on a all 64-bit system. As far as I understand the preferred debug information format is DWARF instead of STABS.…

    Graeme Geldenhuys, Jonas Maebe
    1
  13. stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question

    I appreciated Henry's comment regarding my last question (generating a .lib file from a FPC-generated for linking with VC++). I ended up using implib…

    Seth Grover, Henry Vermaak, Jeff Wormsley
    2
  14. OT: mySQL Master-Master-Slave replication

    Perhaps it's just that I'm a little bit short of sleep - but I can't find good solution for a problem although I'm shure it should be easy to solve... So apologies for…

    Lukas Gradl
    0
  15. implicitly linking FPC-generated .dll from Visual Studio

    First, let me declare my ignorance of MS development and Visual Studio in general. I've got a FPC-generated .dll file I want to implicitly link with in a Visual Studio…

    Seth Grover, Henry Vermaak
    1
  16. Debugging CGI web apps

    How do others debug CGI web apps written in Object Pascal? Yesterday I spent a significant amount of time debugging a few difficult problems. It took much longer than…

    Graeme Geldenhuys, Michael Van Canneyt
    3
  17. source code UTF8 with BOM problems ?

    Hello, the problem is only linux. The following source code uses UTF8 without BOM, http://www.conoce3000.com/Ejemplo01.pp the compiler compiles ok and the program…

    Luis Fernando Del Aguila Mejía, Jonas Maebe, Mattias Gaertner
    6
  18. XPCOM and freepascal

    I wonder if it's possible to develop extensions (aka Add-Ons) for Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the stuff right now. But the advantage I…

    Johannes Nohl, Michael Van Canneyt
    3
  19. keyboard shortcut issues under Linux and FP IDE

    Anybody know how one can temporarily (for the duration of running the FP IDE) disable the virtual console keyboard shortcuts under Linux? Example of the problem: If I…

    Graeme Geldenhuys
    0
  20. constructor as procvar

    I'd like to pass a constructor as a procvar. Don't know if this is possible. Here is some silly illustrative code that doesn't work: {$mode objfpc} uses classes,…

    David Emerson, Andrew Hall, Florian Klaempfl
    8
  21. When is AnsiString not a good substitute for string?

    I recently posted a question about problems involving the use of string and AnsiString when converting a Delphi program. Are the some situations where substituting…

    Frank Church, Jonas Maebe, Jorge Aldo G. de F. Junior
    4
  22. Strange WinCE Bug

    Who maintains the wince port and the arm port? Some users are experiencing a very wierd bug in wince-arm which happens in pure lcl app or kol app + lnet (no idea what…

    Felipe Monteiro de Carvalho, Bernd Mueller, Graeme Geldenhuys
    5
  23. Fwd: [ANNOUNCEMENT] GDB 7.1 released!

    Begin forwarded message:

    Jonas Maebe, Graeme Geldenhuys
    2
  24. New wiki, ftp and mailing list server planned

    As you might have noticed, the server running the wiki (lazarus and fpc), the mailing lists (lazarus and fpc) and being ftp master (fpc and lazarus snapshots) had some…

    Florian Klaempfl, Felipe Monteiro de Carvalho, Flávio Etrusco
    9
  25. tstringlist.savetostream

    After running tstringlist.savetostream how can I make sure that the buffer has been flushed and data sent successfully? Thx

    Terry A. Haimann, José Mejuto, Marco van de Voort
    6
  26. Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes?

    Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes? Ex.: 2.4.1

    Osvaldo Filho, Doug Chamberlin, Jonas Maebe
    4
  27. Re: Is it save to think default value of untouched string is ''?

    But ShortStrings also store the length in string[0]. If I do a append, I think the string will append to string[1].... So don't assume string are always initialized with…

    lyh1, Jorge Aldo G. de F. Junior
    1
  28. error on compilation

    When I try to compile on my laptop (fedora on a AMD64) with fp I get: fatal: Can't find unit system used by pruebacomentarios What's wrong here? Martín Marqués select…

    Martín Marqués, David Emerson, leledumbo
    2
  29. Error: Illegal qualifier in converting Delphi unit

    I am trying to compile the TVersionInfo component by Anders Melander at http://melander.dk/articles/versioninfo/. It defines the structure below type TTranslationRec =…

    Frank Church, Howard Page-Clark, Marco van de Voort
    4
  30. including libraies ?

    I tried to write a little utility to submit a command to code to do this is as follows: program TestPrg; Uses Classes, Process; Var i: Integer; Cmd, Pre, Post,…

    Terry A. Haimann, Paul Nicholls
    1
  31. modulo of negative dividend

    I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where…

    Martín Marqués, Adriaan van Os, Flávio Etrusco
    2
  32. Floating point miscalculations on PowerPC

    I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's running under Rosetta on an Intel Mac. Simple floating point operations like this result in wrong…

    Tobias Giesen, Jonas Maebe
    1
  33. when cross-compiling, "Recompiling ..., checksum changed for ..."

    i use cross-compiling from win32 to (target)linux... and get this error; "Recompiling BaseUnix, checksum changed for System" *** i read this doc:…

    Haluk DUMAN, Jonas Maebe, leledumbo
    7
  34. Re: properties with getter evaluation in gdb

    After that patch any field anywhere in GDB's Pascal mode becomes case sensitive (and because FPC stores all identifiers in uppercase, that means you have to use…

    Jonas Maebe
    0
  35. syntax of deprecated / with/without semicolon ?

    All I got is http://www.freepascal.org/docs-html/ref/refse5.html it gives this example: So deprecated after a variable, or constant, does NOT have a semicolon. Indeed…

    Martin
    0
  36. Compiling for 64-bit Mac

    I've installed FPC from the fpc-2.4.0.intel-macosx.dmg package on SourceForge, and I'm trying to compile code into a 64-bit program. I can't find the command-line option…

    Rob Kennedy, Jonas Maebe
    1
  37. -Twin32 linker woes

    I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says error: 1: Import library not found…

    Adriaan van Os, cobines, Jonas Maebe
    9
  38. FPC Docs updated

    The documentation has been re-generated and put on the website. the fpc/dist/2.4.0/docs directory on the FTP server contains also a version of the latest docs. They have…

    Michael Van Canneyt, Eduardo, Graeme Geldenhuys
    11
  39. Re: Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.

    Jonas, you are my hero. This was exactly the problem. After adding " SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);…

    Schindler Karl-Michael, Jerry
    2
  40. Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.

    Hi If I use Pa_IsFormatSupported from portaudio with a different sample rate than the default, I get a division by zero error or other arithmetic error. However, it…

    Schindler Karl-Michael, Jonas Maebe
    1
  41. Is it save to think default value of untouched string is ''?

    I have a a program that will read a string and parse the string to some sub-strings in sub routine. I add every character to a local string buffer in sub routine. The…

    lyh1, Bart, Jonas Maebe
    8
  42. Smartlinking public functions

    Hello Developers The system expects an application to implement (export) some functions that are to be linked statically. I'm using [public] modifier: function someFunc:…

    dmitry boyarintsev, Jonas Maebe
    4
  43. Linking statically C code with stdcall functions

    I'm trying to link my program statically with bzip2 library under Win32. The exported functions are declared as stdcall. I can link dynamically by declaring functions…

    cobines, Henry Vermaak, Jonas Maebe
    13
  44. gdb, dwarf, and ansistring

    Given the following example: ---------------------------------------- program project1; {$mode objfpc}{$H+} procedure doit (var s : ansistring); begin s := s + ' ' + s;…

    Seth Grover, Jonas Maebe
    5
  45. installing on RHEL5 (libtinfo)

    I'm running CentOS 5.3 (x86_64), and want to install FPC 2.4 on my machine, preferably from an RPM, but I can't because of a failed dependency on libtinfo. I've found…

    Bruce Bauman, Jonas Maebe, Juha Manninen
    6
  46. Determining procedure's name

    Is there a macro or function that gives the current procedure's name? E.g. procedure TClass.SomeProc; begin writeln(Format('This procedure's name is %s', [THE_MACRO]));…

    Wimpie Nortje, Jonas Maebe, Mattias Gaertner
    3
  47. Serial port parity...

    Is there eny chance to handle the parity bit for serial port communication? I am using a 9 bit communication with a device and I need to control the 9th bit. I tried…

    Mihai Rainer, Henry Vermaak
    1
  48. floating point an FPC

    I've made a small test: if (0.1+0.2) = 0.3 then The only compiler/interpator that actually tells that it equal is FPC. I've tested it using Javascript (in Firefox),…

    ik, Flávio Etrusco, Graeme Geldenhuys
    9
  49. Which regex unit to use?

    There are a few regex units include with FPC and Lazarus, and dozens more available for Delphi (and probably FPC too). Which one is the most well known, or best to use,…

    Graeme Geldenhuys, Joost van der Sluis, Seth Grover
    3
  50. GetEnumerator on Generics

    I'm working on a browser plugin http://code.google.com/p/thefbi/ And I've made a Thefbi Target for Freepascal, The example page shown in the screenshot…

    Neil Graham, Paul Ishenin
    1