Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2011-08

  1. Redirecting heap trace output to stdout

    The only available function for dumping heap trace output is DumpHeap, which outputs to stderr. However, it's problematic to use it in a web environment, because web…

    leledumbo, Bart, Graeme Geldenhuys
    9
  2. Working Free Pascal android JNI example

    I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…

    Benjamin Jan Alexander Rosseaux, Felipe Monteiro de Carvalho, Florian Klämpfl
    42
  3. FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

    I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3. Before update, I ran 'make distclean'. Console output: [snip] Start building package…

    Marcos Douglas, Florian Klämpfl, Marco van de Voort
    13
  4. Can't get error messages or anything with F12

    I'm running 2.4.0 and can't get error messages or anything from the F12 Compiler messages key. What am I doing wrong?

    John Youngquist
    1
  5. Funambol/syncml and fpc

    Has anyone used funambol/syncml libraries or an FPC equivalent to talk the syncml protocol? I've got a Firebird address database that I would like to sync some day using…

    Reinier Olislagers
    0
  6. FP IDE - jump to implementation

    Is there a keyboard shortcut for FP IDE (text IDE included with FPC) to jump from the interface section to the implementation section of a method. Like Delphi or…

    Graeme Geldenhuys, Jonas Maebe, Marco van de Voort
    4
  7. FP IDE keyboard shortcuts don't work under Linux

    I'm using Linux (ubuntu 8.04.4) with FP IDE (text mode ide). I went through the "learn keys" dialog and it detected all the keys I pressed. Yet when I'm in a source code…

    Graeme Geldenhuys, Florian Klämpfl
    3
  8. New Dispose and FreeMem and objects

    Hi is the following allowed or will it cause problems: type PObj = ^TObj; TObj = object constructor Init; end; var Obj : PObj; begin Obj := new(PObj, Init);…

    Andrew Haines, Jonas Maebe
    3
  9. FPC i386 and x86_64 using the same source

    I want to use a single source for i386 and x86_64 in the FPC as well as Lazarus. So, I downloaded a clean and fixes_2_6 and ran make x64 without 'install' parameter. I…

    Marcos Douglas, Den Jean, Graeme Geldenhuys
    10
  10. make install

    For developers that use FPC sources from SVN, like me, I ask: 1. There are some advantage to use 'make install' to compile FPC? Which? 2. There are some advantage to…

    Marcos Douglas, Tomas Hajny
    2
  11. Strange issue with threads

    While I was testing an unrelated issue, I discovered this: under windows, with fpc 2.2.4, I try to start 10000 thread (I know it's absurd but it's just a test) and have…

    Luca Olivetti, Jonas Maebe, rzbhatti
    7
  12. Division by Zero

    WriteLn(FloatToStr(100 / 0)); This code prints on the screen "+Inf", but I think it should be "NaN". Is this a bug or a special case in computer arithmetic? thx Michael

    Michael Fuchs, Andreas Schneider
    2
  13. Is such memory statistics possible?

    reading the recent discussion about lazarus memory consumption, I thought about collecting some statistics. The idea is similar to some disk utilities that collects and…

    Max Vlasov, Jonas Maebe, Ludo Brands
    23
  14. Suggestions on array allocation pattern/rules of thumb?

    In Lazarus I found (pseudo)some code like this: procedure DoSomething(...) var v_Results: PInteger; v_ResultCount: Integer; begin v_Result := nil; PrepareData(...,…

    Flávio Etrusco
    0
  15. TTimeStamp and TBCD properties of a class cannot published?

    I am developing a new app using a persistence framework initially developed for Delphi. The following code doesn't compile: published property AsTimeStamp: TTimeStamp…

    Gerard Visent
    0
  16. fpmake exception

    Hello While building fpc on my arm netbook, I found this crash in fpmake: EAccessViolation : Access violation $00027448 FIXPATH, line 1737 of src/fpmkunit.pp $00039E24…

    Henry Vermaak, Vincent Snijders
    3
  17. Virtual inline methods

    ZeelandNet Webmail I'm porting a piece of code from C++ and there they use virtual inline methods. I tried it in FPC but it accepts either virtual OR inline methods. Is…

    Unknown author, Darius Blaszyk, Jonas Maebe
    4
  18. random numbers negative

    I have a doubt. With the random function, Can you generate random numbers negative? Begin randomize; Writeln (random (-127)) / / 0> = n> -127 End. thanks.

    Luis Fernando Del Aguila Mejía, Felipe Monteiro de Carvalho, Lukasz Sokol
    5
  19. Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset

    Update: includes first stab at Delphi Clientdataset. Please test with various datatypes as I haven't been able to map all of them... Hi list (& Michael Van Canneyt ;),…

    Reinier Olislagers, Felipe Monteiro de Carvalho, Ludo Brands
    38
  20. Non-standard baud rates in OS X | IOSSIOSPEED IOCTL

    Apple have define an IOCTL (since Tiger) called IOSSIOSPEED which facilitates non-standard baud rates. They publish a C example which explains it:…

    Bruce Tulloch
    1
  21. Assigning value to ftVariant datatype & varbytes - still stuck

    Free Pascal Compiler version 2.5.1 [2011/08/04] for i386 While improving my fcl-db XML export code, I'm testing with ftVariant types in a bufdataset: FieldDef :=…

    Reinier Olislagers, Ludo Brands, Marco van de Voort
    31
  22. ftGuid displaytext & output

    While trying to export dataset data to XML, I use this for ftGUID fields: FNode := Foutputdoc.CreateTextNode(Utf8decode(GUIDToString(TGuid(EF.Field.Value)))); This works…

    Reinier Olislagers, Ludo Brands
    2
  23. Using "array of xxx" in function call, Delphi compatibility

    Hi While reading a bug report I made the following experiment with Delphi 2009 and then with Lazarus + FPC 2.4.4. TMainMenu.Items is of type TMenuItem. TMenuItem has…

    Juha Manninen, Jonas Maebe, Ludo Brands
    7
  24. Explicit encoding of LF in XML

    Looking at multiline support of text/string cells for export to Excel XML format. My code, such as: TDOMElement(FieldNode).SetAttribute('ss:Type', 'String'); FNode :=…

    Reinier Olislagers, Ludo Brands
    3
  25. XMLXSDExport: line ending in Excel cells

    I've been refactoring the XMLXSDExport code and am now busy fixing some bugs based on testing. I'd appreciate your input. In Excel text fields, you can generate a line…

    Reinier Olislagers, Unknown author
    2
  26. Should Lazarus and FPC release library updates separately from product updates?

    Whenever updates are made it is difficult to tell whether they are due to updates or fixes in the libraries, ie FCL, LCL etc or the product ie the Lazarus IDE and the…

    Frank Church, Jonas Maebe
    1
  27. The fpOpen call on a serial port blocks on a Mac. Why?

    I am using the latest synaser (007.005.002) from the synapse library which works just fine with (USB) serial ports on Linux and Windows but Mac OSX 10.6 it is proving…

    Bruce Tulloch, Henry Vermaak
    2
  28. Where's my OSX window dressing?

    I'm new to OSX so bear with me. Something has changed but I can't tell what. The consequence is that my Lazarus/FPC generated OSX applications are now missing their…

    Bruce Tulloch, Jonas Maebe
    2
  29. Patch to add GLX 1.4 support

    For people working with new OpenGL features: I just submitted a patch to upgrade our GLX unit to GLX 1.4, add some new GLX extensions, and add comfortable functions to…

    Michalis Kamburelis
    0
  30. Linking generics with long names with STABS gives Undefined Symbol

    Hello. I have the following program: program atest; {$mode objfpc}{$H+} uses Classes, SysUtils, fgl; type TMyClass = class end;…

    cobines
    0
  31. timer_create on linux

    I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). It was a lcl program, but I narrowed it to a console…

    Max Vlasov, Helmut Hartl, Jonas Maebe
    11
  32. Quitting simplehttpserver

    ZeelandNet Webmail I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but…

    Unknown author
    1
  33. FreePascal as an embedded language in Firebird: possible and desirable?

    Hi FreePascal and Firebird people, (Cross-posted to the FPC and Firebird Development mailing lists) 1. Background ============= For the upcoming Firebird 3.0 database…

    Jim, Jonas Maebe, Marco van de Voort
    7
  34. Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

    Is anyone on the list doing this? If so, how did you set it up? The information on the FPC wiki and elsewhere in the lists is woefully out of date. Many thanks, Bruce.

    Bruce Tulloch, Causal Lists, Felipe Monteiro de Carvalho
    15
  35. Suggested fix for problem make install trunk FPC: trailing backslash in directory specification

    Just tried updating FPC sources and compiling (32 bit) on Windows Vista x64 and got an error and a solution.…

    Reinier Olislagers
    0
  36. {$R in arm-linux

    Is {$R something.lfm} supported in arm-linux? I am getting these errors: Hint: Start of reading config file /home/felipe/.fpc.cfg Hint: Start of reading config file…

    Felipe Monteiro de Carvalho, Ludo Brands
    2
  37. What are the changes between FPC 2.4.4 and 2.4.5?

    What are the changes between FPC 2.4.4 and 2.4.5? I haven't seen the announcement on 2.4.5. Is 2.4.5 for bug fixes, additional library facilities or both? Frank Church…

    Frank Church, leledumbo
    1
  38. Extended LazUpdater available: cross-platform install of SVN/Git FPC/Lazarus

    I've extended LazUpdater. This program allows you to download and compile a subversion or git version of FreePascal and Lazarus in an easy way, without fiddling with…

    Reinier Olislagers
    0
  39. [Semi-OT] How to get remote Git revision number (or last update date) using FPC+git executable

    I'm working on expanding the LazUpdater tool, so it can download and compile an entire working installation of FPC&Lazarus from scratch on Windows. (It downloads…

    Reinier Olislagers, Graeme
    2
  40. FreeVision usable in a client/server database application?

    I'm looking into converting a half-finished small timekeeping/billing application of mine from .Net to Lazarus/Freepascal. It runs on SQL Server 2008. I'm thinking about…

    Reinier Olislagers, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    8
  41. web app and application persistency

    This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is…

    Felipe Monteiro de Carvalho, Andrew Brunner, Graeme Geldenhuys
    17
  42. FPImage and WebP support

    Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ - Graeme - fpGUI Toolkit - a cross-platform GUI toolkit using…

    Graeme Geldenhuys, Ludo Brands, Marco van de Voort
    6
  43. x86-64 vs x86_64 vs x64

    I searched the FPC Programmer's Guide and Users Guide, and nowhere is there a definitional of description explaining the difference. So here is to anybody that knows:…

    Graeme Geldenhuys, Jonas Maebe, Marco van de Voort
    2
  44. Best optimizations for Intel Quad Core CPU

    I know when deploying an application, it is always best to be conservative with the compiler optimization options - thus your application can run on most CPU's out there…

    Graeme Geldenhuys
    0
  45. Trouble setting/getting ftVarBytes field data in TBufDataset

    I've got trouble finding out how to fill and retrieve data for a ftVarBytes field in a TBufDataset. .AsString doesn't seem to work well - if I fill it with the string…

    Reinier Olislagers, Ludo Brands, Marco van de Voort
    4
  46. Is there a way to create a Firebird embedded database programmatically?

    When using the Firebird embedded database, it's nice to be able to create the database using only FreePascal/Lazarus. Is there a way to do this, e.g. using the SQLScript…

    Reinier Olislagers, Michael Van Canneyt, Tony Whyman
    12
  47. Unicode output on console works for me on Linux, not on Windows

    (Reposted from the forum) I tried to output Unicode text to console on English Windows Vista (using Lucida Console font, which shows Greek and Cyrillic characters).…

    Reinier Olislagers, Jonas Maebe, Marcos Douglas
    4
  48. How to use tilog from tiopf2?

    Does anyone know how to use this? I tryed googling, but didn't have much luck ... Felipe Monteiro de Carvalho

    Felipe Monteiro de Carvalho
    0
  49. sdlutils on linux 64 bits

    I was trying to run the example from [1], but I have noticed fpcmake from sdl package does not compile sdlutils for my environment, Linux (ubuntu 11.04) 64 bits.…

    Daniel Gaspary, Jonas Maebe
    1
  50. Proper way to assign data to fields & documentation

    (Reposted from the forum; I think I might actually get a response here ;) While writing a test program with TBufDataset, I'm trying to create a dataset with as many…

    Reinier Olislagers
    0