Re: [fpc-pascal] FPC 3.0 deb packages?

2016-09-06 Thread Tomas Hajny
On Tue, September 6, 2016 10:36, Karoly Balogh (Charlie/SGR) wrote: > On Mon, 5 Sep 2016, Jon Foster wrote: Hello everybody, Please note that the original poster (Jon Foster) is apparently not subscribed to the mailing list (although he has not mentioned this in his post). I suggest that you

Re: [fpc-pascal] Variant record consistency

2016-08-07 Thread Tomas Hajny
On Sun, August 7, 2016 18:11, Mark Morgan Lloyd wrote: Hello Mark, > Given a declaration > > const >topDataQword= 29; >topNameChar= 231; > > type >Tfnord= record > case boolean of >false: (data: array[0..topDataQword] of qword); >true:

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-26 Thread Tomas Hajny
On Mon, July 25, 2016 21:29, Nikolay Nikolov wrote: . . > have, that has two ISA slots, is a K6-2 and I doubt if > it's possible to configure it to run with two 8-bit ISA > video cards, provided that this is a PCI/AGP era > machine. I haven't tried it yet, but I suspect the BIOS > would scream

Re: [fpc-pascal] Mouse, scroll wheel support?

2016-06-29 Thread Tomas Hajny
On Wed, June 29, 2016 11:04, Michalis Kamburelis wrote: > 2016-06-28 15:05 GMT+02:00 John Youngquist : Hello, Apparently, the original poster forgot to mention that he wasn't subscribed to the list and thus he might not see responses to his question - adding him in Cc: of

Re: [fpc-pascal] code example where AnsiString used in FCL (SqlDB) causes data loss

2016-05-11 Thread Tomas Hajny
On Wed, May 11, 2016 22:08, Graeme Geldenhuys wrote: > On 2016-05-11 18:58, Michael Van Canneyt wrote: >> For 99,99% of cases, no changes to your code are required. >> If it worked in 2.6.4, it will work in 3.0.0 > > Just curious, so why was there so many changes required for LCL, and a > whole

Re: [fpc-pascal] The world is ending (was: Warning not to use the "String" type with FPC 3.x)

2016-05-09 Thread Tomas Hajny
On Mon, May 9, 2016 21:34, Jonas Maebe wrote: > Graeme Geldenhuys wrote: Hello Graeme, >> Now some would say, simply switch your compiler mode to DelphiUnicode. >> But I don't want to do that, because I like the stricter ObjFPC mode, >> and prefer ObjFPC's syntax. > > While still missing in the

Re: [fpc-pascal] Warning not to use the "String" type with FPC 3.x

2016-05-09 Thread Tomas Hajny
On Mon, May 9, 2016 17:49, Graeme Geldenhuys wrote: > On 2016-05-09 16:34, Sven Barth wrote: >> MS-DOS and Win16 where memory restrictions are much more likely to >> arise. > > Fair enough. Then use UTF-8 (instead of UTF-16) as the default (or only) > encoding for the RTL. UTF-8 memory usage is

Re: [fpc-pascal] Warning not to use the "String" type with FPC 3.x

2016-05-09 Thread Tomas Hajny
On Mon, May 9, 2016 13:10, Graeme Geldenhuys wrote: > On 2016-05-09 11:47, Jonas Maebe wrote: Hello Graeme, >> Having opinions available is not the issue. Getting people to completely >> implement all of their opinions so that we can compare all options in >> practice, > > And we all know that

Re: [fpc-pascal] hello world

2016-05-05 Thread Tomas Hajny
On Thu, May 5, 2016 15:34, Mark Morgan Lloyd wrote: > Tomas Hajny wrote: >> On Thu, May 5, 2016 11:38, M Pulis wrote: > >>> why won't this compile? It is the only open file and is saved, looks >>> like a main program to me. > >>> No main program found in

Re: [fpc-pascal] hello world

2016-05-05 Thread Tomas Hajny
On Thu, May 5, 2016 11:38, M Pulis wrote: Hello, > Folks: > > Apologies for the beginner nature of this query... > > why won't this compile? It is the only open file and is saved, looks > like a main program to me. . . > getting: > > No main program found in open files. Can not build. I

Re: [fpc-pascal] Debug and Release RTL & FCL side by side

2016-04-29 Thread Tomas Hajny
On Fri, April 29, 2016 11:20, Graeme Geldenhuys wrote: Hi, > I sometimes hit a bug in my applications, but then there is no Stack > Trace information, or simply something like 3 entries that don't give > much information. See attached screenshot as an example. Apparently this > is caused by the

Re: [fpc-pascal] Class vs Object type

2016-04-06 Thread Tomas Hajny
bjects to the uses clause (see also the e-mail from Sven). Tomas > ______ >> Od: Tomas Hajny <xhaj...@hajny.biz> >> Komu: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org> >>

Re: [fpc-pascal] Class vs Object type

2016-04-06 Thread Tomas Hajny
On Wed, April 6, 2016 13:26, Michael Van Canneyt wrote: > On Wed, 6 Apr 2016, Graeme Geldenhuys wrote: Hi, >> I use Class and Object data types frequently in my code. I like the fact >> that Object data types can be used without first instantiating an >> instance and it gets freed automatically.

Re: [fpc-pascal] AnsiCompareStr question (again...)

2016-03-05 Thread Tomas Hajny
On Sat, March 5, 2016 23:51, Bart wrote: > On 3/5/16, Jonas Maebe wrote: > >> One probably includes cwstring, while the other one doesn't. >> AnsiCompareStr can be intercepted/replaced by widestring manages such as >> cwstring. > > Sample from above on Linux 32-bit: >

Re: [fpc-pascal] compile Link Smart option, is it -XX or -CX?

2016-03-03 Thread Tomas Hajny
On Thu, March 3, 2016 12:12, Dennis Poon wrote: > Sven Barth wrote: >> Am 03.03.2016 09:26 schrieb "Dennis" > >: >> > >> > According to http://www.freepascal.org/docs-html/prog/progse30.html >> > >> > the smartlink option on the command line is

Re: [fpc-pascal] Please someone explain this to me

2016-02-10 Thread Tomas Hajny
On Wed, February 10, 2016 22:04, Anthony Walter wrote: > What about the interface section includes and {$region} option I > described. > Does anyone care to discuss that option? Please go back a few messages and > read what I wrote. I don't get your $region idea, but as a maintainer of one of the

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Tomas Hajny
Hello everybody, Since we're getting back to the same sort of discussion, I'd like to remind three statements (before closing this thread here similarly to the other two): 1) Sven wrote: "There will be *no* replacement in the foreseeable future. This is not up for discussion." 2) Michael wrote:

Re: [fpc-pascal] simple conversion of unicode chars

2015-12-27 Thread Tomas Hajny
On Sat, December 26, 2015 20:07, ulrich wrote: Hi, > I need the simplest possible transfer of one unicode character (numeric > string or integer) to the default windows code page (CP1250). Simple assignment to an ansistring or shortstring does implicit conversion using the current process

Re: [fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-23 Thread Tomas Hajny
On Wed, December 23, 2015 11:41, Lubos Pintes wrote: Hello Lubos, > The result isthe same, I tried it before I wrote my message. > I even tried to temporarily write ordinal codes of characters, it seems > that a string is not automatically converted to a WideString when > assigned, there wereno

[fpc-pascal] Fwd: Re: Lack of 'volatile' a serious issue. Any other such caveats?

2015-12-18 Thread Tomas Hajny
Yet again - as just confirmed in a follow-up e-mail of the original poster, better keep him in Cc: of your responses. Tomas Original Message Subject: Re: [fpc-pascal] Lack of 'volatile' a serious issue. Any other such caveats? From:

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 00:04, Lukas Gradl wrote: Hello, . . > When calling fpc from linux command line -Twin32 is missing. -TWin64 > works as expected. > > Where did -Twin32 go? > > I'm using Debian jessie x86_64 as main OS. > > I compile fpc from the latest trunk sources with a script I

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 01:02, Lukas Gradl wrote: >> >> What does '`fpc -Pi386 -PB`' do (the outer quotes should be removed >> before >> copying it to the command line, the inner quotes are there on purpose)? > > it says: > /usr/bin/ppcross386 > > When I call that directly I get win32 under the

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 01:31, Lukas Gradl wrote: . . > you mean calling through fpc -Twin32 -Pi386 ? > > I tried that - got the "Error: Illegal parameter: -Twin32" again... . . Yes, that's what I meant. Could you please check the timestamp of the fpc binary on your path to make sure that it

Re: [fpc-pascal] which GUI (noob)

2015-12-02 Thread Tomas Hajny
On Wed, December 2, 2015 09:28, Mark Morgan Lloyd wrote: > Saša Janiška wrote: >> On Uto, 2015-08-04 at 16:35 +, Mark Morgan Lloyd wrote: Hi, Unfortunately, the original poster didn't mention that he wasn't subscribed to the list, but I'd suggest keeping him in Cc: of potential answers. >>

Re: [fpc-pascal] which GUI (noob)

2015-12-02 Thread Tomas Hajny
On Wed, December 2, 2015 10:08, Saša Janiška wrote: Hi, >> Unfortunately, the original poster didn't mention that he wasn't >> subscribed to the list, but I'd suggest keeping him in Cc: of >> potential answers. > > I'm the original poster (merged two of my email addresses into new one) > and

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-23 Thread Tomas Hajny
Hello everybody, Could we please stick to FPC related topics on this list? I don't think that VPN connectivity and discussion about version control systems fit this definition. Feel free to continue these discussions in the mailing list fpc-other. Thank you Tomas (one of FPC mailing list

Re: [fpc-pascal] OpenSSL

2015-11-17 Thread Tomas Hajny
On Tue, November 17, 2015 15:29, Dmitry Boyarintsev wrote: > On Tue, Nov 17, 2015 at 9:29 AM, Tomas Hajny <xhaj...@hajny.biz> wrote: > >> How should the linker know which of the equally named symbols should be >> linked in out of those equally named object files th

Re: [fpc-pascal] OpenSSL

2015-11-17 Thread Tomas Hajny
On Tue, November 17, 2015 15:24, Dmitry Boyarintsev wrote: > On Tue, Nov 17, 2015 at 9:19 AM, Michael Van Canneyt > > wrote: > >> I fail to see how this will solve the problem that you want to use 2 >> units >> with the same name at the same time, as for the OP. >> > I

Re: [fpc-pascal] OS/2 $fpctarget macro in FPC .cfg files

2015-11-08 Thread Tomas Hajny
On Sun, November 8, 2015 12:03, Graeme Geldenhuys wrote: Hi Graeme, . . > I have use the $fpctarget macro for unit output for years, and this > works under Windows, Linux and FreeBSD. > > eg: > -FU../lib/$fpctarget/ > > The output is normally something like "../lib/i386-linux/" or >

Re: [fpc-pascal] OS/2 $fpctarget macro in FPC .cfg files

2015-11-08 Thread Tomas Hajny
On Sun, November 8, 2015 15:30, Graeme Geldenhuys wrote: > On 2015-11-08 13:26, Tomas Hajny wrote: . . > I wasn't doing cross-compilation. I have a build script for fpGUI that > creates the unit output path (seeing that FPC doesn't create paths at > compile time), then I compile t

Re: [fpc-pascal] variable declarations with 'absolute' syntax

2015-10-14 Thread Tomas Hajny
On Wed, October 14, 2015 17:19, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> >> There's a lot of use in embedded targets: >> > >> > Ah, thank you. Finally an answer I can understand. :) >> >> The case of MS-DOS using

Re: [fpc-pascal] variable declarations with 'absolute' syntax

2015-10-13 Thread Tomas Hajny
On Wed, October 14, 2015 00:02, Graeme Geldenhuys wrote: > On 2015-10-13 at 22:13, Michael Ring wrote: >> There's a lot of use in embedded targets: > > Ah, thank you. Finally an answer I can understand. :) The case of MS-DOS using it e.g. to provide direct access to the video adapter memory

Re: [fpc-pascal] Installing fpc

2015-09-08 Thread Tomas Hajny
On Tue, September 8, 2015 11:10, Sven Barth wrote: > Am 08.09.2015 09:04 schrieb "Tomas Hajny" <xhaj...@hajny.biz>: >> > To come back to the response on my email: I've started off by >> > downloading the lazarus1.4.2.deb file (I use Ubuntu 14.04) and used >

Re: [fpc-pascal] Installing fpc

2015-09-08 Thread Tomas Hajny
On Mon, September 7, 2015 22:36, Steph Bredenhann wrote: Hello Steph, > Thanks for the reply, you are more than welcome to register my email on > your mailing list. I got the email address in a google search when I > searched for a solution. If you decide to subscribe to the list, please, do

Re: [fpc-pascal] Installing fpc

2015-09-08 Thread Tomas Hajny
On Tue, September 8, 2015 11:43, Mattias Gaertner wrote: > On Tue, 8 Sep 2015 11:21:18 +0200 > "Tomas Hajny" <xhaj...@hajny.biz> wrote: Sharing the response from Mattias Gaertner (for Lazarus) below with the original poster in Cc: (since he isn't subscribed to the

Re: [fpc-pascal] Installing fpc

2015-09-07 Thread Tomas Hajny
On Mon, September 7, 2015 08:44, Michael Van Canneyt wrote: > On Sun, 6 Sep 2015, Steph Bredenhann wrote: > >> Dear Michael >> >> When installing fpc I get the meassge "invalid user: ‘michael:michael’", >> do >> you have any suggestion on where I must chown? > > Most likely, this is for the

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tomas Hajny
On Fri, August 21, 2015 09:36, Tobias Giesen wrote: Hello, yes, to interface between Pascal and C I use 'extern C'. I do not have any problems linking between my C code and the Pascal code. The only problem is that the Pascal RTL uses DLL imports, which the Microsoft linker cannot resolve,

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Tomas Hajny
On Fri, August 21, 2015 10:22, Tobias Giesen wrote: The particular symbol should be defined in libimpsystem.a Fantastic! After adding some more libraries, the only remaining missing symbol is FPC_WIDEINITTABLES. I can probably just create a dummy for that in a Pascal unit, as the code does

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Tomas Hajny
On Thu, August 20, 2015 17:01, Jonas Maebe wrote: On 20/08/15 16:19, Chris Moody wrote: Jonas, I see that the target is: Target OS: Linux for ARMEL . . is the target os the issue? Yes, it is. Are you certain that this is with the system-installed compiler, and not with one of the ones

Re: [fpc-pascal] Multipe path in TProcess.Environment ?

2015-06-21 Thread Tomas Hajny
On Mon, June 22, 2015 00:24, fredvs wrote: . . So LD_PRELOAD and LD_LIBRARY_PATH are unix only ? What about Windows, what should be the TProcess.Environment.Text ? = not OK. I'm not aware of an equivalentof LD_PRELOAD on Windows. As far as LD_LIBRARY_PATH is concerned - as far as I know,

Re: [fpc-pascal] FPC linker oddity

2015-06-21 Thread Tomas Hajny
On Sun, June 21, 2015 22:58, Jonas Maebe wrote: On 21/06/15 22:20, patspiper wrote: On 21/06/15 23:08, Jonas Maebe wrote: On 21/06/15 21:43, patspiper wrote: Changing the GetTickCount declaration to any of the following works: Function GetTickCount: DWORD; external name

Re: [fpc-pascal] Multipe path in TProcess.Environment ?

2015-06-21 Thread Tomas Hajny
On Sun, June 21, 2015 22:55, fredvs wrote: Hello. If a TProcess runs a executable who needs a library, that does the trick = TProcess.Environment.Text := 'LD_PRELOAD='/the/directory/of/thelibrary.so' ; You may also use this = (it seems bad ;-( =

Re: [fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-26 Thread Tomas Hajny
On Tue, May 26, 2015 18:12, Géza Kovacs Géza wrote: Hi! I read the Wiki about this article, it's looks like very complicated for me. :-( Can anybody show me a very simple example? Below is a code, i would like to run it multithread both under Windows and Linux. Program Sorting; const

Re: [fpc-pascal] Debug info at runtime?

2015-05-26 Thread Tomas Hajny
On Tue, May 26, 2015 19:30, Serguei TARASSOV wrote: Hi, How is possible to get some debug information at runtime? Assuming, the program compiled with required debug information/symbols. I.e. how to get actual call stack state and called procedures names within the procedure or method?

Re: [fpc-pascal] fpc-pascal Digest, Vol 131, Issue 7

2015-05-09 Thread Tomas Hajny
On Sat, May 9, 2015 12:34, Schindler Karl-Michael wrote: . . messages. If you can contribute technical work, which lowers the barrier, I would welcome it. At the same time it would need some non-technical activities to actually attract more translators. They do not fall from heaven like rain

Re: [fpc-pascal] Lazarus, FreePascal, and translated compiler messages

2015-05-07 Thread Tomas Hajny
On Thu, May 7, 2015 08:47, Yann Mérignac wrote: Thanks for your fix Mattias. And also because looking at your changes I noticed that there are two translation files for French in two different encodings : 'errorf.msg' and 'errorfi.msg'. So far I thought 'errorfi.msg' was a translation for the

Re: [fpc-pascal] How to start fp with self-selected *.pas-file

2015-04-28 Thread Tomas Hajny
On Tue, April 28, 2015 11:20, Sven Barth wrote: Am 28.04.2015 08:34 schrieb Christian Ingo Fahrner christian-ingo.fahr...@fernuni-hagen.de: Dear sirs, thank you for the free pascal compiler, I am a student at www.fernuni-hagen.de. When starting free pascal compiler, there is a

Re: [fpc-pascal] file locking cross platform

2015-04-04 Thread Tomas Hajny
On 4 Apr 15, at 8:23, Michael Van Canneyt wrote: On Fri, 3 Apr 2015, no reply wrote: There are some major differences between the way Windows and Unix allow locking of files with their api's, but is it possible to make a cross platform LockFile() procedure or function for both unix and

Re: [fpc-pascal] Do the make commands have a way of listing the options and possible values for them?

2015-03-31 Thread Tomas Hajny
On Tue, March 31, 2015 15:18, Jonas Maebe wrote: vfclists . wrote on Tue, 31 Mar 2015: The ./configure command used by a lot of unix programs can list the options and possible values for them. Note that ./configure can only do this if someone explicitly added information about all of those

Re: [fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-06 Thread Tomas Hajny
The original poster is not subscribed to the list (although he hasn't mentioned it in his post), so I included him in Cc: now. Tomas On Fri, March 6, 2015 11:26, Graeme Geldenhuys wrote: On 2015-03-05 08:42, Peter Krawies wrote: how to make descendants from the fpGUI visual components To

Re: [fpc-pascal] Error Message recording not yet supported

2015-01-14 Thread Tomas Hajny
On Wed, January 14, 2015 15:19, Jonas Maebe wrote: On 14 Jan 2015, at 15:12, Tomas Hajny wrote: First of all - do you get the message if compiling using a command line compiler? I can't find such a message anywhere in the compiler... It's hardcoded in the source code (scanner.pas:3320

Re: [fpc-pascal] Error Message recording not yet supported

2015-01-14 Thread Tomas Hajny
On Wed, January 14, 2015 10:49, Joao Morais wrote: Hello, I got the Message recordind not yet supported error with 2.7.1 and 3.0.1 versions. 2.6.4 is fine. The error points to a zero-length line, between two class declarations. I couldn't create a small sample, I cannot understand what is

Re: [fpc-pascal] fpc2.6.4 compilation problem

2015-01-11 Thread Tomas Hajny
On Sun, January 11, 2015 12:43, Schindler Karl-Michael wrote: Hello Michael, The original poster is apparently not subscribed to the list (although he forgot to mention this fact in his post) - adding him. In Cc: now so that he could see your response). Tomas Am 11.01.2015 um 12:00 schrieb

Re: [fpc-pascal] compiler message files

2015-01-06 Thread Tomas Hajny
On Tue, January 6, 2015 11:26, Bee wrote: On Tue, Jan 6, 2015 at 3:30 PM, Sven Barth pascaldra...@googlemail.com wrote: The errore.msg is completely created by hand (it's the master file) while the others are copies of that from various ages with additions of new messages. Ah, I see.

Re: [fpc-pascal] compiler message files

2015-01-06 Thread Tomas Hajny
On Tue, January 6, 2015 11:32, Bee wrote: On Tue, Jan 6, 2015 at 3:35 PM, Sven Barth pascaldra...@googlemail.com wrote: You only need to translate the part after the = in those lines that don't have a LaTeX comment. Because only these texts are used by the compiler. The part in the comments

Re: [fpc-pascal] compiler message files

2015-01-05 Thread Tomas Hajny
On Tue, January 6, 2015 08:00, Michael Van Canneyt wrote: On Tue, 6 Jan 2015, Bee wrote: Hi, I'm experimenting with FPC's message (.msg) files. I wonder, who did create those files? Where are the text taken from? Is there any tool to generate those files? They are created manually. . .

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Tomas Hajny
On Fri, December 19, 2014 13:54, Rainer Stratmann wrote: Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt? Unit keyboard provides another solution across all supported platforms (without certain disadvantages of unit Crt). Tomas

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread Tomas Hajny
On Wed, December 3, 2014 06:05, waldo kitty wrote: On 12/2/2014 5:12 PM, Bart wrote: On 12/2/14, waldo kitty wkitt...@windstream.net wrote: how do you process for multiple filemasks? eg: find ts??.sel and t???.sel for the same processing run Maybe I misunderstand the question but: Use

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread Tomas Hajny
On Wed, December 3, 2014 23:18, waldo kitty wrote: . . desirable in some cases... i just have to test it on OS/2 and see if i can compile it... i can't do that with MatchesMaskList because the unit that contains it is not available on OS/2... Which unit is it, btw? Have you tried compiling

Re: [fpc-pascal] TurboPower FlashFiler for Free Pascal

2014-11-26 Thread Tomas Hajny
On Tue, November 25, 2014 23:45, julioferval wrote: Hello, *FlashFiler was ahead of its time.* Client/Server database LAN-WAN. I have currently running quite well on Windows 8.1 applications. Worth rescue and do everything possible to port it to Free Pascal. Could you please clarify your

Re: [fpc-pascal] Problem with heaptrc

2014-11-09 Thread Tomas Hajny
On 9 Nov 14, at 21:58, Xiangrong Fang wrote: Hi Xiangrong, I use heap trace utility to see if there are memory leak in my program. The source is here: https://github.com/xrfang/fpcollection/blob/aefa04f0374c94298facd8d57d4a25dafe10b753/src/demos/cache/demo.lpr My problem is, at the

Re: [fpc-pascal] Memory leaks in the oracleconnection.pp unit (fpc-2.6.4/packages/fcl-db/src/sqldb/oracle)

2014-10-14 Thread Tomas Hajny
On 14 Oct 14, at 10:11, Ďîďîâ Ŕëĺęńĺé wrote: Hello, I found severe bugs in the current release (2.6.4) of fcl-db oracle connection module leading to memory leaks and Oracle server faults in some situations. I made some fixes. Where can I put my patch please? Creating a bug report with

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Tomas Hajny
On 3 Oct 14, at 23:53, Sven Barth wrote: Am 03.10.2014 03:37 schrieb Philippe phili...@quarta.com.br: @cfg I read about that option in a previous message of the thread ... clearly a better ideia!!! ... I´ll use it for sure! taking advantage of the oportunity. when one type fpc in

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Tomas Hajny
On 3 Oct 14, at 19:16, Philippe wrote: fpc -h Free Pascal Compiler version 2.6.4 [2014/03/06] for i386 . . '@' is indeed listed in help only in recent trunk compiler (since July). Tomas ___ fpc-pascal maillist -

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Tomas Hajny
On Mon, September 15, 2014 07:55, Sven Barth wrote: On 14.09.2014 18:05, Philippe wrote: someone wrote about a better performance using with. is that true? even with a simple pointer as in: . . This is the relevant code generated for TestWith: === asm begin === # [28] with p^ do begin

Re: [fpc-pascal] freeBSD and GetProcedureAddress() ?

2014-09-03 Thread Tomas Hajny
On Wed, September 3, 2014 13:51, fredvs wrote: . . Perhaps people can spot errors just by looking at the code... Hum, i hope for those people (but im sure there are, sadly, no errors) ... Never say 'never'... ;-) . . PS: Is fpc still maintaining freeBSD compatibility ? Isn't answer to

Re: [fpc-pascal] exitproc?

2014-08-05 Thread Tomas Hajny
On Tue, August 5, 2014 02:00, waldo kitty wrote: back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this still able to be done easily? does it

Re: [fpc-pascal] Using a custom fpc.cfg

2014-07-08 Thread Tomas Hajny
On Tue, July 8, 2014 11:42, Henry Vermaak wrote: On Tue, Jul 08, 2014 at 10:33:06AM +0100, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 07/07/2014 11:10, luciano de souza wrote: What I want to know is: is there a commandline parameter to specify a new name or, at least, a new

Re: [fpc-pascal] Using a custom fpc.cfg

2014-07-08 Thread Tomas Hajny
On Tue, July 8, 2014 11:33, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 07/07/2014 11:10, luciano de souza wrote: What I want to know is: is there a commandline parameter to specify a new name or, at least, a new directory to fpc.cfg file? Yes, there is (I suspect it's fpc

Re: [fpc-pascal] Using a custom fpc.cfg

2014-07-08 Thread Tomas Hajny
On Tue, July 8, 2014 12:07, Mark Morgan Lloyd wrote: Tomas Hajny wrote: Incidentally, how does one get a list of fpc's options? I don't mean fpc -h since that actually shows ppcXXX's options, but how does one get minimal info on fpc itself such as a reminder of the -V option? In trunk

Re: [fpc-pascal] OT: Listing fpc options Was: Using a custom fpc.cfg

2014-07-08 Thread Tomas Hajny
On Wed, July 9, 2014 00:35, joha...@nacs.net wrote: On Tue, Jul 08, 2014 at 01:21:07PM +0200, Tomas Hajny wrote: On Tue, July 8, 2014 12:07, Mark Morgan Lloyd wrote: Tomas Hajny wrote: Incidentally, how does one get a list of fpc's options? I don't mean fpc -h since that actually shows

Re: [fpc-pascal] Using Pointer : In Free pascal

2014-07-07 Thread Tomas Hajny
On Mon, July 7, 2014 09:22, mokashe.ram wrote: Hi Sud, I am using a pointer as shown below Locat_Pointer= ^ Locate Locate= Record next:locat_pointer; Code:word; How to assign USer input to pointer variable run time in

Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-07-07 Thread Tomas Hajny
On 3 Jul 14, at 3:44, Tomas Hajny wrote: On Wed, July 2, 2014 14:32, mokashe.ram wrote: Hi again, I have done all my work with Free pascal but only one error which still i am not able to fix is MEM as i tried all the options which you suggest me (heartly thanks

Re: [fpc-pascal] old version of Free Pascal

2014-06-25 Thread Tomas Hajny
On Sun, June 22, 2014 22:28, Jean-Claude Arbaut wrote: In case anybody is interested, here is a copy of FPK Pascal 0.5pl.2, released on 25 dec. 1995. ftp://ftp.uni-duisburg.de/local/systems/msdos/programming/fpkp/ Thanks, it might be probably added to ftp://ftp.freepascal.org/pub/fpc/attic/.

Re: [fpc-pascal] Can We use CRT and Video Unit in Single Unit In free pascal

2014-06-23 Thread Tomas Hajny
On Mon, June 23, 2014 09:51, Jonas Maebe wrote: On 23 Jun 2014, at 09:45, mokashe.ram wrote: Can We use CRT and Video Unit in Single Unit Simulteneously... That is documented: http://www.freepascal.org/docs-html/rtl/video/ (the remark at the bottom of the page) While Jonas is

Re: [fpc-pascal] Can We use CRT and Video Unit in Single Unit In free pascal

2014-06-23 Thread Tomas Hajny
On Mon, June 23, 2014 12:09, mokashe.ram wrote: Hi, Thanks for your help. I have Gone throgh the previous post, (In)compatibility of units Video and Crt is platform (implementation) specific thing. They can be used together without any issues on platforms

Re: [fpc-pascal] equivalent/workaround for $B800 In free Pascal

2014-06-16 Thread Tomas Hajny
On Mon, June 16, 2014 10:09, mokashe.ram wrote: Hi Sudarshan, It used to be possible (Turbo Pascal version 7.0 for DOS)to access screen memory using $B800 Is there an equivalent/workaround using Free Pascal version 2.6.4 ? Have you read all the previous e-mails providing answers to your

Re: [fpc-pascal] Compiler error passing a Property as a parameter

2014-06-09 Thread Tomas Hajny
On Sun, June 8, 2014 21:50, Graeme Geldenhuys wrote: Hi Graeme, I think it was FPC 2.6.0 that changed the language rules about Properties. You can't pass them directly as a var parameter, can't assign to a property of a property etc. Anyway, somebody recently asked my why this was

Re: [fpc-pascal] ALSA 1.2.X wrappers required

2014-06-07 Thread Tomas Hajny
On 6 Jun 14, at 12:22, Nikolay Nikolov wrote: Hi Nikolay, Just FYI - you have responded to the fpc-pascal list from a non- subscribed address which caused your messages to be held for moderator's approval. If you plan to use this address for replying more often, you may want to subscribe

Re: [fpc-pascal] Disabling the MIN, MAX, Close icon of EXE in free pascal

2014-06-04 Thread Tomas Hajny
On Tue, June 3, 2014 17:48, Ingmar Tulva wrote: If you are writing for Windows, you just need to read the documentation on window style. WS_CAPTION, WS_MINIMIZEBOX and others, I must check the documentation every time I assign the style flags. See e.g.

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 13:12, Michael Schnell wrote: . . A big problem with EpikTimer is that is _should_ be decently useful with all archs and OSes. This might be a nightmare to test. You don't need to do that - the new addition may be enabled selectively for the CPU+OS combinations for

Re: [fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 14:04, nitinjain wrote: Hi, Looking for guidance on formatting of the attached application Output snippet. I'm having trouble on getting the borders and background color of the Message Box to display correctly. Any help will be appreciated. Nitin

Re: [fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 15:29, nitinjain wrote: Hi Nitin, Actually I tried with video unit, but on freepascal.org site (http://www.freepascal.org/docs-html/rtl/video ) I was read that “The video unit should not be used together with the crt unit”. And I am using CRT unit as well. I posted

Re: [fpc-pascal] TZipper and special file names like atenção.txt (#26213)

2014-05-23 Thread Tomas Hajny
On Fri, May 23, 2014 17:30, Michael Van Canneyt wrote: On Fri, 23 May 2014, silvioprog wrote: Hello, I've tried to compress a small file with TZipper class, but, even it compressing correcly, internaly, the file name is wrong. After compressed, the original atenção.txt file was renamed to

Re: [fpc-pascal] TZipper and special file names like atenção.txt (#26213)

2014-05-23 Thread Tomas Hajny
On Fri, May 23, 2014 17:38, Reinier Olislagers wrote: On 23/05/2014 17:30, Michael Van Canneyt wrote: On Fri, 23 May 2014, silvioprog wrote: . . I have a program that makes daily backups, and just discovered this problem when I noticed that it did not compressing files with names with

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 09:00, mokashe.ram wrote: Hi, Could Any One help Me to writing Horizontal and vertical line to message window in Free Pascal as i MEM and MEMW function not supported in free pascal. note : we can not use Video and CRT Unit both in single unit. i want to use CRT

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 09:55, Mark Morgan Lloyd wrote: mokashe.ram wrote: . . it's probably safe to assume that your instructor is reading this mailing list with interest, perhaps he'd like to fill in what operating system etc. your code's supposed to run on since you've not told us :-) In

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 10:51, Mark Morgan Lloyd wrote: . . Going back to the earlier message: note : we can not use Video and CRT Unit both in single unit. i want to use CRT unit only. Perhaps somebody would like to confirm this, but my understanding is that Video and CRT can't be used

Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-05-21 Thread Tomas Hajny
On Wed, May 21, 2014 08:16, mokashe.ram wrote: Thanks for Your Help, But facing the same issue using the last post code :) Then please include fully compilable source which does not work for you. I tested it yesterday by I adding a basic main program body with four lines consisting of

Re: [fpc-pascal] How To Rewrite/Replace Below MEM And MEMW

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 10:01, nitinjain wrote: Hi Nitin, Could any one help on replacing or rewriting below MEM and MEMW function for 32 bit OS. . . MEM[$B800:offset]:=top_left_corner[style]; . . Have you already tried the recommendations discussed in a recent thread here

Re: [fpc-pascal] How To Rewrite/Replace Below MEM And MEMW

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 12:10, nitinjain wrote: Thanks Tomas, Yes, I have allready followd the steps which you have given in last post (Video Unit), but it is throwing runtime error that is: *Program Received Signal SIGSEGV Segmentation fault*. Have you managed to identify the exact code (line)

Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 14:25, mokashe@gmail.com wrote: Hi, I am trying use VideoBuf Variable available in 'Video' unit but getting error *Program Received Signal SIGSEGV Segmentation fault. * . . {* MEM[$B800:(x_offset-1)*2 +(y_offset-1)*160]:=32;

Re: [fpc-pascal] How to get GO32 Unit file

2014-05-14 Thread Tomas Hajny
On Tue, May 13, 2014 11:38, nitinjain wrote: Hi, could you please tell me, from where I can download Go32 Unit file? Unit go32 is standard part of RTL for target GO32v2. You shouldn't need it if you target a different platform. If you came across this unit while porting some third party code

Re: [fpc-pascal] 2.6.4 RPM and Deb archives are still in preparation?

2014-05-13 Thread Tomas Hajny
On Wed, May 14, 2014 00:46, Mattias Gaertner wrote: Hi, The download mirrors shows The 2.6.4 RPM and Deb archives are still in preparation. Are they still? For example: http://www.freepascal.org/down/i386/linux-australia.var Good question, but I have an even better one - why the list

Re: [fpc-pascal] Identifier not found MEMW

2014-05-12 Thread Tomas Hajny
On Mon, May 12, 2014 08:58, nitinjain wrote: Thanks to all of you for your`s reply !, do me a Favour, can anybody guide me how to implement video unit with my code. Well, I believe that you already have all the needed components in the provided responses: 1) Add unit Video to your uses

Re: [fpc-pascal] Identifier not found MEMW

2014-05-09 Thread Tomas Hajny
On Fri, May 9, 2014 09:00, nitinjain wrote: Thanks for your prompt reply on this. my code is like below, is there any option to implemet the same thing? --- PROCEDURE window_object.appear; VAR width_offset,

[fpc-pascal] Spam in FPC lists (Was: [fpc-devel] Fwd: [8])

2014-05-08 Thread Tomas Hajny
On Thu, May 8, 2014 16:34, Andrew Haines wrote: . . Hello all, As you probably noticed, some spammer or virus misused an address of one of legitimate FPC users and sent several spam messages to fpc-devel and fpc-pascal lists. Unfortunately, these e-mails slipped through our anti-spam

Re: [fpc-pascal] For Slackware users

2014-05-06 Thread Tomas Hajny
On Tue, May 6, 2014 17:02, Yann Mérignac wrote: It seems that there is no website category in bug tracker. Should I report this somewhere else ? While there is such a category (at least if you select project FPC), I'm aware of the raised point (confirmed) and plan to fix it (together with

[fpc-pascal] Wrong links to mailing list archives fixed (Was: Re: For Slackware users)

2014-05-06 Thread Tomas Hajny
On 6 May 14, at 17:25, Yann MĂŠrignac wrote: Sorry, I thought that bugs reported in project FPC should concern compiler or units bugs. No problem - as can see if looking at the list of categories defined for that project, this project is really meant for anything related to content hosted on

Re: [fpc-pascal] For Slackware users

2014-05-04 Thread Tomas Hajny
On Sun, May 4, 2014 18:24, Yann Mérignac wrote: Hi, I have modified my scripts to convert FPC Lazarus binaries to Slackware packages. If you're interested you can find them to http://yann.merignac.free.fr/fpc-and-lazarus-for-slackware.html Would it be OK if we add this link to the FPC

<    1   2   3   4   5   6   7   8   >