fpc-pascal · 2008-02
- Object Pascal & arm-linux5
I successfully ran some MSE-gui test-programs on my arm-board. To do this I used a patched fpc 2.2.0-fixes. The patch involved backporting a fix from fpc-2.3.1 for…
- Save image into BMP or JPEG using Free Pascal (Save screenshot of OpenGL scene)14
I need to save data stored in memory into .bmp or (which would be the better variant) into .jpg file. Actually what I want to do is to save the OpenGL screen (probably…
- Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why10
even if it couldn't I am also working on this issue still. I had the WSAGetLastError working using direct sockets.pp calls but didn't get it working using synapse yet..…
- Empty record inside another record ?20
To me it seems like some kind of trick, to extend a empty record field, functions as a sort of offset/label/pointer if you will to the new fields that will will be…
- make RELEASE=1 ?2
Hi, all! Some time I was building LCL using standart command: make clean all # for current target cpu,os and make clean all OS_TARGET=wince CPU_TARGET=arm PP=ppcarm ...…
- Externalization and inclusion of .PAS files (with GTK+) ?2
I'd like to simplify my programs by creating a short MAIN.PAS file and several additional .PAS files called inside. So I'd like to deport most of my code (procedures,…
- WSAGetLastError returns 0 when it shouldn't but I cannot see why2
Hello, before reporting a bug, I'm asking for support here since I'm not sure I doing something wrong (and if so what am I doing wrong). While using synapse in a thread,…
- arm-linux, no bus error on misaligned data access2
my ARM-Linux board seems to be resistant against bus errors/misaligned data access or the compiler does some magic to prevent these ;-) It would help me, to debug a…
- Question on programming serial communication.13
I decided to port a DOS program (written in BP7) to Linux, because it becomes hard and harder to maintain it since I completely changed to Linux. Because this program…
- > ARM and graphic libraries4
Does anyone here have any experience with using FreePascal using ARM microprocessor and drawing graphics?
- Status on LazReport and FPC 2.3.1 on MacOSX/Win320
I have FPC 2.3.1 installed on both MacOSX and Win32, and trying to see how LazReport is working. On Win32 the debugger crashes, and on MacOSX editing and editing in…
- Vim FileType for pascal files3
hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal files. I tried the following : // vim:ts=4:filetype=pascal but it does not work.…
- the libc unit (again)7
I find more and more units and components (for Lazarus) that are using the libc unit. I find it really problematic, because it doesn't exists for all platforms and…
- Local Time7
My problem is that I get UTC time with the 220 compiler on the Arm platform, when using gettime, now ---. If i compile my program "lt" (local time) with the 220 compiler…
- GLext in Free Pascal does not work?3
Hello, I've been trying to solve the problem with the unit GLext for some time and I am getting mad. I need to use vertex shaders written in GLSL, but I am a novice in…
- Dependency on other tools ? (Spaces in path issue ?)0
I have come to the point where I want to add files to the search/unit path. I have spaces in my folders and the compiler fails to find the files. This raises some…
- How to Copy files from one dir to another ?3
I´m try use CopyFile (TurboPascal and Delphi function) on FPC 2.2.0 but i can´t. Someone can help-me ? Lucas Vasconcelos
- run time error 2088
what makes a calculation like this: result := 4*Q / (pi*ny*d); throw an error: An unhandled exception occurred at $080897AB : Exception : Unknown Run-Time error : 208…
- fpGUI (a Free Pascal GUI Toolkit) v0.6 has been released2
fpGUI version 0.6 has been released. Five months after the previous release, v0.6 is finally here. As always, lot has been improved and added. For example: a newly…
- cthreads unit2
I'm trying to use the pthread_self function that supposed to be existed at cthreads unit. However the compiler tell me that it does not know "pthread_self". I'm using…
- compiler asks for variants support2
why does this program: program novariant; uses sysutils; var a, b: double; begin b := 0.4237; a := b**5; writeln(floattostr(a)); end. when running give that error…
- Pascal Translator for Virtual Machines1
I finally setup a SourceForge project for the PTVM: https://sourceforge.net/projects/ptvm/ Right now it's at beta 0.3, and can translate and compile (with MTASC) a…
- syscalls and fpc21
I found that the Do_Syscalls are written in assembly and have only limited number of parameters (up to 6). Is there a way to write it using array of TSysParam instead of…
- New local-indexes support for sqldb3
fpc 2.3.1 and 2.2.1 now have local indexes support for sqldb. (TBufDataset) I would like it if you can test if it works ok for you before we release fpc 2.2.2. Usage is…
- MySQL insert, load data3
Along Joost's examples I managed to get connected, create a table, put a query, get the result, and insert a single row. But when I try to insert several rows at once, I…
- Compiler API specification5
Here is my idea for a compiler application programming interface (api) / specification: type // informs which file was tried by compiler, if successfull error text…
- XML Programming..12
Hi.. I'm looking for an example how to use or programming XML in fpc.. n the documentation I hope.. Tq.. EAM
- atomic primitives for lock-free algorithms?1
I'm reading about lock-free algorithms: http://en.wikipedia.org/wiki/Lock-free_algorithms#Implementation Is there a way to access those atomic primitives, but in a…
- Skybuck's ODE approved by sourceforge :)18
My project called: Skybuck's ODE is getting off the ground :) The project's website, source code, collobaration support is located at:…
- Changing the background of a radiobutton inside a groupbox1
I am having problems on a pure Win32 API test software (the real problem is something I'm tracking on the lazarus wince interface). I am trying to change the background…
- Error, WinCE/ARM and inherit from TForm and IInterface.0
Only when i try to compile for WinCE/ARM i have this error, Is that bug or i have a problem? ---------- type IMyInterface = interface(IInterface)…
- Can you knock my socks off ? Can you mimic Skybuck's/Delphi's Major Breakthrough for code path and memory structure selection ?8
This usenet posting discussess what I consider to be a major breakthrough for me and Delphi coding in general. It explains what I need and want to do and how I solved it.
- Re: Interfacing with the free pascal compiler ?6
Just use the compiler unit in your project.
- set addition bug?5
I'd like to know if this is a known issue, or a new bug. With the following code: ------------------ program tester; type SomeType = ( SomeElem ); const ElemSet = […
- Free Pascal compiler/linker/debugger as a plug-in/replacement for Delphi compiler/linker/debugger8
Delphi's compiler/linker is probably malfunctioning for uint64 types. It would be nice if free pascal compiler/linker/debugger can be used as a replacement. So that I…
- Semaphore13
Hi ! I think it has been discussed before but I would like to use Semaphores, to allow multiple reads but 1 write at once (which is in fact commons operations in a…
- fpc 2.2's tmysql5conn error2
This morning, when I was testing to upgrade FPC on productional server to v.2.2, I found a strange error in TmySQL5Connection of FPC 2.2's FCL-DB. Any queries that have…
- Procedures in records not supported :(12
Borland pulled a fast one on me ;) My most recent code uses the new feature "procedures in records". It seems fpc 2.2.0 does not support procedures in records. I was…
- Dead link0
I don't know if it can help but there is a dead link in this page : http://www.freepascal.org/docs-html/ref/refsu18.html#x44-490003.7.1 ((for the explanation of…
- lul.pas does not compile with fpc 2.2.010
The following simple and valid Delphi code does not compile with command: fpc lul.pas // *** Begin of Code *** unit lul; interface type Tpenis = class private public end;
- Properties in records not supported ! :(0
Delphi 2007 has another pretty handy new feature: "Properties in records". For example it's even possible to have index properties. Some that I could write code using…
- Re: lul.pas does not compile with fpc 2.2.0 -Mdelphi solves it.0
Solved. fpc lul.pas -Mdelphi Works. fpc lul.pas -Mdelphi Free Pascal Compiler version 2.2.0 [2007/09/09] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS:…
- bluetooth wiimote linux1
Has anybody done something with FPC and bluetooth and especially the wiimote under linux and can give me some hints? Mattias
- FPC Zip library7
Does anyone know a zip library for fpc that can create a directory structure inside the zip? I am implementing a generic spreadsheet library, and I was considering…
- FPC for virtual machines?8
Hello! I'm in the Lazarus list, but I'm new to this one. Are there FPC versions for these virtual machines? Java Flash 8 (actionscript 2) Flash 9 (actionscript 3) If the…
- static class methods7
Why do static class methods in FPC have a "Self" parameter? In Delphi, static class methods do not have a Self parameter. Jon
- Strange behaviour about class properties0
I have the following class : FDK_record = class private TABLE: FDK_table; procedure SET_COLUMN ( field_index: integer; field_value: string ); function GET_COLUMN …
- EControlC exception2
Hi. Recently I discovered that Delphi can detect [Ctrl]+C keys using the EControlC exception. I was curious so I decided to test it in Linux…
- Lazarus with FPC 2.3.1 i386 Mac OSX6
Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX? Normann
- Turbo Pascal and Object Pascal ways of OOP12
From the Delphi (7) help and in the borland newgroups I read that the old TP style object type is considered to disappear, and actually only kept for code compatibility.…
