Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2012-04

  1. jsondataset: Memleak

    Please see: http://bugs.freepascal.org/view.php?id=21900 Marcos Douglas

    Marcos Douglas
    0
  2. Compiling from and to memory

    I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have designed a…

    OBones, Florian Klaempfl, Jonas Maebe
    15
  3. How to install another version of fpc?

    I am running linux and already have fpc installed but i want to install side-by-side a newer verson of fpc ... I downloaded the sources did make all && make install…

    Anthony Walter, Jonas Maebe, leledumbo
    2
  4. Error in my mind or typo in sqldbtoolsunit.pas?

    I'm working on improving bufdataset testing in the dbtestframework, documenting the framework a bit more. (Attached FYI my current version of the readme; comments…

    Reinier Olislagers, Ludo Brands
    1
  5. cross compiling - easier than expected - wiki needs update?

    I just thought I kill some time investigating cross compiling from i386-linux to i386-win32 and hada look at the wiki page http://wiki.freepascal.org/Cross_compiling It…

    Bernd, Marco van de Voort, Mattias Gaertner
    5
  6. making FPC more code optimized

    Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC),…

    ik, Florian Klämpfl, Jonas Maebe
    18
  7. Can it map class type as key?

    I'm trying to use template in fpc 2.6.0. I can map class type as value as above code can be compiled. But if I uncomment the declaration of tIS -- map class type as key,…

    ZHANG Dao-yuan, Honza, JC Chu
    10
  8. heaptrc question

    I am experiencing strange heaptrc output can someone please explain what sort of error could trigger this Heap dump by heaptrc unit 6590 memory blocks allocated :…

    Carver Carver, Jonas Maebe, Reinier Olislagers
    3
  9. SQLDB: logging all generated SQL?

    I vaguely remember somebody mentioning SQLDB has the option of dumping to a log all the SQL it sends to the database (in other words: logging all SQL sent to the…

    Reinier Olislagers, LacaK, Ludo Brands
    6
  10. make install changed/broken?

    Has something changed with 'make install'? Instead of copying files it recompiles and fails. Mattias

    Mattias Gaertner, Jonas Maebe
    3
  11. Compilation progress

    Is there a way get progress information output by the compiler while building a project? I tried the -vt option, but I can't figure out a way to parse this and get…

    OBones, Jonas Maebe, Sven Barth
    4
  12. Testing existence of a file at compilation time

    Is it possible to test for the existence of a file, directory or package at compilation time, i.e. {$if exists() or similar? The specific scenario I'm looking at is…

    Mark Morgan Lloyd, Sven Barth
    1
  13. typesafe typecasting

    While translating some headers I have run across the following problem (I am sure had this in different variations many times before already and always lived with it and…

    Bernd, JC Chu
    1
  14. Program without window but messages

    I wanted to write a program that has no window but may show messages to the user. I have lots of such programs written with Virtual Pascal but I am struggling to do the…

    Jürgen Hestermann, Howard Page-Clark, JC Chu
    13
  15. RemoveDir: Error: Identifier not found

    If I hit Alt+Up on "RemoveDir" within my program I am moved to D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) with the function header…

    Jürgen Hestermann, Sven Barth
    2
  16. does disconnected tLSocket auto destroy in lnet

    I'm using tLTcp with tLEventer. I've set tLTcp.eventer to the associated tLEvent object and call tLEvent.callAction to wait for new events. After a socket disconnected,…

    ZHANG Dao-yuan
    1
  17. Sending break on (Windows) serial comms

    Marco, I see you had a StackOverflow question on this a year or so ago. Did you ever get anywhere with it in practice? I'm about to hack a SerBreak() into my…

    Mark Morgan Lloyd, Marco van de Voort
    3
  18. Errors compiling fixes_2.6 on win64: forgot to include dblib for mssqlconn?

    Running fpcup (64 bit) on my Windows machine gives errors with fpc fixes_2.6 (r21000/21001): C:/development/fpc/compiler/ppcx64.exe -Ur -Xs -O2 -n -S2…

    Reinier Olislagers, Jonas Maebe, LacaK
    5
  19. Commercial support for Lazarus/FPC

    Hi all I am considering to subscribe to commercial support in FPC/Lazarus, but I don't have a clear picture what actually support is :) I am looking at…

    denisgolovan, Mattias Gaertner, Sven Barth
    4
  20. Inline assembly using absolute dword ptr

    I'm trying to compile the following code under FreePascal 2.6.0 : function MyGetCurrentThreadId: DWORD; assembler; asm {$IFDEF WIN32} push ecx mov ecx,fs:[dword…

    OBones, Jonas Maebe
    6
  21. header translation question: I need an int sized boolean

    I have this from the GLIB heads: typedef int gint; typedef gint gboolean; Now I need a few packed records with such gboolean types in them. On my i386 I am now just…

    Bernd, David W Noon, Marco van de Voort
    8
  22. Open vs dynamic arrays

    I know this is an area of some confusion, and the more explanations I read the more I'm confused. I've got a procedure like this procedure ClrDebug(const panels: array…

    Mark Morgan Lloyd, cobines, Jonas Maebe
    7
  23. Default font name

    Most of controls (or canvas) have font name "default". How to get exact name of this font? There is GetFontData(Button1.Font.Handle).Name function but it works on QT…

    Krzysztof, Sven Barth
    1
  24. SQLDB GetSchemaInfoSQL for indexes etc?

    In sqldb, this: type TSchemaType = (stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages); is used in the…

    Reinier Olislagers, greim, LacaK
    45
  25. Resolving a local hostnames to an IP address

    I need to resolve a hostname to an IP address, to pass to a minimal telnet implementation that expects that as its parameter. The reason that I'm not using something…

    Mark Morgan Lloyd, Ludo Brands, Marco van de Voort
    8
  26. RGB32 video

    how to generate a RGB32 video to be consumed by, lets say ffmpeg ? i want to programatically generate video in some know format and rgb32 seems like the most simple to…

    Jorge Aldo G. de F. Junior
    0
  27. Converting big-endian signed 16bits values to fpc integer

    I'm dealing with a large number of data coming from an external device. They are big-endian 16 bits signed numbers, which must be converted to integer and to real to…

    Giuliano Colla, Andrew Haines, Jeppe Græsdal Johansen
    6
  28. Heads up: started on MS SQL Server+Sybase ASE support for LazDataDesktop and FPdatadict

    Just to let you know, I've started working on getting support for the new Microsoft SQL Server and Sybase ASE connectors into Lazdatadesktop. For that, I've started…

    Reinier Olislagers
    0
  29. Looking for NSOpenGLView example

    I'm looking for an example of how to use NSOpenGLView. I would like to create a "native" opengl window on Mac. Sofar I have found only some snippets but nothing that…

    Unknown author, Darius Blaszyk, Jonas Maebe
    2
  30. Text matching for configuration files etc.

    I know that there are algorithms which given a text fragment will find the "best fit" from a number of candidates, based on how many substrings have to be deleted or…

    Mark Morgan Lloyd, Juha Manninen, Noa Shiruba
    3
  31. ReadComponentRes() implementation and documentation

    Two problems here: 1) The documentation is very sparse on this method, and the parameters and return type are not documented at all…

    Graeme Geldenhuys
    0
  32. Problems with assigning pointers

    I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1:…

    Unknown author, Alberto Narduzzi, Darius Blaszyk
    9
  33. for FPC JVM users: Small tool to help converting R.java to Pascal

    I've developed a small tool to help converting the autogenerated R.java to Pascal. It's made in a quick and dirty way, but it works. It could be added to build script to…

    leledumbo
    0
  34. [Help] fppkg on Windows

    I get the following error when trying to install “lazmkunit” or “gecko” using fppkg. =========================== C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg…

    Lars Klungseth, leledumbo
    3
  35. compiling jvmbackend

    I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT="-O2 -g…

    ik, Jonas Maebe
    2
  36. Best practices on using classes for subroutine libraries

    When I need a variation in procedures (standalone, not a class or object procedure) I use across my applications, I often find it more convenient to create a copy the…

    Frank Church, leledumbo
    1
  37. Testing shared libraries compiled with FPC/Lazarus under Linux

    Is it possible to test a shared library compiled with Lazarus/FPC under Linux without copying that library to /usr/lib or fiddling with the OS configuration to locate…

    patspiper, Alan Krause, Jonas Maebe
    5
  38. Bug #0021680: Mixup of library imported/exported function names

    The following is related to bug #0021680: The idea is to let libraryB intercept calls to libraryA. 1- How can this be accomplished in Linux? Using ordinals would have…

    patspiper, Jonas Maebe
    2
  39. XML parser

    Hi I have a new job. Now I am looking for a proper XML parser for Delphi, for big XML files. The default Delphi parser, using MS DOM, chokes badly. 4 GB memory is not…

    Juha Manninen, Howard Page-Clark, Marco van de Voort
    6
  40. How to find a directory?

    So the Powers That Be have decided that FSearch should never find a directory. Fantastic. So how *do* I find a directory (for example, to confirm if one exists?)

    Timothy Groves, Leonardo M. Ramé
    2
  41. connect to postgres db with fpc Mac OS X LION

    Hi all I thank you in adavance for your support :-) I can't connect to postgres db in foc /mac osx Liion I get the message fe_sendauth: no password supplied My postgres…

    César Espinoza
    0
  42. Re: XML parser (fwd)

    Mailed to me in person, probably meant for the mailing list. Michael. ---------- Forwarded message ---------- Date: Fri, 6 Apr 2012 13:24:58 +0200 From: David Butler To:…

    Michael Van Canneyt
    0
  43. CGI under Linux using FCL-Web

    I just started to use FPC in a project requiring a Webinterface. When porting the Lazarus/Win32 fpc-web examples (worked fine) to X86/Linux(Ubuntu) and Arm-Linux, I…

    Christian Kranich, leledumbo, Leonardo M. Ramé
    11
  44. tiOPF: automapping for m-n relationships

    I have the following tables in sqlite (in create table statement): CREATE TABLE users ( password varchar(30) ); CREATE TABLE roles ( name varchar(20) ); CREATE TABLE…

    leledumbo, Graeme Geldenhuys
    4
  45. Library with XMLHttpRequest functionality?

    Is there some library in FPC/Lazarus which implements XMLHTTPRequest functionality? Frank Church ======================= http://devblog.brahmancreations.com

    Frank Church, Unknown author
    1
  46. Help: New install problems

    I have installed fpc from sources before but it's been a while and I've forgotten how to get it done, or perhaps something has changed and need some help. When i am…

    Anthony Walter, Jonas Maebe
    3
  47. Re: Fileread function (leledumbo)

    Yes, it is possible? Example, is it correct?: FileWrite(Arch,b,40); // Write 40 bytes FileRead(Arch,b,40); //Read 40 bytes or, is this correct?: FileWrite(Arch,b,40); //…

    Luis Fernando Del Aguila Mejía, Unknown author
    1
  48. MSEide+MSEgui 2.8.2, MSEgit 1.2

    MSEide+MSEgui 2.8.2 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/2.8.2/ http://gitorious.org/mseide-msegui There is a new release…

    Martin Schreiber, Rainer Stratmann
    1
  49. Fileread function

    The FileRead function, can move the file pointer at the beginning, when at the end? Thanks.

    Luis Fernando Del Aguila Mejía, leledumbo
    1
  50. Win64 and currency

    I encounter strange thing under FPC 2.7.1 and Win64 target. Can anybody test this program: ======================== const test: array[0..0] of currency = (-10); var…

    LacaK, Honza, Marco van de Voort
    4