fpc-pascal · 2010-09
- How can you convert an enum value to string?12
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 =======================
- ARM STM32F Processor11
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.
- Posting to the list via GMAIL7
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…
- Writing a screensaver with fpc for Kubuntu ( sorry, forgot the attechment )0
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…
- Writing a screensaver with fpc for Kubuntu0
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…
- Initializing records and other complicated structures9
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…
- RichMemo in shared SO library - relocation error2
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:…
- Any recommendations for a good in-memory storage type9
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…
- Obtain Class hierarchy (in MacPas mode)10
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…
- fpc binary port on aix: It's avaliable ?4
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 …
- code optimization23
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…
- Is Delphi7 on Windows to FPC on embedded Linux possible?5
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…
- Questions regarding arrays11
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…
- Mantis for fpcprojects2
Can someone from the core team advise how to handle bug reports/ feature requests for fpcprojects? Darius
- TEventLog.FileName : Hot to do an append to existing log file2
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: …
- TEventLog.FileName location: Change default file location for filename without change unit code.3
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…
- 1
- Basics of profiling14
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…
- Interface with NASM14
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…
- "Error: Impossible operator overload" ...why?3
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…
- Command line or CGI Printing5
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…
- Help translating C++ to Object Pascal4
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…
- Nesting3
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…
- heap size & free heap0
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…
- Question mark?9
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…
- How to download fpc242 rc1 (to test a possible bug)4
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…
- What is wrong with this enum and array related code5
program testnums; //{$APPTYPE CONSOLE} uses Classes, SysUtils; type stType = (stLite := -100, stDb, stBothLite, stBothDb); //settings location Type stTypes = Array…
- Can freepascal use negative enum values1
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 =======================…
- HookSignal, "halt", and unhandled exceptions2
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…
- COM/OLE with fpc 2.5.10
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…
- Generic B+Trees, Lists and Vectors1
With tests and documentation. Requires trunk FPC. Download: http://code.google.com/p/fprb/
- Anybody know X11 and XDND (drag-n-drop)4
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()…
- Apple development tools4
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…
- CRelocateThreadVar called from fpc_pushexceptaddr/fpc_popaddrstack2
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…
- Request for a look at sqldb Firebird database code0
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…
- a few more heap questions0
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.…
- Destroy vs Free: Memory Leak?4
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…
- R: Re: Mac osx callback functions parameters: wrong values in 386 mode.0
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]…
- SNAPI Driver and USB HID6
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…
- stdcall on win64?2
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?…
- Mac osx callback functions parameters: wrong values in 386 mode.1
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…
- Mac OSX callback functions parameters: wrong values for 386 mode.0
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…
- Compile ANSI unit as UTF87
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
- FPC and ANSI C2
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…
- SEH1
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…
- asm in att mode: SECTION:DISP(BASE, INDEX, SCALE)0
{$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…
- address of a label (possibly stupid question)0
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…
- How do you test for set membership?3
I have this code: type dbgOptions = (dbgAMI, dbgRemoteLinks); var dbgActiveOptions: set of dbgOptions; procedure SetupDefaultvars; begin dbgActiveOptions := []; end;…
- Migrating this mailing list to Nabble21
Any administrator that registers this mailing list to Nabble, would you mind upgrading to Nabble2? The request can be put here:…
- Re: Recursion optimization by compiler12
Well, simple to implement and useless optimization :)
