Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2011-05

  1. TProcess InheritHandles has no effect

    According to the documentation InheritHandles only works in windows. However the windows implementation of TProcess.Execute has in the first line FInheritHandles:=true…

    Luca Olivetti
    1
  2. TimSort

      Is there already a TimSort implementation in fpc?   http://en.wikipedia.org/wiki/Timsort   Mattias  

    Mattias Gaertner, Flávio Etrusco, Jonas Maebe
    20
  3. Readline substitute

    Hi! I want to equip a program with a command line and therefore want a powerful and user-friendly input prompt. Currently I use ReadLn(CmdLine); which is not as…

    Johann Glaser, Bernd, Jonas Maebe
    8
  4. JSON - RTTI streaming.

    For those of you that need JSON support: I have committed support for streaming published properties (properties for which RTTI is generated) from objects to JSON and…

    Michael Van Canneyt, Brian Winfrey, Burkhard Carstens
    12
  5. Chrome Browser apps with Native Code

    Do you think FreePascal can be used to compile applications for google chrome browser, such as the following link? http://code.google.com/chrome/nativeclient/ thanks…

    herux, Jonas Maebe, Neil Graham
    2
  6. support for using an activex

    Hi List! I looked around the archives and forum, but I didn't come up with a clear answer. Besides, I'm not expert of the win32 and COM world. If I am given an ActiveX,…

    Roberto Padovani, Felipe Monteiro de Carvalho, Henrik Genssen
    33
  7. why is FPImage dog slow reading jpeg's?

    I wrote this console utility app in 5 minutes. All it is supposed to do, is iterate over *.jpg images (65 at the moment) in a folder (no recursive searches), and…

    Ben, Bart
    1
  8. Request for implementing issue 0017664 - fix included in mantis

    A gentle request - if people are looking at the issue already, consider this message as not sent. I've looked at issue 0017664 (fbembed.dll library not loaded as part of…

    Jim
    0
  9. Why is FPImage dog slow in reading jpeg's?

    I wrote this console utility app in 5 minutes. All it is supposed to do, is iterate over *.jpg images (65 at the moment) in a folder (no recursive searches), and…

    Ben Smith, Felipe Monteiro de Carvalho, Jonas Maebe
    14
  10. Missini graph unit

    Hi, I downloaded fpc-2.4.4.x86_64-linux.tar and installed OK. But the compiler cannot find the Graph unit. Apparently the graph.ppu file is missing. Where can I find it,…

    Elio Fabri, leledumbo, Nikolay Nikolov
    4
  11. English lazarus book available.

    For the interested: I got news from the editor (chairman of the Dutch Pascal User Group) that the Lazarus book "Lazarus Complete Guide" is now available for sale. It can…

    Michael Van Canneyt
    0
  12. Using emulation for native compilation

    Over the last few days I've put a lot of time into setting up up a fairly fast system with various CPU emulators- mostly Qemu but also a couple of others- and getting…

    Mark Morgan Lloyd
    0
  13. read lines at end of file

    Need to read the last 4 lines (txt) of a very large log file 100M bytes, 100k lines or more lots of times - of course I can read through the file in the normal way but…

    John Lee, José Mejuto, Mattias Gaertner
    9
  14. fillword with multidimensional dynamic array.

    Hello How do I fill a multidimensional dynamic array, with fillWord? Var a:array of array of word; m,n:byte; i,j:byte; Begin m:=3; //array 3 x 3 n:=3; SetLength(a,m,n);…

    Luis Fernando Del Aguila Mejía, Jonas Maebe, Ralf A. Quint
    4
  15. Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

    Hello, all I'm writing apache module with fpc. When I compile my program on fpc 2.4.4, Apache terminate immediately. But on fpc 2.2.4, Apache and my module will work…

    Takashi Ishikawa, ABorka, Marco van de Voort
    6
  16. How to get string with target OS and CPU?

    I need friendly name of OS and processor need this for "user-agent" header in http client. Some kind of "Linux x86_64 Ubuntu/11.04" ("Linux x86_64" should be enough).…

    Krzysztof, Jonas Maebe, Mattias Gaertner
    5
  17. Free Pascal 2.4.4 available

    The FPC 2.4.4 release is available from our ftp-servers and sourceforge. This is probably the final release created from the fixes_2_4 branch. Changes that may break…

    Marco van de Voort, Vladimir Zhirov
    4
  18. Re: PChar resize (Anton Shepelev)

    Thanks Mattias and Anton. Ie: When you assign a constant string to a PChar then assigns the address of the string constant. I believed that be created a PChar in the…

    Luis Fernando Del Aguila Mejía, Felipe Monteiro de Carvalho, Howard Page-Clark
    8
  19. FillWord with dynamics array.

    How fill of the same value a dynamic array? {$codepage utf8} Var A,B:array of word; i:integer; Begin SetLength(A,10); SetLength(B,10); FillWord(A[0],2*10,0); //when…

    Luis Fernando Del Aguila Mejía, Jonas Maebe
    2
  20. OPC-DA support

    I don't know if here is the right place to request this, but... sorry if I'm wrong. I'm requesting help to support OPC-DA on PascalSCADA. As the target of PascalSCADA is…

    Unknown author
    1
  21. Examine methods with TypeInfo

    I know how to find published properties with TypeInfo, but how can I find methods? type MyClass = class(TObject) published function Function1(APara: String): LongInt;…

    Michael Fuchs, Jonas Maebe
    2
  22. Suffix Trie implementation, please review

    I've written a unit containing suffix trie implementation. It could be used for: fast string existence search (could be extended with other information if required),…

    leledumbo, Flávio Etrusco
    2
  23. Re: fpc-pascal Digest, Vol 83, Issue 52

    Yes, getmem return NIL, when no more memory is available. SetLength, no return NIL, It is work with Exceptions. My intention was whether it could be done without using…

    Luis Fernando Del Aguila Mejía
    0
  24. fpWeb and html and uri escaping/unescaping elements

    Does fpWeb have any method/function that escape and un-escape html and URI elements ? Ido LINESIP - Opening the source for communication http://www.linesip.com…

    ik, ABorka, José Mejuto
    12
  25. Re: getmem

    Yes something like that. I'm trying to emulate something like this: VarLCad = array[0..2] of ansistring; Begin LCad[0]:='01234'; LCad[1]:='56789';…

    Luis Fernando Del Aguila Mejía, Claudio Lo Gaffo, Jonas Maebe
    2
  26. Record size

    I have a data record ("sVar_typ") compiled with the 2.2.5 arm compiler. It has the size of 32728 byte. Now I try to compile with the 2.4.5 arm compiler it has the size…

    Carsten Bager, Jonas Maebe
    2
  27. Lazarus win32 Break Points

    Quick Question , i am running a copy of lazarus twice from the same directory on 2 different projects.if i set a break point in one project should that breakpoint show…

    Justin Smyth, Martin
    2
  28. Free Pascal 2.4.4 available (fixed links)

    Something went wrong with the download links; the links were still pointing towards the beta. Here are the correct links: ftp://193.224.143.39/pub/fpc/dist/2.4.4/ and…

    Marco van de Voort
    0
  29. Easy install of FPC and Lazarus

    For userfriendly reasons I suggest one directory with all necessary Files in a zip File. Advantages: Easy install, just unzip in a new directory. Everything is separate…

    Rainer Stratmann, Marco van de Voort, Martin
    16
  30. fpWeb and template class

    fpWeb used to have Template class part of the TFPWebModule module. It seems that it was removed from there and no longer exists. Where was it moved to ? Or does the…

    ik, Unknown author
    1
  31. FPC 2.4.2 source

    Hi Maybe I am stupid but I don't know how to download FPC 2.4.2 sources, without using SVN repository. I am testing on Windows and the default installation package does…

    Juha (gmail, Bernd Kreuss, Florian Klämpfl
    33
  32. Testing recent Lazarus with fpc 2.5.1 on x86_64-linux / create fpc-src.rpm

    I wanted to test Lazarus (recent snapshot) with fpc 2.5.1 on x86_64-linux. Therefore I need to build fpc-XXX.rpm and fpc-src-XXX.rpm. I figured out how to bild…

    Johannes Nohl, Mattias Gaertner
    2
  33. PowerPC Linux and endian modes

    Greetings! Wikipedia (http://en.wikipedia.org/wiki/PowerPC#Endian_modes) states: "Most PowerPC chips switch endianness via a bit in the MSR (Machine State Register),…

    Seth Grover, Henry Vermaak, Jonas Maebe
    3
  34. better understanding of fpdoc

    There are several things that I do not understand in fpDoc (maybe because of the usage by Lazarus that is missing few features): 1. Let's say I have a class, enum,…

    ik, Ben, Unknown author
    2
  35. Redirecting input to a child process

    I have been experimenting with redirection of stan- dard I/O of child processes using FreePascal 2.4.2 on Windows. I have succeeded in capturing standard input and…

    Anton Shepelev, Henry Vermaak, Ludo Brands
    36
  36. 64 bit ?

    I have a desktop with a 64bit AMD x4 Phenom processor. I have noticed that FreePascal programs perform worse on this computer then they do on my 32 bit laptop. Integer…

    Terry A. Haimann, leledumbo
    1
  37. URIParser

    I have tried to use the URIParser on a structure like so: ;name=test?header=something That's the most complicated SIP URI according to the RFC (3261). But the record was…

    ik, Ben, Felipe Monteiro de Carvalho
    18
  38. DateTimeToFileDate

    If I do this on a Linux machine (Free Pascal Compiler version 2.4.2 [2010/11/08] for i386) WriteLn(DateTimeToFileDate(Now));…

    Carsten Bager, Ludo Brands
    2
  39. ERROR compile revision 17494 /fixes_2_4

    I updated my FPC to revision 17494, a couple minutes ago. In attachment there is a log of erros. Marcos Douglas

    Marcos Douglas, Marco van de Voort
    4
  40. PDFlib TET - convert using h2pas

    I would like to use the TET[1] in FPC on Windows. There are 2 options: 1- Translate C header to use libtet.dll (I prefer); 2- Use the COM object (TET_com.dll); I can use…

    Marcos Douglas, Felipe Monteiro de Carvalho, Ludo Brands
    14
  41. Fatal error "Executable image size is too big for wince target"

    Hi *.*. We use a recent Lazarus snapshot (Lazarus 0.9.31 r30406 FPC 2.4.3 i386-win32-win32/win64) for developing applications for a Windows Embedded CE 6.0. After…

    Björn Schreiber, Felipe Monteiro de Carvalho, Jonas Maebe
    7
  42. Minimal Sylpheed plugin in FreePascal

    I have tried to create a Windows plugin dll for the Sylpheed e-mail client in FreePascal but couldn't get past a strange side effect: the mere fact of the plugin being…

    Anton Shepelev, Jonas Maebe, Luiz Americo Pereira Camara
    4
  43. (no subject)

    http://sample-resumes-plus.com/wp-content/plugins/akismet/site.html

    Erliansyah Nasution
    0
  44. FPC_PASCAL

    I have a fairly large Pascal program written about 15 years ago. It uses Tools Plus. It is a croquet game. Can I make use of FPC and how do I get it.

    Harry Pillow, Ben
    1
  45. accessing files from a function

    I'd like to put the assign and reset of a text file into a function, and then use the function to return a line from the file, without needing to close the file then re…

    John Lee, Anton Shepelev, Doug Chamberlin
    8
  46. Oberon Day 2011, N. Wirt speaking!

    next week, Friday, 27th May 2011 there will be the Oberon day at the ETH in Zürich Also Niklaus Wirth is speaking so i guess its also interesting here in the freePascal…

    greim, Jeppe Johansen, leledumbo
    3
  47. generics question

    I try this: type TTestGen<T> = class constructor Create(); class function Test(val: T): string; inline; end; function Blah(const val: Integer): string; inline; overload;…

    Adrian Veith, leledumbo, Sven Barth
    4
  48. Macro Processing

    Yesterday I posted an Grammar for a small macro preprocessor with use of parameters to the developer mailing list. It shows up that is difficult to work out that it…

    Joerg Schuelke, leledumbo
    1
  49. Register variables slowing down floating point operations

    Hello. I have written the following program: program a; {$mode objfpc} uses SysUtils; var i: integer; vd: double; t: TDateTime; max: int64;// = 100000000; begin t := Now;

    cobines, Ben, Jonas Maebe
    11
  50. Debugging Win32

    Since upgrading to the lazarus 0.9.31 v30288 x64 ( and win32) i've noticed the debugging is painfully slow , what use to take only a few seconds under 0.9.28 now seems…

    Justin Smyth, Martin
    2