Hi,
I wanted to debug where my program uses the most memory. (There are no
memory leaks, but I want to optimize memory usage on some large inputs.
As the code is quite large, simply guessing which part is responsible
becomes quite hard :) In the past, I happily used valgrind's massif tool
for
Sven Barth wrote:
You could try whether heaptrc is of any help for you (see here:
http://www.freepascal.org/docs-html/rtl/heaptrc/usage.html ). If not it
might at least provide a starting point if you should decide to write a
custom memory profiler. Otherwise I don't know of any FPC based memory
Ludo Brands wrote:
- Maybe there's a workaround? IOW, can someone successfully
use massif
with FPC programs?
This is known problem not related to fpc. Run
valgrind --tool=massif --run-libc-freeres=no ./trivial_alloc
Fantastic, many thanks, it works like a charm now! :) Both on trivial
te
Hi,
I'm not sure if anyone is actively watching the Mantis issues for
FpProfiler, so I thought I'll mention it here: I submitted a patch to
fix the compilation with fpmake from command-line. It's on
http://bugs.freepascal.org/view.php?id=21991
Regards,
Michalis
luciano de souza wrote:
I took a look in Openal examples. I need to confess that I expected
something easier. Perhaps, something like:
PlaySound('file.wav', 0)
You need to wrap OpenAL a little to get something so simple.
In my Castle Game Engine (http://castle-engine.sourceforge.net/), I hav
silvioprog wrote:
Nice project. :)
castle_game_engine-3.0.0-src.zip = +-70MB.
Most of the size comes from the examples, they contain also example 3D
data files (models, animations etc.). I prefer to give people full
package :) For those who want to get parts, they can always check out
appr
Bernd wrote:
(Almost) The only other small discontinuity was the PNG writer from
fcl-image needs to be explicitly told Indexed:=False on 64 bit while
on 32 bit this was not necessary.
Indexed is false by default in FPC >= 2.6.1, see "BTW" and notes in
http://bugs.freepascal.org/view.php?id=21
luciano de souza wrote:
Yes, there is a very nice tool. Its name is Pasdoc. Take a look here:
http://sourceforge.net/projects/pasdoc/
For this project, the author has changed the source code of Pasdoc.
Originally, it's compatible only with HTML 4, but the documentation
was released in HTML 5.
michael.vancann...@wisa.be wrote:
On Sun, 16 Dec 2012, Graeme Geldenhuys wrote:
On 15/12/2012 21:22, Sven Barth wrote:
Maybe because the authors prefered inline comments instead of fpdoc's
XML files...
A shame, because the more detailed the documentation, the more it
obfuscates the code.
e
Hi,
I would like to announce a release of Castle Game Engine 4.0.0, an
open-source cross-platform 3D game engine for Object Pascal (only
FPC/Lazarus):
http://castle-engine.sourceforge.net/news.php?id=release-4.0.0
I'm letting myself post an announcement to lazarus and fpc-pascal
mailing l
Victor Matuzenko wrote:
Hi,
I have tried to compile it under Windows XP with «make all», and got the
errors:
[...]
Compiling src\opengl\windows\castleglwindowsfonts.pas
castleglwindowsfonts.pas(81,22) Error: Incompatible types: got
"LongWord" expected "TWinCharSet"
A bug slipped into the re
Michal Wallace wrote:
The database of contributed pascal code seems to have disappeared:
http://www.freepascal.org/contrib/db.php3
Anyone know where it went, or how to get it back? :)
It's on http://www.freepascal.org/contrib/contribs.html now. But some
pages may still contain old links, se
Hi,
Like the subject says, I'm looking for a TStream implementation that
takes another TStream and compresses/decompresses data in gzip format. I
would like to read/write gzip data to a stream, any TStream (maybe
TFileStream, maybe TMemoryStream, maybe a stream from the network like
TSocketSt
José Mejuto wrote:
El 27/03/2013 19:22, Michalis Kamburelis escribió:
Google found an old thread on lazarus mailing list about this ("FPC,
gzip and stream") but without any solution, everything mentioned there
has either the limitations of TCompressionStream/TDecompressionStrea
Justin Smyth wrote:
I have converted the one from fpc to its own library to do streams , can
email it to you later if you wish
Yes, that would be appreciated. As long as everything you send me is
covered by the same license as FPC RTL (LGPL with static linking
exception), so that I can use it
Flávio Etrusco wrote:
"Members" refer to each available section according to the flags.
Re-read this whole paragraph you posted and a few following you'll
realize only one "file" is allowed in a gzip file/blob.
I think this confusion comes from the fact that
http://www.gnu.org/software/gzip/m
Hi,
I'm often reading fixed-size structures using TStream.ReadBuffer,
working under the assumption that it will fail only if it's not possible
to read the requested amount of bytes (that is, if the stream ended
prematurely). This is actually the documented usage, see
http://www.freepascal.org
Ewald wrote:
And what with non-blocking pipes pipes? Wait for a *some* period
until you get all data? It is up to the programmer to do this INHO.
If you want to get partial data (instead of waiting until all requested
data is available) you should just use TStream.Read instead of
TStream.Read
Ewald wrote:
The question that arises here is whether all the `ReadByte`,
`ReadWord`, `WriteByte`, `WriteWord`, `WriteBuffer`, ... should also
`try harder`? Same issue there: no data is returned about the actual
number of bytes read. Anyway, I leave that to someone who knows the
internals of thes
Michael Van Canneyt wrote:
The above implementation should not be changed, it is Delphi compatible:
TStream.ReadBuffer works on the assumption that Read will always return
the amount of bytes requested if they are available.
So, if you want to make changes, there is no reason why TStream.Read
sh
Michael Van Canneyt wrote:
If an implementation of Read does not return the requested data when in
fact it is available, then the implementation of Read is broken.
I guess it depends how do you interpret TStream.Read documentation...
http://www.freepascal.org/docs-html/rtl/classes/tstream.read
Mattias Gaertner wrote:
Hi all,
ExtractFilePath and ExtractFileDir stops at last '/','\', so it treats the
normal character \ as path delimiter under Unix.
Is there a RTL function that handles the \ as normal character?
You can change global AllowDirectorySeparators
(http://www.freepascal.o
Hi,
I just added an entry to "contributed units" (Kambi VRML game engine).
Of course, two seconds later I wanted to correct it. But I can't ---
looks like I cannot authenticate. And it seems it's a bug, not my bad
memory. When I input my current (both now and at the time of submitting
the ent
Florian Klaempfl wrote:
> Mattias Gaertner schrieb:
>> I need a default value of the number of maximum threads.
>> Is there already some RTL function that can be used for that?
>>
>> For example if the program runs on a 2 x quad core it would be nice to
>> get 8.
>> Hyperthreading multipliers shoul
Graeme Geldenhuys wrote:
> Hi,
>
> I'm using the following regular expression: 'foob.*r'
> Calling MatchString() against each of the items in the stringlist, I
> expected it to match 3 items. Instead it only matches the first item
> and fails all the rest. Why???
>
>
> --[ source
In case someone wonders how to workaround this bug
http://mantis.freepascal.org/view.php?id=11837
(occurs with GTK >= 2.13.4, e.g. on Ubuntu 8.10 we have GTK 2.14):
I found that the quick workaround that works is to pass --noinhibit-exec
to ld, that is "-k--noinhibit-exec" to FPC command-line. T
Lord Satan wrote:
>
> Nonetheless, I don't understand why the ARB version does not work.
> AFAIK it has the same entry points as the core functionality and
> OpenGL versions are required to support the ARB version of functions
> even if the non ARB version is in the core now.
>
No. OpenGL doesn'
Lord Satan wrote:
> On Sun, 10 May 2009 18:46:26 +0400 dmitry boyarintsev
> wrote:
>
>>> So it looks like I have to init all OpenGL versions from 1.2 to
>>> 2.0 to make sure that all OpenGL 2.0 core functions are
>>> initialized. Is this true?
>> Judging from glext, it's true.
> This makes no sen
Lord Satan wrote:
> On Sun, 10 May 2009 23:47:07 +0200
> Lord Satan wrote:
>
> I uploaded the patch to the bug tracker as issue #0013687
>
Looking quickly at the patch, it doesn't seem to set Result values
correctly. For example, all Load_GL_version_xxx will always return true,
if only the firs
Guillermo Martínez Jiménez wrote:
> Jonas Maebe wrote:
>> -klglx (note the extra "l").
>
> I tried that:
>
> fpc -02 -Sh -FUlib/ -klglx /exbasic.pp -oexbasic
>
> But it returns that error:
>
> /usr/bin/ld: lglx: No such file: No such file or directory
>
> I look for a dev package for GLX (libg
I wrote:
> Note also your error message:
>
> ./exbasic: symbol lookup error: /usr/local/lib/libagl.so: undefined
> symbol: glXQueryExtension
>
> This says something strange, the linker for some reason is looking for
> glXQueryExtension inside libagl.so.
Actually, re-reading this error message,
Lourival Mendes wrote:
> FPC/Lazarus. Is there a project on it? Is there some thing working on
> Parallel programming on FPC?
There are OpenCL bindings submitted to mantis,
http://mantis.freepascal.org/view.php?id=15297, by Dmitry Boyarintsev.
I didn't test them, as I don't have capable GPU (yet)
Hans-Peter Suter wrote:
>
> PS: thanks also to the other suggestions! And if somebody uses Emacs I
> am still interested to hear about how it goes. Thanks again!
I use Emacs most of the time to edit my Pascal (and all other :) ) code.
But it has it's learning curve. And, although there are variou
cobines wrote:
> everything is ok. But I can also assign it using class name:
>
> CM.Callback := TContextMenu.ContextMenuSelect;
>
This is the way it's supposed to work in delphi mode, as far as I
remember Delphi allows it (disclaimer: I don't have Delphi now to check,
but it used to be so aro
ik wrote:
> On Sat, Feb 20, 2010 at 20:01, Jürgen Hestermann
> mailto:juergen.hesterm...@gmx.de>> wrote:
>
>
>
> y := case Other of
> bla : 'hello';
> foo : 'bye';
> baz : 'adius';
> end;
>
>
> What do you gain with this
Graeme Geldenhuys wrote:
> On 21 February 2010 17:00, Michalis Kamburelis
> wrote:
>> Which also means "less chance of mistake". For example, if you decide
>> later to change "y" to "y1", you only have to change the code in one
>> place, n
All the talk about the Pascal parser in fcl-passrc got me interested
recently. I did some experiments, and I thought I mention here:
1. I added a simplest example how to use fcl-passrc to the wiki:
http://wiki.freepascal.org/fcl-passrc
2. And reported a couple of bugs found in fpdoc (tested on P
Graeme Geldenhuys wrote:
I can't find an example for loading a .wav file.
[...]
Any hints or sample code. The sample included in FCL 2.4.1 loads MAD, A52,
OGG and ModPlug only. Google revealed a tutorial using AlutLoadWavFile(),
but that is in the "unofficial utilities library", it's not part
Marco van de Voort wrote:
>> If your distro complies with the LSB standards (most popular distros
>> do), then you should have a /etc/lsb-release text file that you can
>> parse.
>
> FC11, no such file, but there is a dir lsb-release.d with the contents
>
You're not really supposed to be looking
Darius Blaszyk wrote:
> Has anyone ever converted the SDL_opengl header to FPC? Couldn't find it
> in the repository, but perhaps someone knows if it is part of another
> project.
>
SDL_opengl.h is just (one of the) cross-platform ways to include OpenGL
stuff in C programs. We don't need it in FP
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 communicates with clients by
very nice TSimpleIPCServer class (in SimpleIPC unit). Of course it's
trivial to send a message to such server
Hi,
Consider the attached source code. I have a base interface (IA) and a
descendant interface (IB). Class TB is declared as
TB = class(TInterfacedObject, IB) end;
Now I would expect that both
Supports(TB, IA)
Supports(TB, IB)
return true. After all, TB is forced to implement methods of
Paul Ishenin wrote:
> 06.01.2011 20:14, Michalis Kamburelis wrote:
>> return true. After all, TB is forced to implement methods of both IA and
>> IB, as IB descends from IA. But to my surprise, Supports(TB, IA) returns
>> false.
> This is expected behavior. It works t
Hi,
For people working with new OpenGL features: I just submitted a patch
to upgrade our GLX unit to GLX 1.4, add some new GLX extensions, and
add comfortable functions to check existence of a particular GLX
extension/version. This allows you to easily use modern GLX "FB
config" functions to initi
dhkblas...@zeelandnet.nl wrote:
When you have overloaded functions, fpdoc will group them on one page.
The arguments however are listed in two separate arguments sections. It
would be nice to have the arguments merged in one section. I do not know
how to display the arguments though (no idea what
Kornel Kisielewicz wrote:
Ok, I've been arguing over that with a friend of mine for a couple of
e-mail's now... I need your help!
Let me show an example first:
type TFoo = class end;
var Foo : TFoo;
The question is, wether this is valid:
if (Foo <> nil) and (Foo.inheritsFrom(TFoo)) then do_
Tom Verhoeff wrote:
[...]
I was thinking of adding a remote FreePascal service along the following
lines. You go to its web interface, browse for your source files
(possibly a whole zip archive) on your local machine, enter command-line
options, and let our server compile your stuff with a (sel
Bob Richards wrote:
[...]
According to the docs on function "Hex2Dec" in Strutils:
"If S does not contain a valid hexadecimal value, an EConvertError exception will be
raised."
So, what profound lack of understanding am I suffering from? Anybody?
There's a bug in Hex2Dec implementation --
Bob Richards wrote:
Michalis Kamburelis wrote:
There's a bug in Hex2Dec implementation -- it returns 0 instead of
raising EConvertError. Here's a patch:
Index: strutils.pp
===
--- strutils.pp(wersja 2298)
+++ s
A.J. Venter wrote:
Hi, I am using standard run of the mill randomize/random() calls in a program
to generate random numbers, used in turn to select random data which is fed
into another program.
(All this just to create a multi-language enabled module structure eh)
Well there is just one littl
(Second send, it seems that mails from my old email address do not reach
fpc lists)
Antal wrote:
It's not just that, but randseed is not a threadvar. This means that
all your threads use the same randseed variable, so if two threads
call "random" at the same time they will still get the same "
(Second send, it seems that mails from my old email address do not reach
fpc lists)
L505 wrote:
[...]
In other words you can reinvent your own writeln style procedures and pass
parameters of *different types* simutaneously. I was under the impression you
could only pass parameters of the same
L505 wrote:
[...]
In other words you can reinvent your own writeln style procedures and pass
parameters of *different types* simutaneously. I was under the impression you
could only pass parameters of the same type through this [] square bracket
trickery.
See docs: [http://www.freepascal.org/
Antal wrote:
It's not just that, but randseed is not a threadvar. This means that
all your threads use the same randseed variable, so if two threads
call "random" at the same time they will still get the same "random"
number.
Jonas
And also generating a rand * getpid you can't really get goo
Koenraad Lelong wrote:
> Hi,
> I wanted to use a gtk_file_chooser_button, but I couldn't because
> gtk_file_chooser_button_new doesn't exist (v2.0.3 and svn-version). So I
> added it (and some others) in gtkfilechooser.inc (see enclosed diff). Is
> this the right place ?
I think it should go to s
Darius Blaszijk wrote:
> Hi,
>
> I have two overloaded functions. One overloaded function just rearanges
> one parameter from an array of extended to an array of ^extended and
> calls the other overloaded function. The problem is however that the 2nd
> function call crashes the app. I really have
Marc Santhoff wrote:
> Hi,
>
> the docs only show examples of macros without any parameters. Is it
> possible to use them?
>
> Can I make this work anyhow:
>
> {$MACRO ON}
> {$define HOFFSET(rec,field) := pointer(@rec.field) - pointer(@rec)}
>
> type
> s1_t = record
> a: lon
Pete Cervasio wrote:
> On Wednesday 11 October 2006 19:37, Andrew Haines wrote:
>> TOUZEAU DAVID wrote:
>>> Dear
>>>
>>> I need to detect if the program is executed as root privileges on Linux
>>> system.
>>> Did somebody had developped a such function ??
>>>
>>> Best regards.
>> Well you can try G
Graeme Geldenhuys wrote:
> Hi,
>
> GTK's progress bar has a feature where the progress bar moves left and
> right repeatedly, instead of the normal from Min to Max.
>
> What do you call that feature and what do you actually use it for?
> I know I have seen in used in Mozilla Thunderbird as well,
Hi
I experience problems linking using "external" keyword on Mac OS X.
Program with declaration like
procedure glVertex3f(x, y, z: Single); cdecl; external 'GL' name
'glVertex3f';
fails to compile with
$ fpc external_decl.pas
/usr/bin/ld: Undefined symbols:
_glVertex3f
Error: Error while
Thank you Jonas for detailed answer. I submitted related patch to
gtkglext units at [http://www.freepascal.org/mantis/view.php?id=8585].
Michalis
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc
Henry Vermaak wrote:
[...]
>
> 2) BoolToStr returns '0' for False and '-1' for True...
>
[...]
That was intentional change in r5744. Changelog says
* booltostr now D7 compat.
so that's it... You have to pass 2nd argument "true" for BoolToStr now
to get 'False' or 'True' results (or whatever you
Christos Chryssochoidis wrote:
> Hi,
>
> I tried to write some function that returned a dynamic array, and
> realized that this isn't allowed. Why? After all one can specify an
> array of variable length as type for variables... Furthermore - if I'm
> not mistaken - a dynamic array is implemented
Marc Santhoff wrote:
> Hi,
>
> is it possible to tell fpc to only replace macros in the code and
> store/show the generated file?
>
> Like Running "cpp myfile.c > myfile.preprocessed.c"?
>
This doesn't answer your question, but maybe it's helpful:
While developing pasdoc, I wrote a Pascal prep
2007/7/22, Leonardo M. Ramé <[EMAIL PROTECTED]>:
> Does anyone used/created a unit to interact with ISpell or ASpell
> spellcheckers?
>
You can see pasdoc [http://pasdoc.sipsolutions.net/] source code,
units source/component/PasDoc_Aspell.pas and
source/component/PasDoc_ProcessLineTalk.pas. This
Frank McCormick wrote:
> Resending because of some changes in my results.
>
>
> I am having a tough time using the keyboard unit under Linux. Please tell me
> whats wrong with this code:
>
> ( var section cut out)
>
> Begin
>InitKeyBoard;
>Repeat
> K:=pollKeyEvent;
> if k <>0
Jakub Marian wrote:
Hello,
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 using glReadPixels() function) into image. I've downloaded
PasJPEG, but it doesn't seem to be working
Marco van de Voort wrote:
Jakub Marian wrote:
The image format in the memory is clearly specified, as the main use of
this unit is to cooperate with OpenGL (for loading images, textures,
saving screenshots etc.). See TImage class comments, basically RawPixels
is simply a pointer to an array o
Jakub Marian wrote:
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 that field so I may be doing domething wrong. I have glext
in my "uses". I tried just to call glCreateProgram
Jakub Marian wrote:
Well, glext_LoadExtension('GL_version_1_4') was just an example, of course
that I tried Load_GL_version_2_0 and some other functions. But I get "access
violation" when I try to call ANY function from glext. I would understand it
if I got just false as a return value of a func
(SegB000,0)) BUT it works
under many platforms - in particular, it works under Win32.
For more information, look at the FPC documentation for this unit.
Regards,
--
Michalis Kamburelis
[EMAIL PROTECTED]
http://www.camelot.homedns.org/~michalis/
___
fpc-p
Rich Pasco wrote:
Michalis Kamburelis wrote:
Unit Video is exactly what you are looking for - it lets you write/read
characters and their attributes (text color + background + blink
attribute) directly to/from a buffer in memory and then use simple
UpdateScreen procedure to "flush"
e like
Win32Check( WinAPICall(..) )
or
Win32Check( WinAPICall(..) <> )
Hope this helps someone to simplify error handling in WinAPI programs.
--
Michalis Kamburelis
<[EMAIL PROTECTED]>
http://www.camelot.homedns.org/~michalis/
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
.x there's nothing to worry (however you should be
aware of this if you're writing some non-testing code, that you might want to compile
some day with FPC 1.1 or higher).
Regards,
Michalis Kamburelis
<[EMAIL PROTECTED]>
http://www.camelot.homedns.org/~michalis/
_
uspecting that your problems are originated from some bugs
in Windows unit.
Regards,
--
Michalis Kamburelis
<[EMAIL PROTECTED]>
http://www.camelot.homedns.org/~michalis/
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
James Mills wrote:
Hi,
I noticed the other day that one of my FPC programs which does not in
anyway shape or form use the gpm or any mouse libraries actually
requires the gpm library to be installed.
It seems the fpc 1.0.10 is compiling programs and requiring libgpm to be
installed.
Why is this ?
James Mills wrote:
On Thu, Oct 23, 2003 at 09:16:19AM +0200, Marco van de Voort wrote:
On Wed, Oct 22, 2003 at 10:53:51PM +0200, Michalis Kamburelis wrote:
Maybe you're using the Keyboard unit ? This unit uses Mouse in it's
implementation, and by default unit Mouse uses Gpm unit (tha
Karim wrote:
Hello
I want to know, how to load a png image with freepascal ?
There is a png libpng package shipped with FreePascal, but I cannot find
any examples or docs.
Pascal unit Libpng is just a wrapper that calls functions from
libpng.so. Documentation for libpng is available at the offi
ringincv' in object file.
Thanks in advance,
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
--
Michalis Kamburelis
<[EMAIL PROTECTED]>
http://www.camelot.homedns.org/~michalis/
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Crabtree, Chad wrote:
Hello I am having a dikens of a time getting my IP address on the machine
that I am working on. I've looked in the mailing list and I found something
that I've been toying with but still I cannot get the xxx.xxx.xxx.xxx style
name I can only get my machine name. Here's what
Crabtree, Chad wrote:
Ok. Thank you that worked however I'd like to ask some questions. I tried
to find the answer by looking at the source code however I'm confused by
this code
abcd:=PABCD(phe^.h_addr_list[0])^;
I beleive this automaticly parses h_addr_list[0] into the record. Not sur
Jacobo García López de Araújo wrote:
> Hi, it's my first post to the list so i want to salute everyone.
>
> And here is my question, i'm trying to make freepascal working under
> emacs in linux debian. But i have no quote about that, i could have my
> sintax colored using Options/Syntax Highlighti
Alan Mead wrote:
I have the following code in a function:
{$IFDEF LINUX}
Slash := '/';
{$ENDIF}
{$IFDEF WIN32}
Slash := '\';
{$ENDIF}
Obviously, FPC supports many other platforms. Is there a better way
to handle this?
Use DirectorySeparator constant from Syst
Hi
You made a few mistakes translating GetCurrentHwProfile to Pascal:
1. parameter to GetCurrentHwProfile should be TProfileInfo, not
PProfileInfo (using "var" parameter already forces passing HWProfile by
reference)
2. result of GetCurrentHwProfile should be LongBool (4 bytes), not
boolean (1
Jim Wilson wrote:
At 12:00 AM 6/22/2004, you wrote:
You made a few mistakes translating GetCurrentHwProfile to Pascal:
Figures it was me... :-)
1. parameter to GetCurrentHwProfile should be TProfileInfo, not
PProfileInfo (using "var" parameter already forces passing HWProfile
by reference)
Tha
Matt Emson wrote:
...
It should be boolean. All Win32API return values which are BOOL translate as
Boolean.
That's not true. WinAPI uses BOOL type, it's defined in WinAPI headers as
typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
...
typedef WINBOOL BOOL;
So BOOL is int. So it's 32-bit value on 32-
Hi
Your problem is the consequence of how ReadLn(Longint) works. When you
enter 'g' + Enter, ReadLn reads 'g', then ReadLn raises runtime error
(this causes EInOutError exception), but Enter is still left unread (it
stays in internal Input buffer). That's why the next ReadLn ("ReadLn
(tmpLabel
When you compile using -S2 parameter you are compiling in objfpc mode.
This mode is not exactly compatible with Delphi. In this particular
case, the problem is that in objfpc mode method parameters can't have
the same name as the object properties and fields (that's what
"Duplicate identifier .
Joseph Hewitt wrote:
Does anyone know of any mesh handling units for FreePascal? It would be
nice if poses/animation were also supported.
- JH.
You can take a look at my programs at
http://www.camelot.homedns.org/~michalis/
I have there programs to handle VRML
Anton Tichawa wrote:
Michael Van Canneyt wrote:
On Wed, 29 Sep 2004, Jilani Khaldi wrote:
Hi All,
Does somebody kown the algorithm to convert a date from the double
format to an explicit format?
Example: the function "now" givers me: 3.825956615197917E+004
I want to transform it in: year-month-
Alan Mead wrote:
...
I was hoping that the algorithms underlying the RTL.Randomize and
RTL.Random would switch to using MT in fpc version 2.
-Alan
Reading comments in rtl/inc/system.inc FPC 1.9.x uses Mersenne Twister.
Commited to CVS on 2003/10/26 by Jonas.
--
Michalis
_
Hi!
I'm working on a 3D game in FPC since 2 years. There are still many
things to do, but also many things are already done and working. I have
units to
- deal with OpenGL (including GLWindow, my own glut-replacement in
ObjectPascal, able to work on top of GTK or XLib or WinAPI),
- load and proce
Hi,
I'm attaching my unit TextReader, it
- implements TTextReader class (that is able to read from any TStream
class using simple Readln and Eof methods) and
- initializes/finalizes some variables to treat standard input/output
like a TStream classes (or, only in case of standard input, like a
Hi
This problem arised with recent change to JEDI-SDL, but it seems a
general problem with linking to libraries under UNIXes.
Before the change, JEDI-SDL headers linked to libraries named like
'libSDL.so', using constructs that looked like (after removing preproc
$ifdefs and resolving constants
Peter Vreman wrote:
Hi
This problem arised with recent change to JEDI-SDL, but it seems a
general problem with linking to libraries under UNIXes.
Before the change, JEDI-SDL headers linked to libraries named like
'libSDL.so', using constructs that looked like (after removing preproc
$ifdefs and res
Pedro Lopez-Cabanillas wrote:
Hi,
On Wednesday 05 January 2005 16:49, Michalis Kamburelis wrote:
So it seems that fpc passes to ld -lSDL-1.2, and ld looks for
'libSDL-1.2.so' (without '.0' suffix). Honestly, I don't know what one
should pass to ld to tell it to
Hi
While converting some Delphi project to Lazarus I noticed that in FPC
RTTI there is no way to mark a property as having *no* default value.
This particular Delphi project depends on it (it relies on the fact that
when saving some object to the stream, some of the properties will
*always* be
Marco van de Voort wrote:
The second question (is gtkentry widget in W32 release corrupted?)
remains alive.
GTK1 was debugged for Windows because lazarus used it at first. However
Lazarus switched to plain win32 later, so I don't think GTK2 on windows is
too well debugged in relation with FPC, an
Hi
I found the problem: TGtkBox record layout and size is not correct for
Win32 GTK 2 libraries. This causes that "PGtkCombo(c)^.entry" does not
work as it should, because address of "entry" field in "TGtkCombo" is
different than it should be. TGtkBox is currently defined as
TGtkBox = record
Bob Barry wrote:
Attempt to compile current cvs failed due to directory "gtkglext" missing from
fpc/packages/extra/gtk2/examples:
make[6]: Leaving directory `/home/bobb/freepascal/cvs/fpc/packages/extra/gtk2/examples/plugins'
make -C scribble_simple clean
make[6]: Entering directory `/home/bobb/f
1 - 100 of 180 matches
Mail list logo