Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2013-09

  1. FPC 2.6.2 for DOS/Go32V2 FP.EXE cannot run a second time

    FPC 2.6.2 for DOS/Go32V2 There is the fatal IDE unstability in FPC 2.6.2 under pure DOS. IDE almost always starts only first time (after installation or reboot). I start…

    Lubomír Čabla, Marco van de Voort, Pierre Free Pascal
    15
  2. DOS compiler wiki page: please review

    I decided to start a page for the DOS compiler - as more details become available we can hopefully collect them there. As usual: additions/corrections welcome,…

    Reinier Olislagers, greim, Nikolay Nikolov
    5
  3. Re: build a compiler for GO32v2 under Windows 8 (or 7)

    (first time I am using the mail list ... I may do it wrong!) I have a quite big program (now with more than 200.000 lines), first build with TP7. For example it accesses…

    Philippe, Lukasz Sokol, Marco van de Voort
    17
  4. How to stop a HttpApp via request?

    I'm trying to stop a HTTP server via request. My code is: http://pastebin.com/503S2Nin (or demo in attached) But it returns: "Could not accept a client connection on…

    silvioprog, DaWorm, Graeme Geldenhuys
    13
  5. does Advanced Record constructor automatically zero all the memory space of that record?

    if not, is there a clean and easy way to initialize the entire record memory space to zeros e.g. constructor TMyRecord.Create(TheValue : Integer); begin FillChar(self,…

    Dennis Poon, Dmitry Boyarintsev, Sven Barth
    7
  6. read cells contents from .xls file

    File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine & don't want to fight with the complexities…

    John Lee, Felipe Monteiro de Carvalho, Reinier Olislagers
    11
  7. GUI confusion

    Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really…

    Patrick, Ben Smith, Fred van Stappen
    21
  8. how to directly access field/record value of TBufDataSet?

    Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? At this stage, I only need to read the…

    Dennis Poon, LacaK, Marcos Douglas
    11
  9. how to speed up lazarus compilation and debugging

    I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make…

    Dennis Poon, Graeme Geldenhuys, Martin
    12
  10. sizeof(Enumerated type in Delphi 5) sizeof(The same type in FPC)

    var G : TAutoRefreshFlag; //where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault); sizeof(G) returns 1 in FPC if defined type TAutoRefreshFlag = (arNone,…

    Dennis Poon, Jonas Maebe
    1
  11. property TField.AutoGenerateValue missing in 2.6.2

    I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume…

    Dennis Poon, Michael Van Canneyt
    3
  12. Status of UTF8

    I wanted to get the status of WideString support. Specifically Multi-lingual (Ansi/UTF8 strings) using Threads. I noticed that FPC is now automatically converting…

    Andrew Brunner, Jonas Maebe, Michael Schnell
    3
  13. class inheritance and type incompatibility

    I have the following program: 1 program test; 2 {$mode objfpc}{$H+} 3 uses tree; 4 type 5 TIntTree = class(specialize TTree<Integer>) 6 public 7 function Clone:…

    Xiangrong Fang, Sven Barth
    20
  14. SSE instructions

    Are there any plans to add support for SSE intrinsic instructions, similar to MMX?

    August Oktobar, Florian Klämpfl
    1
  15. generic class helper and class references

    While playing with generics (ref. class inheritance and type incompatibility), I have an idea to use "generic class helper" to overcome the problem that generic methods…

    Xiangrong Fang, Sven Barth
    1
  16. Constants and proc types

    why I cannot compile this (FPC 2.7.1) type tproc_type=procedure; procedure xxx; begin end; procedure yyy; begin end; const type_list:array [0..1]of…

    August Oktobar, Jonas Maebe
    1
  17. MSEide+MSEgui 3.0

    MSEide+MSEgui version 3.0 has been released: http://sourceforge.net/projects/mseide-msegui/ Have a lot of fun! Martin

    Martin Schreiber, Mattias Gaertner
    2
  18. TIP: fcl-web [trunk] usage with FPC 2.6.2

    I've been in a private conversation with Michael van Canneyt about fcl-web changes. He was kind enough to oblige with my requests. In due time those changes should make…

    Graeme Geldenhuys, Michael Van Canneyt, silvioprog
    3
  19. StrUtils.RomanToInt oddities

    RomanToInt acceps rather ludicrous values: RomanToInt('MDCLXVIVXLDM') = 2209 RomanToInt('IIIIM') = 1002 //calculated as 3 + (1000-1) Both examples represent invalid…

    Bart, Alberto Narduzzi, DaWorm
    47
  20. where is the sqlite3.so located in debian?

    In debian, I have already apt-get install sqlite3 and I can execute the command sqlite3 freely. I know it is located in /usr/bin/ but I cannot find sqlite3.so to passed…

    Dennis Poon, Michael Van Canneyt
    2
  21. RFD: CardDAV support library for FreePascal, call for ideas

    since I have not found anything on CardDAV related/written in/for FreePascal/Lazarus, (haven't googled with Delphi keyword thou) I'd like to send out some smoke signals,…

    Lukasz Sokol, Daniel Gaspary, Michael Van Canneyt
    16
  22. Memory leak in PascalScript

    Can you help me to fix this issue?: https://github.com/remobjects/pascalscript/issues/61 Thank you! Silvio Clécio My public projects - github.com/silvioprog

    silvioprog
    0
  23. record byte alignment

    I wonder what is the byte alignment of a NON-packed record? Is it always 4-byte, or 4-byte on 32-bit platform, 8-byte or 64-bit platform? Xiangrong

    Xiangrong Fang, leledumbo
    1
  24. Incompatible type for generics?

    I wrote a TTree generic class, the code is here: https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas While using this class, I encountered the…

    Xiangrong Fang, Sven Barth
    8
  25. RTTI Attributes

    I did some google searching which turned up very little so I decided to ask my question here. What is the current status of custom RTTI attributes in fpc trunk? Fot…

    Anthony Walter, Sven Barth
    1
  26. Re: Problems reading some of the messages from this mailing list

    From: "Tomas Hajny" So I can't do anything, can I? Unfortunatelly there are more users that sends their e-mail that way, specially chinese ones. Thanks. Guillermo…

    Guillermo Martínez, Philippe, Unknown author
    2
  27. Re: Problems reading some of the messages from this mailing list

    Sorry, Philippe, but I can't read your messages. :(

    Guillermo Martínez, Graeme Geldenhuys, Sven Barth
    2
  28. FPC happily eats wrong parameters

    When calling "fpc -d foo test.pas" there are two mistakes: First the -d parameter is missing a value, which fpc silently ignores. And second there are two files to…

    Mattias Gaertner, Jonas Maebe, Sven Barth
    5
  29. Is it possible to know the data type of a specialized generics class?

    say, I have a class TTree<T>; in the destructor of that class, is it possible to know the actual type of T? I want to do things like: generic TTree<T> = class public…

    Xiangrong Fang, Sven Barth
    4
  30. Socket error messages

    How does one convert from the numeric value returned by SocketError to the name of the error (specifically, to e.g. EsockEINVAL rather than EsysEINVAL, i.e. to be in…

    Mark Morgan Lloyd, Michael Van Canneyt
    3
  31. function param and TVarRec

    If you declare this: procedure proc(param: array of const); Then you can pass any type of varaible to param, however, only in an array, such as proc([1, 2]); Is it…

    Xiangrong Fang, Michael Van Canneyt
    3
  32. Problems reading some of the messages from this mailing list

    I'm receiving some of the messages from this mailing list coding in an odd format: A block of characters and digits without any sense. For example, the one I quoted at…

    Guillermo Martínez, Sven Barth, Tomas Hajny
    3
  33. FPCUnit test + raise E;

    1) I have a code like that: procedure TghSQLConnector.Connect; begin try FLib.Connect; except on E: Exception do DoOnException(E); end; end;…

    Marcos Douglas, Graeme Geldenhuys, Sven Barth
    12
  34. Clone a instance of object

    I have objects (classes) derived from base one TBaseObject = class(TObject) public constructor Create; virtual; function Clone:TBaseObject; end; TMyObject =…

    Zaher Dirkey, Frederic Da Vitoria, Graeme Geldenhuys
    22
  35. Nested comments

    I realized FPC supports nested {} comments by default. SynPdf, a Synopse PDF engine http://synopse.info/fossil/wiki?name=PDF+Engine has '{' characters inside comments…

    Juha Manninen, Michael Van Canneyt, Sven Barth
    4
  36. bridging an C++ shared library statically

    I need to use a C++ so file in FreePascal. I have written a C wrapper for it, which successfully connected to Pascal. Now my question is, can I use the $linklib…

    Xiangrong Fang, Mattias Gaertner, Michael Schnell
    8
  37. represent data string in hex?

    i have a static array of strings that i need to fill as hex bytes... i can do this in decimal but it would be easier to convert other data if i can do it in hex since…

    Unknown author, Bart, patspiper
    11
  38. Bug in $linklib?

    I use $linklib to link my fpc program with a C++ so file. I found that the $linklib directive does NOT conform with ld specification. This is what I did and found:…

    Xiangrong Fang, Jonas Maebe
    1
  39. FPCUP Windows now has Go32V2 cross compiling support

    Recent posts have lead me to look again at my FPC/Lazarus downloader/compiler fpcup [1] to see if I could get cross compiling going from win64 or win64 to Go32v2. This…

    Reinier Olislagers, Marco van de Voort, Tomas Hajny
    4
  40. lnet for TCP daemon

    Is it feasible to use lnet for a simple TCP daemon on Linux, i.e. wait for a connection on a predefined port, read as much data as is available, repeat? And if so, what…

    Mark Morgan Lloyd, Dennis Poon, Graeme Geldenhuys
    52
  41. Error linking with C code

    I am writing pascal wrapper for a C library called "CTP", which is used in future trading. My project is here: https://github.com/xrfang/CTPas Compiling the interface…

    Xiangrong Fang, Michael Van Canneyt
    4
  42. Generic TFPGList<Record Type> gives me compiler error: Operator is not overloaded

    I have this: uses fgl; Type RScene=record ID : Word; Name, Category : String; end; TSceneList=specialize TFPGList<RScene>; The error is: Operator is not overloaded:…

    Dennis Poon, leledumbo, Sven Barth
    6
  43. FPC GO32 2.6.2 wrong result from SecondsBetween

    I am doing something wrong? When I encode the date and time then for SecondsBetween I get 59 instead of 60 and for MilliSecondsBetween also. When I encode only time then…

    Lubomír Čabla, Bart, Tomas Hajny
    5
  44. Object constructor

    Could anyone please explain this: 5.4 Constructors and destructors <http://www.freepascal.org/docs-html/ref/ref.html#QQ2-64-77> As can be seen in the syntax diagram for…

    Xiangrong Fang, Florian Klämpfl, Frederic Da Vitoria
    5
  45. fpc 2.6.3 building i386 crosscompiler fails

    Hi! Tried to build the current svn of FPC 2.6.3 (svn Revision 25507) on my Linux X86_64-box. I did: make distclean make all FPC=<Current2.6.3Compiler> sudo make install…

    Lukas Gradl, patspiper
    1
  46. Parser bug or what?

    Can anybody tell me whether I stepped on a bug or I am just forgetting some Set / Enum property? I made a Set to iterate with For..in, but I accidentally used a Dot…

    Daniel Gaspary, Paul Ishenin, Sven Barth
    4
  47. Get empty memory quickly or... an empty file

    I'm working on implementing zip64 support and trying to test things by compressing large files or streams using FPC's zip code. Currently using this to get a huge…

    Reinier Olislagers, Bart, Ewald
    9
  48. returning a generic object?

    I have this generic class: type generic TTree<T> = class private FItems: TList; ... ... public Data: T; ... ... function FirstChild: TTree; ... ... end; function…

    Xiangrong Fang, leledumbo, Sven Barth
    5
  49. DoDirSeparators and special filenames on Windows

    This is a folowup off a discussion in LazarusDev mailinglist. It concerns "sanitizing" filenames on the Windows platform. The Windows API for handling filenames in most…

    Bart, Bernd Oppolzer, Henry Vermaak
    41
  50. weird compile error message

    Could anyone explain the error in attached image? Thanks a lot.

    Xiangrong Fang, leledumbo, Sven Barth
    8