Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2013-11

  1. Cross Compile : treefilteredit.pas(60, 60) Error: Illegal expression

    Environment: Ubuntu 13.10 64bits FPC 2.6.3 - Rev 26119 Lazarus 1.2RC - Rev 43472 When i try compile for i386, i get this: Free Pascal Compiler version 2.6.3 [2013/11/23]…

    Osvaldo Filho, Jonas Maebe, Juha Manninen
    13
  2. subtract longwords with rollover

    How can I subtract two longwords such that when the result becomes negative, it rolls over? A := A - B triggers runtime error 201 when the result is negative. dec (A,B)…

    Klaus Hartnegg, Jonas Maebe, Mark Morgan Lloyd
    8
  3. CRITICAL Bug in Lnet DNSLookup failure problem

    when using lnet to connect to a remote server at DomainName : Port e.g. yahoo.com : 80 in file lCommon.pp line 492: function StrToNetAddr(const IP : String) :…

    Dennis Poon, Mark Morgan Lloyd
    1
  4. Objects in dynamic arrays

    How exactly are instantiated classes treated in an array? Can I copy one into another? And if I unallocate an array member, does it automatically Destroy the object? I…

    Timothy Groves, Andreas Schneider, Jonas Maebe
    7
  5. Bug in AnsiCompareText of cwstring

    When using the cwstring widestringmanager the function AnsiCompareText seems to have a bug. For example: {$mode objfpc}{$H+} uses Classes, SysUtils, cwstring; begin…

    Mattias Gaertner, Jonas Maebe, Martin Schreiber
    5
  6. Is the GIT repository updated?

    In: https://github.com/graemeg/freepascal/commits/master The last commit it: "jmaebe authored 22 days ago". Silvio Clécio My public projects - github.com/silvioprog

    silvioprog, Graeme Geldenhuys, leledumbo
    4
  7. 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
  8. CAB file format

    FPC has a lib to create CAB file format? Marcos Douglas

    Marcos Douglas, Craig Peterson
    3
  9. GetAffinity\SetAffinity

    Good day. There is a need to establish some process affinity using free pascal and ubuntu. Do not tell that on this occasion you can read? Thanks in advance

    Alexey Voychehovich, Brian, Jeppe Græsdal Johansen
    21
  10. FastMM for FPC?

    Hello We found an old link from 2005 about a FastMM port : http://free-pascal-general.1045716.n5.nabble.com/First-Test-of-FastMM4-for-fpc-td2809801.html Is it still…

    Juha Manninen
    0
  11. Is Nested Procedure Types

    I'm wondering if the is nested procedure type is supposed to work {$modeswitch nestedprocvars} Type TMyCallback=procedure(Index:Integer) is nested; I thought 2.6.0 was…

    Andrew Brunner, Jonas Maebe, Sven Barth
    4
  12. Double and LongWord

    Hi This Function works on Intel platforms but when compiled to Arm (Linux) the right side is calculated as a LongWord. Const cSecondsPerDay=86400.0;…

    Carsten Bager, Jonas Maebe
    1
  13. not possible add into class helper overloaded variant of some virtual method

    in actual trunk - fpc 2.7.1 - is not possible to do folloving: unit uStringListHelper; {$mode delphiunicode} interface uses Classes, SysUtils; type { TStringListHelper }

    ko paka, Sven Barth
    2
  14. virtual method and generics

    In my TTree class: https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas I have the following method: function TTree.Load(s: TStream): Integer; var lv,…

    Xiangrong Fang, Sven Barth
    2
  15. Problem building fixes_2_6

    Trying to build 2.6 fixes on x86 with fpcup, Windows, starting with fpc2.6.2 compiler; I get: classes.inc(136,11) Warning: Symbol "Resume" is deprecated…

    Reinier Olislagers, Florian Klämpfl, Marco van de Voort
    7
  16. ibase package

    Hi Folks. I'm a little bit annoyed by a boring specification in the fpc package. When in a program I use the TIBConnection (along witha transaction and a query), the…

    Antonio Fortuny, Michael Van Canneyt, Reinier Olislagers
    8
  17. optionally uses a unit

    Is it possible to optionally use a unit? e.g. unit myunit; uses {$ifexists persist.pas}persist,{$endif} Classes; type TMyClass = class public {$ifexists persist.pas}…

    Xiangrong Fang, Dmitry Boyarintsev, Mark Morgan Lloyd
    4
  18. TBookmark Type Change Status Request

    Does anyone have an update on which release the TBookmark type change from pointer to TBytes is going to be rolled out? I have heard that it will not now be in 2.6.4.…

    Tony Whyman, LacaK, Marco van de Voort
    2
  19. CompareMem documentation

    Documentation here: http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/comparemem.html says that the function returns <0, 0 or >0 while actually it returns a Boolean.…

    Juha Manninen, Vincent Snijders
    2
  20. any good data compression library for Free Pascal?

    the paszlib has bug for large file sizes so I need another one. Thanks. Dennis

    Dennis Poon, Dmitry Boyarintsev
    1
  21. paszlib problem: integer overflow

    I downloaded the Paszlib-sg from http://sagsehome.net/oss/paszlib-sg.php (as suggested by Paszlib freepascal.org wiki). I works fine on my Delphi 5 until I try to…

    Dennis Poon, José Mejuto, Marco van de Voort
    5
  22. generic/enumerator: Internal error 200301231

    I have internal error when I compile the unit (see source below): ~/proj/trunk/core/collection]$ fpc dlist.pas4 dlist.pas4(36,1) Fatal: Internal error 200301231 Fatal:…

    Victor Matuzenko, Sven Barth
    2
  23. Move with pointers to memory

    http://www.freepascal.org/docs-html/rtl/system/move.html I have a working function in assembler wich copys a memory block from sorce to destination. Now I want it to do…

    Rainer Stratmann, Frederic Da Vitoria, leledumbo
    9
  24. use of "inherited" keyword

    Is it OK to use "inherited" in any instance method? i.e. It is OK to do this: procedure TChildClass.DoIt;//override begin inherited DoIt; end; But is it ok to do this:…

    Xiangrong Fang, Sven Barth
    1
  25. The "overload" keyword

    According to http://www.freepascal.org/docs-html/ref/refsu72.html, the overload keyword is mostly optional and for delphi compatiblity only. But on Oct. 27, Sven replied…

    Xiangrong Fang, Sven Barth
    1
  26. "identifier not found" case probelm

    at the moment i have a case where each choice leads off to a procedure. .. looks like this repeat writeln('Main Menu'); writeln('1. New Customer Info'); writeln('2.…

    rambo waz here, Ewald, leledumbo
    5
  27. FPC 2.6.2 for DOS/Go32V2 FP.PAS cannot compile with GDB support

    Attempt to compile IDE from snapshot with GDB: FPC GO32V2 2.6.2 is installed in z:\pp PATH contains Z:\pp\bin\go32v2 Instruction from Tomas Hajny does not work:…

    Lubomír Čabla, Pierre Free Pascal, Tomas Hajny
    6
  28. UPnP Component

    at work, i have a project which needs very limited UPnP capabilities. All it needs, is to open a port and do a port forwarding for a limited period of time closing it…

    Dimitrios Chr. Ioannidis, Dennis Poon, Dmitry Boyarintsev
    4
  29. Proper way to cast dynamic array in watch window?

    Using the FPC console IDE. When I define a typed array with limits, ie.: type tbarray=array[0..1023] of byte; var foo:tbarray; ...I can view the contents of in the…

    Jim Leonard, Jürgen Hestermann
    2
  30. any workable synapse https server (SSL) sample available?

    I downloaded the synapse4.0 but the sample project httpSserver inside does not work. When I pointed the Chrome and Firefox browser to http://192.168.1.4/ firefox…

    Dennis Poon, waldo kitty
    3
  31. FpHttpServer and DaemonApp does not works on Linux

    I'm trying to use a HTTP server with daemon on Linux, but, it does not works. I did a project that is working perfectly well on Windows, but on Linux, although the…

    silvioprog
    2
  32. is there a way to list out all classes defined in a unit during run time?

    I have a unit which I will incrementally add new subclasses of TCommand. At run time, I want to get a list of subclasses of TCommand so that I can compare the where the…

    Dennis Poon, Michael Van Canneyt
    1
  33. Viewing disassembly without call stack?

    When I use the text-based FP CUI and my program crashes, I have the ability to go to a line in the resulting call stack and hit ALT+I to view the disassembly of where it…

    Jim Leonard, Martin
    1
  34. System.FileSize documentation

    "Filesize returns the total number of records in file F. It cannot be invoked with a file of type Text. (under linux and unix, this also means that it cannot be invoked…

    Mark Morgan Lloyd, Marco van de Voort, Tomas Hajny
    4
  35. MSElang, the future compiler for MSEide+MSEgui

    A Wiki about the future compiler has been started: https://sourceforge.net/p/mseide-msegui/wiki/MSElang/ Please join the mailing list…

    Martin Schreiber, Jonas Maebe, Marco van de Voort
    10
  36. Pointer to a const char

    How can I describe a "pointer to a constant char" in FreePascal? For example this C function: int some_func(const char *arg, ...); My guess in FreePascal is this(with…

    Alexander, Antonio Fortuny, Jonas Maebe
    3
  37. Namespaces Support

    I'm new to free-pascal. Will fpc 2.7.x have some namespace implementation/support? Thanks

    Fabrício Srdic, Benito van der Zander, Dmitry Boyarintsev
    110
  38. MorphOS

    I just happened across your group while scanning the internet for topics related to my interests. I used to use Pascal uner Microware OS-9 on the Tandy Color computer…

    Unknown author, Arne Hanssen, Nico Erfurth
    3
  39. Over-zealous Warning about dynamic string initialization

    The following program: program Project1; {$mode objfpc}{$H+} var s:ansistring; begin WriteLn('s <',s,'> always seems to be initialized to '''''); end. produces a Warning…

    Howard Page-Clark, Dmitry Boyarintsev, Jonas Maebe
    3
  40. Powtils: lightwebserver, lightwebserver2 or lightwebserver3?

    I'm needing to create a own HTTPS server. Googling, I found Powtils(*), with three servers: lightwebserver, lightwebserver2 or lightwebserver3. So, which one is…

    silvioprog, Graeme Geldenhuys, John Lee
    15
  41. Re: Re: SqlDB fails under Windows to create a newFirebirddatabase

    I was going to test that as soon as I have access to a Linux/FreeBSD environment again. I'm currently working on a remote system that only has Windows. In the mean time…

    Graeme Geldenhuys
    0