fpc-pascal · 2010-12
- Windows on ARM, how fast it can be implemented?20
If this news is right http://www.bloomberg.com/news/2010-12-21/microsoft-is-said-to-announce-version-of-windows-for-arm-chips-at-ces-show.html There will be ARM Win32 in…
- Working Free Pascal android JNI example42
I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…
- FPC programs in Android without JNI14
There was already a previous thread about Android apps with JNI, so I thought I should start one for discussing non-JNI apps, which means that I am really running…
- The new Delphi 2010 RTTI52
Delphi 2010 has changed the RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476)…
- Sin function5
according to docs/reference sin function should print 0.0 when Writeln (Sin(Pi):0:1); but, with fpc 2.4.0 and 2.4.2 (x86) I've get "-0.0", such a result is not entirely…
- Lifetime of a database (PostgreSQL) connection4
I've just taken our name server down for maintenance, and noted that a db-aware app I'd left running ground to a halt despite the fact that it was only activating…
- Moving callbackfunctions to class18
GLut defines callback functions, one of them is the display function, which is defined as: TGlutVoidCallback = procedure; cdecl; This is set by calling…
- TEventLog rewrite the log file3
I've started using the TEventLog class and it seems to rewrite any existed content of the log file instead of append it. The code uses fmCreate, so I do not understand…
- Unicode strings8
Hi What I have understood so far: WideString uses UTF16 encoding. It is managed by Windows and so is not reference counted by Delphi or FPC under Windows. However it is…
- constant records as default parameters2
I'd like to use a constant record as a default parameter. Is there some way to do this? Here's my use case: type lt_ints = record left, top : longint; end; const lt_zero…
- commutative operators7
suppose I define an operator: operator + (a: one_type; b: another_type) : one_type; Is there any way to specify that it should be "commutative", so I don't have to…
- Progress indication while linking11
On low-spec systems (for example Linux on ARM with 32Mb or Solaris on SPARC with 128Mb) linking a large project such as the Lazarus IDE can take several days. Is it…
- Is there an HMAC digest implementation that works with the FCL?0
Is there an HMAC digest implementation that works with the FCL, ie with the code fpc\2.4.0\source\packages\hash? Frank Church =======================…
- I need some help with using Rijndael encryption algorithm0
I am using the Rijndael algorithm to encrypt some application settings, but it does not generate the type of variation in the encrypted output I expect. I am not quite…
- Ruby-scripting for FPC and Lazarus4
I wrote the packages for Lazarus, allowing to use Ruby 1.8 as a scripting engine in Lazarus-programs. At the moment, work is just begun, but something than it is already…
- evaluation of set constant3
Hi List. Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type…
- A cross-architecture Integer type for 32-bit and 64-bit2
Is there a data typein FPC which is compiled as Cardinal in 32-bit, but compiled as UInt64 in 64-bit?
- fpGUI powered by OpenGL17
Today after tinkering a few hours I managed to get an fpGui hello world app running with OpenGL and GLut as back-end. It seemed even easier than anticipated to switch…
- Current TThread5
How to get the current TThread instance? For example: I created a TThread and called a function, which calls a function .... One of those sub functions needs to call…
- Firebird 2.5 embedded bug? Debugging skills needed1
(Posted to Firebird-dev list, copied to freepascal list for info) Recently I mentioned a problem running FreePascal 64 bit code with Firebird 2.5 embedded 64 bit on…
- Need help fixing leaks3
Could anyone please help me fixing leaks in my http://free-pascal-general.1045716.n5.nabble.com/file/n3312878/llvmirbuilder.zip project ? This is the output when I debug…
- generics class hierarchy16
How can I use inheritance with generics? e.g. type generic gt_point<_num> = class ... end; generic gt_box<_tpoint,_num> = class (_tpoint) ... end; The above gives me an…
- CDDB unit1
Does anyone have the cddb unit that was on the wiki once upon a time? http://wiki.lazarus.freepascal.org/CDDB The link on that page is now dead. Andrew
- Having trouble defining an initialized constant correctly1
Please excuse me if I've posted this request to the wrong list. I really did spend some time in trying to find a FPC list for simple coding questions. Sorry. I have a…
- Problem with OpenGL drawing on Linux6
In my code I experience a problem with drawing stippled lines with OpenGL. In the following example no line is drawn, but when I change glVertex2f(40, 480); to…
- SIGSEGV in SYSTEM_TOBJECT_$__CLEANUPINSTANCE when calling from C app3
Hi! I created a C application which calls methods from a library developed in Pascal. I can create objects by using void *test; test = br_object_new (); and access the…
- Pascal Scripting Engines9
I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came…
- Please update ubuntu repository1
When updating 2.4.0 to 2.4.2 I noticed that the Ubuntu repository on www.hu.freepascal.org, has not been updated yet. Could someone please upload the latest versions…
- Code to send message from Python script to FPC's TSimpleIPCServer0
Just sharing, in case someone will find the below information useful, or worthy to add to some wiki or docs anywhere: I have here a daemon written in FPC that…
- Numerics and graphics in Free Pascal2
I am new to the list and read it for nearly a week now. So it may be the topic is already answered. In this case, I say sorry. I want to start programming in Free Pascal…
- Re: Data alignment of records1
Not only want to know the alignment of different data types, there are also other things, the reasons are: 1. Because I want to learn and understand how the compiler…
- Re: Data alignment of records1
Sorry. Can someone explain to me, about the Data alignment of records and other variables. thanks.
- Re: Looking for SDL_opengl header6
Couldn't find it there, although there are some examples with SDL and OpenGL available with Jedi-SDL. So perhaps I don't need a specific SDL_opengl header (I'm porting a…
- crash in tobject.free2
I'm encountering a consistent crash, and I'm not sure how to address the problem. using: - laz 0.9.28.2-8 beta, svn 22277, from debian testing -- a rather outdated one,…
- Data alignment of records1
I can not understand the data alignment of records. I compiled the program PackRecordsDemo, http://www.freepascal.org/docs-html/ref/refsu16.html#x40-470003.3.2 sample…
- 2D Dynamic arrays and BlockRead7
After using BlockRead to fill a 2D dynamic array, I get an access violation on the very first reference. A 2D array with only one dimension dynamic works OK. What am I…
- Compile 2.5.1 Ubuntu&In-Reply-To=1
I think the problem is that SVN does not update 'Makefile' and 'Makefile.fpc'. You need to delete them and you can regenerate them with 'svn update'. Try it and tell us.
- make[4]: i386-win32-as: (command not found)2
make clean all CPU_TARGET=i386 OS_TARGET=win32 make install CPU_TARGET=i386 OS_TARGET=win32 PREFIX=/home/kxu/DevPascal/fpc_inst/fpc_win32 FPC_VERSION=2.4.3 make -C…
- Compile 2.5.1 Ubuntu0
There are several months since I recompiled my 2.5.1 (SVN) in Ubuntu, today I had installed 2.4.2 and tried to recompile SVN today, but:…
- OFFTOPIC: Money Model, for FPC1
Is Firebird really free? If you’re expecting some sensation, I’ll not make you happy. Shortly, yes, Firebird is free, completely. You can use it wherever you want…
- Cannot get TFPTimer to work4
Whatever I tried, I cannot get TFPTimer to work. Can someone help? For some reason the OnTimer even is never fired. Tried on Windows and Linux. Here's a snippet I used…
- methods of an object to create others objects83
We can to use methods of an object to create others objects, or this is a bad programming practice? eg: var obj1, obj2: TmyObject; begin obj1 := tobj1.create; //ok obj2…
