Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-12

  1. Windows on ARM, how fast it can be implemented?

    If this news is right http://www.bloomberg.com/news/2010-12-21/microsoft-is-said-to-announce-version-of-windows-for-arm-chips-at-ces-show.html There will be ARM Win32 in…

    Max Vlasov, Florian Klämpfl, Marco van de Voort
    20
  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 programs in Android without JNI

    There was already a previous thread about Android apps with JNI, so I thought I should start one for discussing non-JNI apps, which means that I am really running…

    Felipe Monteiro de Carvalho, Andrew Haines, Florian Klämpfl
    14
  4. The new Delphi 2010 RTTI

    Delphi 2010 has changed the RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476)…

    Thierry Coq, Alex Shishkin, Anthony Walter
    52
  5. Sin function

    according to docs/reference sin function should print 0.0 when Writeln (Sin(Pi):0:1); but, with fpc 2.4.0 and 2.4.2 (x86) I've get "-0.0", such a result is not entirely…

    faber, Ingemar Ragnemalm, Ivo Steinmann
    5
  6. Lifetime of a database (PostgreSQL) connection

    I've just taken our name server down for maintenance, and noted that a db-aware app I'd left running ground to a halt despite the fact that it was only activating…

    Mark Morgan Lloyd, Michael Van Canneyt
    4
  7. Moving callbackfunctions to class

    GLut defines callback functions, one of them is the display function, which is defined as: TGlutVoidCallback = procedure; cdecl; This is set by calling…

    Darius Blaszyk, Felipe Monteiro de Carvalho, Honza
    18
  8. TEventLog rewrite the log file

    I've started using the TEventLog class and it seems to rewrite any existed content of the log file instead of append it. The code uses fmCreate, so I do not understand…

    ik, Michael Van Canneyt
    3
  9. Unicode strings

    Hi What I have understood so far: WideString uses UTF16 encoding. It is managed by Windows and so is not reference counted by Delphi or FPC under Windows. However it is…

    Juha Manninen, Jonas Maebe, Marco van de Voort
    8
  10. constant records as default parameters

    I'd like to use a constant record as a default parameter. Is there some way to do this? Here's my use case: type lt_ints = record left, top : longint; end; const lt_zero…

    David Emerson, Howard Page-Clark
    2
  11. commutative operators

    suppose I define an operator: operator + (a: one_type; b: another_type) : one_type; Is there any way to specify that it should be "commutative", so I don't have to…

    David Emerson, Honza, Jetcheng Chu
    7
  12. Progress indication while linking

    On low-spec systems (for example Linux on ARM with 32Mb or Solaris on SPARC with 128Mb) linking a large project such as the Lazarus IDE can take several days. Is it…

    Mark Morgan Lloyd, Jonas Maebe, Tomas Hajny
    11
  13. Is there an HMAC digest implementation that works with the FCL?

    Is there an HMAC digest implementation that works with the FCL, ie with the code fpc\2.4.0\source\packages\hash? Frank Church =======================…

    Frank Church
    0
  14. I need some help with using Rijndael encryption algorithm

    I am using the Rijndael algorithm to encrypt some application settings, but it does not generate the type of variation in the encrypted output I expect. I am not quite…

    Frank Church
    0
  15. Ruby-scripting for FPC and Lazarus

    I wrote the packages for Lazarus, allowing to use Ruby 1.8 as a scripting engine in Lazarus-programs. At the moment, work is just begun, but something than it is already…

    Ivan Shikhalev, ik, leledumbo
    4
  16. evaluation of set constant

    Hi List. Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type…

    Torsten Bonde Christiansen, Howard Page-Clark, Jonas Maebe
    3
  17. A cross-architecture Integer type for 32-bit and 64-bit

    Is there a data typein FPC which is compiled as Cardinal in 32-bit, but compiled as UInt64 in 64-bit?

    Bihar Anwar, Felipe Monteiro de Carvalho
    2
  18. fpGUI powered by OpenGL

    Today after tinkering a few hours I managed to get an fpGui hello world app running with OpenGL and GLut as back-end. It seemed even easier than anticipated to switch…

    Darius Blaszyk, Henry Vermaak, Jonas Maebe
    17
  19. Current TThread

    How to get the current TThread instance? For example: I created a TThread and called a function, which calls a function .... One of those sub functions needs to call…

    Mattias Gaertner, Helmut Hartl, Jonas Maebe
    5
  20. Firebird 2.5 embedded bug? Debugging skills needed

    (Posted to Firebird-dev list, copied to freepascal list for info) Recently I mentioned a problem running FreePascal 64 bit code with Firebird 2.5 embedded 64 bit on…

    Jim
    1
  21. Need help fixing leaks

    Could anyone please help me fixing leaks in my http://free-pascal-general.1045716.n5.nabble.com/file/n3312878/llvmirbuilder.zip project ? This is the output when I debug…

    leledumbo, Jonas Maebe, Thomas Schatzl
    3
  22. generics class hierarchy

    How can I use inheritance with generics? e.g. type generic gt_point<_num> = class ... end; generic gt_box<_tpoint,_num> = class (_tpoint) ... end; The above gives me an…

    David Emerson, Honza, Sven Barth
    16
  23. CDDB unit

    Does anyone have the cddb unit that was on the wiki once upon a time? http://wiki.lazarus.freepascal.org/CDDB The link on that page is now dead. Andrew

    Andrew Haines, Den Jean
    1
  24. Having trouble defining an initialized constant correctly

    Please excuse me if I've posted this request to the wrong list. I really did spend some time in trying to find a FPC list for simple coding questions. Sorry. I have a…

    Cox, Stuart TRAN:EX, Cox, Stuart TRAN:EX
    1
  25. Problem with OpenGL drawing on Linux

    In my code I experience a problem with drawing stippled lines with OpenGL. In the following example no line is drawn, but when I change glVertex2f(40, 480); to…

    Darius Blaszyk, Felipe Monteiro de Carvalho, Jeppe Johansen
    6
  26. SIGSEGV in SYSTEM_TOBJECT_$__CLEANUPINSTANCE when calling from C app

    Hi! I created a C application which calls methods from a library developed in Pascal. I can create objects by using void *test; test = br_object_new (); and access the…

    Matthias Klumpp, Juha Manninen, Sven Barth
    3
  27. Pascal Scripting Engines

    I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came…

    Andrew Brunner, Benjamin Jan Alexander Rosseaux, David Butler
    9
  28. Please update ubuntu repository

    When updating 2.4.0 to 2.4.2 I noticed that the Ubuntu repository on www.hu.freepascal.org, has not been updated yet. Could someone please upload the latest versions…

    Darius Blaszyk, Vincent Snijders
    1
  29. Code to send message from Python script to FPC's TSimpleIPCServer

    Just sharing, in case someone will find the below information useful, or worthy to add to some wiki or docs anywhere: I have here a daemon written in FPC that…

    Michalis Kamburelis
    0
  30. Numerics and graphics in Free Pascal

    I am new to the list and read it for nearly a week now. So it may be the topic is already answered. In this case, I say sorry. I want to start programming in Free Pascal…

    Karsten Rothemund, Paulo Malheiros
    2
  31. Re: Data alignment of records

    Not only want to know the alignment of different data types, there are also other things, the reasons are: 1. Because I want to learn and understand how the compiler…

    Luis Fernando Del Aguila Mejía
    1
  32. Re: Data alignment of records

    Sorry. Can someone explain to me, about the Data alignment of records and other variables. thanks.

    Luis Fernando Del Aguila Mejía, Jonas Maebe
    1
  33. Re: Looking for SDL_opengl header

    Couldn't find it there, although there are some examples with SDL and OpenGL available with Jedi-SDL. So perhaps I don't need a specific SDL_opengl header (I'm porting a…

    Darius Blaszyk, Andrew Haines, Matt Emson
    6
  34. crash in tobject.free

    I'm encountering a consistent crash, and I'm not sure how to address the problem. using: - laz 0.9.28.2-8 beta, svn 22277, from debian testing -- a rather outdated one,…

    David Emerson, Matthias Klumpp
    2
  35. Data alignment of records

    I can not understand the data alignment of records. I compiled the program PackRecordsDemo, http://www.freepascal.org/docs-html/ref/refsu16.html#x40-470003.3.2 sample…

    Luis Fernando Del Aguila Mejía, Jonas Maebe
    1
  36. 2D Dynamic arrays and BlockRead

    After using BlockRead to fill a 2D dynamic array, I get an access violation on the very first reference. A 2D array with only one dimension dynamic works OK. What am I…

    Unknown author, Jürgen Hestermann, Marc Weustink
    7
  37. Compile 2.5.1 Ubuntu&In-Reply-To=

    I think the problem is that SVN does not update 'Makefile' and 'Makefile.fpc'. You need to delete them and you can regenerate them with 'svn update'. Try it and tell us.

    Amat Coder, José Mejuto
    1
  38. make[4]: i386-win32-as: (command not found)

    make clean all CPU_TARGET=i386 OS_TARGET=win32 make install CPU_TARGET=i386 OS_TARGET=win32 PREFIX=/home/kxu/DevPascal/fpc_inst/fpc_win32 FPC_VERSION=2.4.3 make -C…

    Osvaldo Filho, Henry Vermaak, Sven Barth
    2
  39. Compile 2.5.1 Ubuntu

    There are several months since I recompiled my 2.5.1 (SVN) in Ubuntu, today I had installed 2.4.2 and tried to recompile SVN today, but:…

    José Mejuto
    0
  40. OFFTOPIC: Money Model, for FPC

    Is Firebird really free? If you’re expecting some sensation, I’ll not make you happy. Shortly, yes, Firebird is free, completely. You can use it wherever you want…

    Osvaldo Filho, Zaher Dirkey
    1
  41. Cannot get TFPTimer to work

    Whatever I tried, I cannot get TFPTimer to work. Can someone help? For some reason the OnTimer even is never fired. Tried on Windows and Linux. Here's a snippet I used…

    Darius Blaszyk, Brian Winfrey, Burkhard Carstens
    4
  42. methods of an object to create others objects

    We can to use methods of an object to create others objects, or this is a bad programming practice? eg: var obj1, obj2: TmyObject; begin obj1 := tobj1.create; //ok obj2…

    Marcos Douglas, Alberto Narduzzi, Andrew Brunner
    83