Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-09

  1. How can you convert an enum value to string?

    Is there a subroutine that can convert an enum value to a strings, so that I can do something like ShowMessage(EnumToStr(enumValue))? Frank Church =======================

    Frank Church, Graeme Geldenhuys, Howard Page-Clark
    12
  2. ARM STM32F Processor

    Is it possible to compile for this device? Can somebody help? I want to switch from Atmel (8bit) to ARM. I Also need hardware demo board, if someone has an example.

    Rainer Stratmann, DaWorm, Jeppe Græsdal Johansen
    11
  3. Posting to the list via GMAIL

    I have successfully contacted the maintainer of the GMANE news server in order to fix a problem with the Lazarus mail list mirror at gmane.comp.ide.lazarus.general When…

    Bo Berglund, Graeme Geldenhuys, Jonas Maebe
    7
  4. Writing a screensaver with fpc for Kubuntu ( sorry, forgot the attechment )

    I wanted to develop an XScreenSaver with FPC. My first idea was to write a GTK+ app, but according to the XScreenSaver specs you have to paint directly on the X root…

    Unknown author
    0
  5. Writing a screensaver with fpc for Kubuntu

    I wanted to develop an XScreenSaver with FPC. My first idea was to write a GTK+ app, but according to the XScreenSaver specs you have to paint directly on the X root…

    Unknown author
    0
  6. Initializing records and other complicated structures

    Fpc sometimes complains (hints) about local variables not being initialized. My question: how do I initialize more complicated structures like records? And should I need…

    Jim, Graeme Geldenhuys, Honza
    9
  7. RichMemo in shared SO library - relocation error

    I have no problem with LCL and Richmemo in DLL, but on linux I can't build SO library with TRichMemo. I get this error: /usr/bin/ld:…

    Dibo, Jonas Maebe
    2
  8. Any recommendations for a good in-memory storage type

    While implementing drag-n-drop support in fpGUI, I created a TfpgMimeData class. This class will hold various data items, and a mime-type describing each of the data…

    Graeme Geldenhuys, Felipe Monteiro de Carvalho, Marco van de Voort
    9
  9. Obtain Class hierarchy (in MacPas mode)

    I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class…

    Adriaan van Os, Florian Klaempfl, Michael Van Canneyt
    10
  10. fpc binary port on aix: It's avaliable ?

    I find the interesting thread baout fpc on AIX platform: "How hard is it to port FPC to AIX" on http://lists.freepascal.org/lists/fpc-devel/2008-September/thread.html  …

    phoebus phoebus, Jonas Maebe
    4
  11. code optimization

    I am currently trying to get the fastest possible code from fpc on a modern CPU (Intel Xeon) under Windows XP. I use the compiler options: fpc -Mdelphi -O3 -OpPENTIUMM…

    Unknown author, Adrian Veith, Florian Klaempfl
    23
  12. Is Delphi7 on Windows to FPC on embedded Linux possible?

    This may be a stupid question, but I just discovered FPC so please bear with me... I have been writing Delphi programs since 1996 or so (when Delphi 2 was released), so…

    Bo Berglund, Graeme Geldenhuys, Henry Vermaak
    5
  13. Questions regarding arrays

    I'm have some tough times with arrays (I use them very little). With trial and error I found that to use a pointer to an array of int32 values returned by a C API (Xlib…

    Graeme Geldenhuys, Honza, leledumbo
    11
  14. Mantis for fpcprojects

    Can someone from the core team advise how to handle bug reports/ feature requests for fpcprojects? Darius

    Darius Blaszyk, Michael Van Canneyt
    2
  15. TEventLog.FileName : Hot to do an append to existing log file

    I'm not understand how to use unit Teventlog to no create each time a new file but to append to an existing log file. I want to do something like:  …

    phoebus phoebus, Michael Van Canneyt
    2
  16. TEventLog.FileName location: Change default file location for filename without change unit code.

    I'm using FPC 2.2.4 with Lazarus. The unit eventlog is great for logging events. SO i use it.   My question is how to change the default location for the filename for…

    phoebus phoebus, DaWorm, Michael Van Canneyt
    3
  17. 1
  18. Basics of profiling

    Does anyone have a link or some info about basic info for doing profiling in fpc apps? Basically I would like to know how many miliseconds does my app spend in a couple…

    Felipe Monteiro de Carvalho, Darius Blaszyk, Graeme Geldenhuys
    14
  19. Interface with NASM

    I need to teach assembler, and the easiest way would be to create a driver and simple I/O library in high level language that can be called from assembler so that…

    leledumbo, Felipe Monteiro de Carvalho, Jeppe Johansen
    14
  20. "Error: Impossible operator overload" ...why?

    I'm using FPC 2.4.3 Why is the following operator overload not allowed? Sometimes TfpgColor can be a RRGGBB value (eg: clRed), and sometimes it is an index to a color…

    Graeme Geldenhuys, Jonas Maebe
    3
  21. Command line or CGI Printing

    Hi, I'm looking for a way to send images to a printer without using the Printers unit. I can't use it because it relies on X (on Linux) and I need to print from a CGI or…

    Leonardo M. Ramé, Graeme Geldenhuys, Michael Van Canneyt
    5
  22. Help translating C++ to Object Pascal

    In a C++ method as shown below, does the '... return True;' immediately exit the HandleClientMessage method, or will it still continue processing the remainder of the…

    Graeme Geldenhuys, David W Noon, Reimar Grabowski
    4
  23. Nesting

    A new Lazarus review : http://delphimax.wordpress.com/2010/09/13/freepascal-and-lazarus-success-or- failure/ has this comment about Lazarus source: --- Abundant use of…

    Juha Manninen (gmail, Dimitri Smits, leledumbo
    3
  24. heap size & free heap

    Hi Maybe someone here knows... I built Lazarus with "-gh", started it and closed without doing anything else. --- Heap dump by heaptrc unit 717866 memory blocks…

    Juha Manninen (gmail
    0
  25. Question mark?

    In the following program: {$ Codepage UTF8} var str: string; Begin Readln (str); Writeln (str) End. When I enter the following: €uro, shows me: ?uro. The console uses…

    Luis Fernando Del Aguila Mejía, Felipe Monteiro de Carvalho, Jonas Maebe
    9
  26. How to download fpc242 rc1 (to test a possible bug)

    I noticed that there's a folder for fpc242 rc1 in ftp://ftp.freepascal.org/pub/fpc/beta/ Trying to access gives an error 550 The reason to get the 242 version is to test…

    Luiz Americo Pereira Camara, Marco van de Voort
    4
  27. What is wrong with this enum and array related code

    program testnums; //{$APPTYPE CONSOLE} uses Classes, SysUtils; type stType = (stLite := -100, stDb, stBothLite, stBothDb); //settings location Type stTypes = Array…

    Frank Church, Honza, Vincent Snijders
    5
  28. Can freepascal use negative enum values

    Can freepascal use negative enum values, eg type anyType = ( a:= -10, b, c,d,e) so that b,c,d,e are -9 to -6 ? Frank Church =======================…

    Frank Church, Marco van de Voort
    1
  29. HookSignal, "halt", and unhandled exceptions

    Greetings! An interesting problem I've run into: Under Linux, I have a small example program written in C (we'll call it cprog) which uses a FPC-compiled shared object…

    Seth Grover, Jonas Maebe
    2
  30. COM/OLE with fpc 2.5.1

    Dear list Can someone summarize the status of COM / OLE in Windows using recent versions of freepascal? As far as I got: COM clients are possible since 2.4.0. You can…

    Johannes Nohl
    0
  31. Generic B+Trees, Lists and Vectors

    With tests and documentation. Requires trunk FPC. Download: http://code.google.com/p/fprb/

    Honza, Felipe Monteiro de Carvalho
    1
  32. Anybody know X11 and XDND (drag-n-drop)

    I'm having trouble fetching the XdndTypeList data. It works 100% on my 32-bit Linux laptop, but now trying on my 64-bit Linux desktop at work, the XGetWindowProperty()…

    Graeme Geldenhuys, Henry Vermaak, Marco van de Voort
    4
  33. Apple development tools

    I've just had my attention drawn to this elsewhere, and thought it would be of general interest. "In particular, we are relaxing all restrictions on the development…

    Mark Morgan Lloyd, ABorka, Helmut Hartl
    4
  34. CRelocateThreadVar called from fpc_pushexceptaddr/fpc_popaddrstack

    The documentation (http://www.freepascal.org/docs-html/prog/progse46.html) indicates that "RelocateThreadVar is called each time when a thread is started, and once for…

    Seth Grover, Jonas Maebe
    2
  35. Request for a look at sqldb Firebird database code

    Still wrestling with my locate clone at (download source+exe) http://bitbucket.org/jb/flocate/get/tip.zip I've hit some interesting behaviour: running 64 bit embedded…

    Jim
    0
  36. a few more heap questions

    A while ago I asked a question on this list: To which Jonas replied, helpfully: I need to understand a few more things... I'm still a little confused at how this works.…

    Seth Grover
    0
  37. Destroy vs Free: Memory Leak?

    I have a TestCase that has this issue.  If I call obj.Free, I am unable to step into the Destroy method and heaptrc indicates a memory leak.  If I call obj.Destroy…

    Brian Winfrey, bwCode4U, bwinfrey
    4
  38. R: Re: Mac osx callback functions parameters: wrong values in 386 mode.

    Thank you very much for your help. Regards Francesco ----Messaggio originale---- Da: Data: 06/09/2010 18.13 A: "", "FPC-Pascal users discussions" Ogg: Re: [fpc-pascal]…

    Unknown author
    0
  39. SNAPI Driver and USB HID

    Hi! I've bought a barcode scanner (Symbol MS4407) with an USB interface and want to use that with Linux. Unfortunately Motorola (who bought Symbol a few years ago) do…

    Johann Glaser, Henry Vermaak, Luca Olivetti
    6
  40. stdcall on win64?

    stdcall calling convention is for Win32, right? E.g. function Test: HRESULT; {$IFDEF WIN32}stdcall;{$ENDIF} By using $IFDEF like that, will the code also work in Win64?…

    Bihar Anwar, Florian Klämpfl
    2
  41. Mac osx callback functions parameters: wrong values in 386 mode.

    Using control callback function with a control (a button) apparently results in wrong parameter values when compiling to 386 (values are correct compiling to ppc). The…

    Unknown author, Jonas Maebe
    1
  42. Mac OSX callback functions parameters: wrong values for 386 mode.

    Using control callback function with a control (a button) apparently results in wrong parameter values when compiling to 386 (values arecorrect compiling to ppc). The…

    Unknown author
    0
  43. Compile ANSI unit as UTF8

    I have unit with Ansi strings but i want to compile it as UTF-8 how to ask the compiler to convert it to utf8 before compile it? Thanks in advance Zaher Dirkey

    Zaher Dirkey, Felipe Monteiro de Carvalho, ik
    7
  44. FPC and ANSI C

    is there way to share constants between FPC and ANSI C? I writing firmware for device (with Atmel 8bit) using ANSI C, also I writing software for PC (to communicate with…

    Valdas Jankūnas, Jonas Maebe
    2
  45. SEH

    I was bored and I played around with SEH exceptions. It might be useful in some cases when you can't catch an exception in a dll but there might also be easier methods…

    Bernd Kreuss
    1
  46. asm in att mode: SECTION:DISP(BASE, INDEX, SCALE)

    {$asmmode att} asm pushl %fs:0 end; Error: Invalid Reference Syntax I am referring to this: http://www.cs.northwestern.edu/~pdinda/ics-f09/doc/gas-notes.txt Is this…

    Bernd Kreuss
    0
  47. address of a label (possibly stupid question)

    I have a probably stupid question, experienced assembler programmers will probably laugh but here is my problem: I am trying to push the address of a label onto the…

    Bernd Kreuss
    0
  48. How do you test for set membership?

    I have this code: type dbgOptions = (dbgAMI, dbgRemoteLinks); var dbgActiveOptions: set of dbgOptions; procedure SetupDefaultvars; begin dbgActiveOptions := []; end;…

    Frank Church, Jonas Maebe, Michael Fuchs
    3
  49. Migrating this mailing list to Nabble2

    Any administrator that registers this mailing list to Nabble, would you mind upgrading to Nabble2? The request can be put here:…

    leledumbo, Jonas Maebe
    1
  50. Re: Recursion optimization by compiler

    Well, simple to implement and useless optimization :)

    Florian Klämpfl, Bihar Anwar, José Mejuto
    12