fpc-pascal · 2009-05
- Strange issue with threads7
While I was testing an unrelated issue, I discovered this: under windows, with fpc 2.2.4, I try to start 10000 thread (I know it's absurd but it's just a test) and have…
- FP Vector graphics library17
I and another worker have developed a vector graphics library for Free Pascal and I am thinking about making it modifyed-LGPL and adding to the lazarus-ccr repository,…
- Gecko / Firefox / XPCOM8
I am trying to use the gecko libs from http://sourceforge.net/projects/d-gecko with lazarus. i get the following errors: Hint: Start of reading config file…
- Firebird +lin32 + fpc lib udf returns garbage.9
If I build a library with udf functions for Firebird tests with an fpc app calling those routines works fine. However with Firebird module and entrypoint are found but…
- DirectFB for FPC beta tarball18
Hello. There wasn't much feedback to our previous anouncement. Anyway, now there is an FPC-DirectFB tarball which can be downloaded from our SourceForge page:…
- How to call lib routines with cdecl calling convention with win32 app?6
I have a library with udf routines using the cdecl calling convention, required by Firebird. This seems to work well on win32. However when I test these routines with a…
- "Aborting " a socket operation under Linux5
I have a thread managing a socket (using synapse but I don't think that it matters, just keep in mind that each operation is blocking). Inside the thread, I try to…
- IDE problem2
I have recently installed version 2.2.4, and now I have a problem with the IDE. (Operating system Windows XP) If I launch fp directly, IDE opens in a window with 80x80…
- undefined reference to `fpc_geteipasebx'7
When compiling a test program statically linking a shared module on fc10 i386 I get the following messages: testlibyfbudfunit.pas:60: undefined reference to `Y_Odd'…
- exceptions11
The send function causes sometimes an exception (permission denied). try l := send( ... ) except l := 0; end; This does not work. The Program always stops in case of an…
- IE 20030704318
Hi, all! I've just tried to compile some of my old Pascal code, and got IE 200307043. I've tried both 2.2.4 and svn trunk versions. Simple program to generate it:…
- Class procedure assigned to object's event5
I'm working on a code I have found on internet about a little ftp client using synapse. This code: class procedure callback.StatusCMD(Sender: TObject; Response: Boolean;…
- How to emulate SetDIBits and GetDIBits in Linux0
Hi guys In MS Windows I use the following API functions: 1/ SetDIBits(bmap.Canvas.Handle, bmap.Handle, 0, bmap.Height, data, PBitmapInfo(bitmapInfop)^, DIB_RGB_COLORS);…
- detect setting of encoding in XML0
I'm loading two differend kinds of xml data files into a dom tree (DOM.TXMLDocument). These files differ only in smart amounts and the most prominent one is the xml tag…
- Internal error 2005020521
I get an internal error 200502052 when building a library on fc10 with lazarus 0.9.26.2/fpc 2.2.2 and a recent nightly build with fpc 2.2.4. It is raised by the…
- Memory leaks in FPC 2.3.1 SVN 1318811
When building an application with Lazarus (r20153) using FPC (r13188) (on a Debian Lenny system) we are experiencing significant memory leaks. Earlier revisions of both…
- fpc & mysql 5.0 in mac osx 10.5 intel1
how can I use mysql 5.0 in mac OS X 10.5 Intel? I did it in OSX 10.4 ppc, but not in 10.5 Intel I get the message ld: library not found for -llmysqlclient Thanks in…
- How trate with JPG3
Hi list: I have a question, is for a elementary program. What are the routines to manipulate with jpg image in FreePascal?. Thank, Diego Antonio Lucena Pumar.
- about Support for dynamic libararies/package1
how long can Support for dynamic libararies/package!! ??
- How to add new function related to MAC OS X4
Hello 1. I want to add new function for Mac OS X which calls FCNTL with F_FULLSYNC to the existing source tree, but I am really confused from the files to be…
- Compiler option '-l' (write FPC logo)2
What does the compiler option -l "Write a FPC logo" actually do? What logo? How does the logo look like? Where do I see that logo? Does it work on all platforms? For…
- test0
just test, ignore it
- Using platform specific include files like FPC does5
How do I use platform specific include files like FPC does, but in my own projects? for example: In tiOPF we have a tiUtils.pas unit. We try and limit IFDEFs to only…
- GetCurrentThreadID to string2
How do I convert the GetCurrentThreadID() result to a string? At the moment for Linux and Windows the following works: var lsThreadID: string begin lsThreadID :=…
- thanks for major signal handling fix7
A huge thanks to Jonas for fixing issue 12704. I'm going to grab a copy of the trunk and compile it just so I can try this out. Thank you so much!…
- Calling DO_SYSCALL on Mac OS X3
Hello FPC-Pascal users discussions! I need to flush buffers from TFileStream which I should use function "fpfsync (Handle)", but as far as I found, there is no…
- Re: DBus interface needs an update5
Since you are all into it already, you are welcome to give patches to solve the problems :) Ido
- FindFirst...FindClose16
Hi, I ported a Delphi service to linux using FPC. The app uses FindFirst, FindNext and FindClose the same way Delphi Help shows: if FindFirst(Edit1.Text, FileAttrs, sr)…
- Case insensitive FindFirst and friends3
I've got a little application I'm working on that is compiled for Darwin, Linux and Win32 and I've bumped up against case sensitivity in FindFirst and friends. In this…
- Question about operator overloading and classes0
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm toying with operator overloading and classes. For example I want have a class that stores a value (of some type) and…
- Re: Link libglx library0
"libagl.so" is an add-on of the Allegro library that I'm trying to use. I did wrote a wrapper for Allegro (allegro-pas.sourceforge.net) and it works nice but I want to…
- TProcess with festival3
Maybe I'm just dumb, but I cannot figure out why this isn't working. I wanted to write a simple program which uses TProcess to send input to festival (the text-to-speech…
- Microsoft to ban Memcpy() :)3
Funny... always these problems with C and bounds checkings http://www.theregister.co.uk/2009/05/15/microsoft_banishes_memcpy/
- XML Pretty Formatter10
Hi, I'm looking for a simple XML pretty formatter, or parser who can remove all superfluous characters from XML files. My application receives an XML file from an…
- Daemon question4
I wrote a daemon monitoring my solar powerstation. It works fine but I want to extend it. At the moment I log everything to file, and I put some data into rrdtool. I…
- Calling C++ object1
I am trying to call a C++ object which is in a dll from a Pascal interface unit as described in Rudy's Delphi corner:…
- How to use OpenGL 2.0 fatures20
I am trying to use FPCs OpenGL bindings instead of my own under Linux. But just replacing my bindings with the FPC ones does not seem to be enough as I get a segfault.…
- Link libglx library.6
Hello. I'm working on a project that needs the GLX library. It compiles but when running it returns that error: ./exbasic: symbol lookup error: /usr/local/lib/libagl.so:…
- Re: MacMode More Info1
Darn. Still not member. Not problem since this is my last post. I found my answer. It's been a month , I hadn't had the time to follow up on my original question which…
- Hiding console created by another process0
I'm using TProcess to run a program with Options:=[poUsePipes,poNoConsole] and ShowWindow:=swoNone. However, the program is executing another program that creates a…
- Sourceforge Lazarus DEB Fails on Ubuntu Hardy Heron1
The current .DEB lazarus-ide_0.9.26.2-0_i386.deb available from the Sourceforge repository reports a dependency error when I attempt to run it on Ubuntu 8.04. The error…
- PostgreSQL server side functions with FPC0
Does anyone have experience in developing PostgreSQL server side functions using fpc?
- Where does Write(Ln) actually write to?6
I'm almost there to have Write(Ln) works for my OS. I've made SysInitStdIO call OpenStdIO(Output,fmOutput,StdOutputHandle); and calling Write(Ln) gives no error (i.e.…
- Limits loop for1
When compiling the following program : Var a : longWord; Begin for a:=1 to 4294967294 do Begin Writeln(a); End; End. I get the following error message: "Error : range…
- A question or two regarding the FPC15
Over the last few years, I have written hundreds of thousands of lines of object pascal code that compiles successfully using the FPC and Delphi. To date, I have not…
- WinCe 6.13
building apps for WinCe 6.1 results in a warning on install, that it is build for an older version... What does it mean? Can I fix that? fpc 2.2.2 using crossfpc on…
- Problems with Debian and FP IDE1
When I run FP IDE on Debian I get an error message. Also I cannot use F8 to debug my program. How can I fix this? thanks…
- heap size growing7
I've got a fairly large system (originally written in Delphi, then moved to Kylix, and now finally in FPC 2.2.2) which is doing a lot of different things. Various…
- Doubts1
Dear all, I would like to write a program that must work in MS DOS with an input from file and output to another file, also I would like to compile the same program in…
- Missing File attribute in filutilh.inc?4
Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are…
