fpc-pascal · 2010-03
- fpGUI Toolkit v0.7-rc1 for FPC 2.453
fpGUI v0.7-rc1 is available --------------------------- An archived source download can be found at the following URL, or the source code could be pulled directly from…
- More memory leaks and other problems: request for review of probably stupid mistake4
I'm trying to learn FreePascal by writing a file indexer a la locate and I'm hitting more walls after receiving quick and clear help from Michael Van Canneyt regarding…
- Comedi hardware support2
I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR. ( http://www.comedi.org ) I googled for anything regards that but had no…
- Cmpxchg2
I have been browsing the web somewhat to figure out how I can have access to a cmpxchg function in freepascal. At the momente I found very little information. Some…
- Changes in 2.4.04
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 After quite a long time of absence from FPC, I decided to pick it up again. One of the first things I stumbled upon was the…
- Newbie problems with memory leak and access violation/AV2
Background: Hobby programmer; Microsoft Access VBA/Visual Basic 6/Visual Basic.Net background. I'm a FreePascal newbie but have fiddled with it some time ago. Was…
- 4
- Re: stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question0
You're right, it can. The product the company I work for produces is a shared library, and I'm just looking into and making sure that our .dll is usable in as many was…
- when cross-compiling, "Recompiling Unit..., checksum changed for System"1
i use cross-compiling from win32 to (target)linux... and get this error; "Recompiling BaseUnix, checksum changed for System" i am using this snapshot:…
- Makefile:135: *** Compiler /home/ik/projects/fpc/fpc/compiler/ppcx64 not found. Stop2
I'm trying to compile svn FPC after few months of not touching it and I have the following error: $ make zipinstall make fpc_zipinstall ZIPTARGET=install…
- var parameters under 64-bit GDB?1
I'm using FPC 2.4.1 with GDB 6.8 under Ubuntu 8.04.2 LTS on a all 64-bit system. All var parameters [even of simple types like Integer, Boolean etc.] show up as memory…
- DWARF2 or DWARF3 debug info1
I'm using FPC 2.4.1 with GDB 6.8 under Ubuntu 8.04.2 LTS on a all 64-bit system. As far as I understand the preferred debug information format is DWARF instead of STABS.…
- stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question2
I appreciated Henry's comment regarding my last question (generating a .lib file from a FPC-generated for linking with VC++). I ended up using implib…
- OT: mySQL Master-Master-Slave replication0
Perhaps it's just that I'm a little bit short of sleep - but I can't find good solution for a problem although I'm shure it should be easy to solve... So apologies for…
- implicitly linking FPC-generated .dll from Visual Studio1
First, let me declare my ignorance of MS development and Visual Studio in general. I've got a FPC-generated .dll file I want to implicitly link with in a Visual Studio…
- Debugging CGI web apps3
How do others debug CGI web apps written in Object Pascal? Yesterday I spent a significant amount of time debugging a few difficult problems. It took much longer than…
- source code UTF8 with BOM problems ?6
Hello, the problem is only linux. The following source code uses UTF8 without BOM, http://www.conoce3000.com/Ejemplo01.pp the compiler compiles ok and the program…
- XPCOM and freepascal3
I wonder if it's possible to develop extensions (aka Add-Ons) for Firefox (or in my case Thunderbird). I'm totaly unfamiliar to the stuff right now. But the advantage I…
- keyboard shortcut issues under Linux and FP IDE0
Anybody know how one can temporarily (for the duration of running the FP IDE) disable the virtual console keyboard shortcuts under Linux? Example of the problem: If I…
- constructor as procvar8
I'd like to pass a constructor as a procvar. Don't know if this is possible. Here is some silly illustrative code that doesn't work: {$mode objfpc} uses classes,…
- When is AnsiString not a good substitute for string?4
I recently posted a question about problems involving the use of string and AnsiString when converting a Delphi program. Are the some situations where substituting…
- Strange WinCE Bug5
Who maintains the wince port and the arm port? Some users are experiencing a very wierd bug in wince-arm which happens in pure lcl app or kol app + lnet (no idea what…
- Fwd: [ANNOUNCEMENT] GDB 7.1 released!2
Begin forwarded message:
- New wiki, ftp and mailing list server planned9
As you might have noticed, the server running the wiki (lazarus and fpc), the mailing lists (lazarus and fpc) and being ftp master (fpc and lazarus snapshots) had some…
- tstringlist.savetostream6
After running tstringlist.savetostream how can I make sure that the buffer has been flushed and data sent successfully? Thx
- Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes?4
Versions x.x.1, x.x.3, x.x.5 are development versions? or are bug fixes? Ex.: 2.4.1
- Re: Is it save to think default value of untouched string is ''?1
But ShortStrings also store the length in string[0]. If I do a append, I think the string will append to string[1].... So don't assume string are always initialized with…
- error on compilation2
When I try to compile on my laptop (fedora on a AMD64) with fp I get: fatal: Can't find unit system used by pruebacomentarios What's wrong here? Martín Marqués select…
- Error: Illegal qualifier in converting Delphi unit4
I am trying to compile the TVersionInfo component by Anders Melander at http://melander.dk/articles/versioninfo/. It defines the structure below type TTranslationRec =…
- including libraies ?1
I tried to write a little utility to submit a command to code to do this is as follows: program TestPrg; Uses Classes, Process; Var i: Integer; Cmd, Pre, Post,…
- modulo of negative dividend2
I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where…
- Floating point miscalculations on PowerPC1
I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's running under Rosetta on an Intel Mac. Simple floating point operations like this result in wrong…
- when cross-compiling, "Recompiling ..., checksum changed for ..."7
i use cross-compiling from win32 to (target)linux... and get this error; "Recompiling BaseUnix, checksum changed for System" *** i read this doc:…
- Re: properties with getter evaluation in gdb0
After that patch any field anywhere in GDB's Pascal mode becomes case sensitive (and because FPC stores all identifiers in uppercase, that means you have to use…
- syntax of deprecated / with/without semicolon ?0
All I got is http://www.freepascal.org/docs-html/ref/refse5.html it gives this example: So deprecated after a variable, or constant, does NOT have a semicolon. Indeed…
- Compiling for 64-bit Mac1
I've installed FPC from the fpc-2.4.0.intel-macosx.dmg package on SourceForge, and I'm trying to compile code into a 64-bit program. I can't find the command-line option…
- -Twin32 linker woes9
I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says error: 1: Import library not found…
- FPC Docs updated11
The documentation has been re-generated and put on the website. the fpc/dist/2.4.0/docs directory on the FTP server contains also a version of the latest docs. They have…
- Re: Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.2
Jonas, you are my hero. This was exactly the problem. After adding " SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);…
- Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.1
Hi If I use Pa_IsFormatSupported from portaudio with a different sample rate than the default, I get a division by zero error or other arithmetic error. However, it…
- Is it save to think default value of untouched string is ''?8
I have a a program that will read a string and parse the string to some sub-strings in sub routine. I add every character to a local string buffer in sub routine. The…
- Smartlinking public functions4
Hello Developers The system expects an application to implement (export) some functions that are to be linked statically. I'm using [public] modifier: function someFunc:…
- Linking statically C code with stdcall functions13
I'm trying to link my program statically with bzip2 library under Win32. The exported functions are declared as stdcall. I can link dynamically by declaring functions…
- gdb, dwarf, and ansistring5
Given the following example: ---------------------------------------- program project1; {$mode objfpc}{$H+} procedure doit (var s : ansistring); begin s := s + ' ' + s;…
- installing on RHEL5 (libtinfo)6
I'm running CentOS 5.3 (x86_64), and want to install FPC 2.4 on my machine, preferably from an RPM, but I can't because of a failed dependency on libtinfo. I've found…
- Determining procedure's name3
Is there a macro or function that gives the current procedure's name? E.g. procedure TClass.SomeProc; begin writeln(Format('This procedure's name is %s', [THE_MACRO]));…
- Serial port parity...1
Is there eny chance to handle the parity bit for serial port communication? I am using a 9 bit communication with a device and I need to control the 9th bit. I tried…
- floating point an FPC9
I've made a small test: if (0.1+0.2) = 0.3 then The only compiler/interpator that actually tells that it equal is FPC. I've tested it using Javascript (in Firefox),…
- Which regex unit to use?3
There are a few regex units include with FPC and Lazarus, and dozens more available for Delphi (and probably FPC too). Which one is the most well known, or best to use,…
- GetEnumerator on Generics1
I'm working on a browser plugin http://code.google.com/p/thefbi/ And I've made a Thefbi Target for Freepascal, The example page shown in the screenshot…
