Re: [fpc-pascal] Non-Latin (non-English) identifiers for COM automation

2013-06-22 Thread Max Vlasov
, Instance, @CallDesc, Nil); end; . So for an OleVariant instance V the calls V.SomeMethod and DCNA(V, 'Somemethod') are equivalent. Only that the latter can accept Cyrillic methods now Max On Sat, Jun 22, 2013 at 12:40 AM, Sven Barth wrote: > On 21.06.2013 09:01, Max Vlasov w

[fpc-pascal] Non-Latin (non-English) identifiers for COM automation

2013-06-21 Thread Max Vlasov
identifier other than direct referencing so instead of ... OleVariant.SomeMethodMaybeNonLatin... ... OleVariant.IntermediateAccess('SomeMethodMaybeNonLatin') Thanks, Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Inherited and not virtual/overridden procedures

2013-06-12 Thread Max Vlasov
On Wed, Jun 12, 2013 at 2:12 AM, Bart wrote: > > I thought that if I had a subclass that inherited form a parentclass, > and both have a method with the same name (Bar), then the method of > the subclass hid the method of the parentclass, and you could not call > inherited Bar in the subclass. >

Re: [fpc-pascal] Windows on ARM, how fast it can be implemented?

2013-03-26 Thread Max Vlasov
. Max On Tue, Mar 26, 2013 at 8:05 PM, Sven Barth wrote: > Am 26.03.2013 15:01 schrieb "Max Vlasov" : > > That said it mostly depends on how much Microsoft changed their existing > ARM compiler. If the changes are minimal for the purpose of user space > applications then

Re: [fpc-pascal] Windows on ARM, how fast it can be implemented?

2013-03-26 Thread Max Vlasov
side? Thanks Max On Thu, Dec 23, 2010 at 11:57 AM, Florian Klämpfl wrote: > Am 22.12.2010 20:05, schrieb Max Vlasov: > > 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-sh

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Max Vlasov
On Fri, Mar 1, 2013 at 12:32 PM, Ludo Brands wrote: > On 03/01/2013 09:14 AM, Max Vlasov wrote: > > > > The question is what is different in nautilus and midnight commander > > comparing to fpc directoy-listing functions that allows them to list > > directories

[fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Max Vlasov
midnight commander comparing to fpc directoy-listing functions that allows them to list directories correctly in the bug's case? Thanks, Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] Issuchmemorystatisticspossible?

2011-08-22 Thread Max Vlasov
On Mon, Aug 22, 2011 at 6:48 PM, Ludo Brands wrote: >> >> Ludo, the patch looks very promising, I just found one >> problem. I have a test fragment in my form (in a simple >> simplest application) >> >> procedure TForm1.FormCreate(Sender: TObject); >> var >>   a: integer; >> begin >>   a:=1; >>  

Re: RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] Is suchmemorystatisticspossible?

2011-08-22 Thread Max Vlasov
On Mon, Aug 22, 2011 at 5:29 PM, Ludo Brands wrote: > > > Attached the patch for the stack unwind (without non-stackframe routines). > Note that all assembler is gone! > Ludo, the patch looks very promising, I just found one problem. I have a test fragment in my form (in a simple simplest appli

Re: RE : RE : RE : RE : RE : RE : [fpc-pascal] Is such memorystatisticspossible?

2011-08-22 Thread Max Vlasov
On Mon, Aug 22, 2011 at 4:08 PM, Ludo Brands wrote: > > > Right. Statistically, the smaller the stack you look at, the less falls > positives you get. > > One reason for false positives is also that local variables aren't > initialised. Procedures declaring local variables like buf:array [0..100

Re: RE : RE : RE : RE : RE : [fpc-pascal] Is such memory statisticspossible?

2011-08-22 Thread Max Vlasov
On Mon, Aug 22, 2011 at 1:30 PM, Ludo Brands wrote: > ** > > IMO, a big improvement would be to unwind the stack instead of checking > every value found on the stack. This would avoid false positives caused by > random data falling in the main address range or by passing function > addresses as a

Re: RE : RE : RE : [fpc-pascal] Is such memory statistics possible?

2011-08-19 Thread Max Vlasov
On Fri, Aug 19, 2011 at 10:36 PM, Ludo Brands wrote: > ** > > > OK compiles now. I tested this with 2 programs but when I include > uProcMemMon as the first unit in lpr and define -dPROCMEMMON then they both > crash with a sigsegv. Undefine PROCMEMMON and they run fine. I've > attached a small

Re: RE : [fpc-pascal] Is such memory statistics possible?

2011-08-19 Thread Max Vlasov
On Fri, Aug 19, 2011 at 3:26 PM, Ludo Brands wrote: > ** > > > > Based on this discussion and the following research I made an attempt to > implement something like this for fpc/lazarus. > > The final result are a couple of units and a dialog that allows to see the > results in any time inside th

Re: [fpc-pascal] Is such memory statistics possible?

2011-08-19 Thread Max Vlasov
On Mon, Aug 15, 2011 at 1:03 PM, Marco van de Voort wrote: > In our previous episode, Max Vlasov said: > > about collecting some statistics. > > > > The idea is similar to some disk utilities that collects and sort the > sizes > > of directories. You know when e

Re: RE : [fpc-pascal] Is such memory statistics possible?

2011-08-15 Thread Max Vlasov
On Mon, Aug 15, 2011 at 2:03 PM, Ludo Brands wrote: > ** > > > > if there's a common ancestor allocating something (let's call it NewBlock() > and it uses GetMem) and I have many descendants using this method, is there > a chance to find the "eater" amongst these descendants or massif tool will >

Re: [fpc-pascal] Is such memory statistics possible?

2011-08-15 Thread Max Vlasov
On Mon, Aug 15, 2011 at 1:03 PM, Marco van de Voort wrote: > In our previous episode, Max Vlasov said: > > about collecting some statistics. > > > > The idea is similar to some disk utilities that collects and sort the > sizes > > of directories. You know when e

[fpc-pascal] Is such memory statistics possible?

2011-08-15 Thread Max Vlasov
Hi, reading the recent discussion about lazarus memory consumption, I thought about collecting some statistics. The idea is similar to some disk utilities that collects and sort the sizes of directories. You know when every folder on the computer is scanned and all the resulting paths are sorted b

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 7:28 PM, Helmut Hartl wrote: > Am 10.08.11 16:56, schrieb Max Vlasov: > > Jonas, I see that you probably have your reasons not to use gdb inside the >> lazarus, but it was quite decent for me until this strange unavoidable >> moment :) It still is, ho

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 6:20 PM, Jonas Maebe wrote: > > On 10 Aug 2011, at 16:12, Max Vlasov wrote: > > SIG35 behaves the same. Strangely, I looked in system monitor for gdb >> command-line, it looked ok >> >> /usr/bin/gdb -silent -i mi -nx --eval-command="

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 5:43 PM, Jonas Maebe wrote: > > > I tried adding >> --eval-command="handle SIGUSR1 nostop noprint pass" >> > > While this won't solve your problem, as Michael said you should not use > SIGUSR1 because it's probably already used by the system. > > SIG35 behaves the same. St

Re: [fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 4:34 PM, Jonas Maebe wrote: > > > Can I somehow tell it to >> ignore some, for example 'SIG35'? I tried to add it to Language exceptions >> ignore list as 'External: SIG35', 'External:SIG35' (without space), SIG35. >> Nothing helped. >> > > handle SIG35 nostop noprint pass

[fpc-pascal] Re: timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 1:18 PM, Max Vlasov wrote: > Hi, > > I tried to implement linux timer with timer_create and signals, but an > exception always fired (External:SIGUSR1). > Hmm, it seems that it's not a 'wrong' exception, I executed the same program from con

Re: [fpc-pascal] timer_create on linux

2011-08-10 Thread Max Vlasov
On Wed, Aug 10, 2011 at 2:04 PM, wrote: > > > On Wed, 10 Aug 2011, Max Vlasov wrote: > > Hi, >> >> I tried to implement linux timer with timer_create and signals, but an >> exception always fired (External:SIGUSR1) >> What can be wrong with the code

[fpc-pascal] timer_create on linux

2011-08-10 Thread Max Vlasov
Hi, I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). It was a lcl program, but I narrowed it to a console one. Here is the lines without extra codes of releasing (the error appears before), What can be wrong with the code below? Tha

Re: [fpc-pascal] Jpeglib thread safe?

2011-07-26 Thread Max Vlasov
o I suppose when you're talking about different jpeg files, there should be no problem, at least I'm not aware of IJG code to be using global variables that can be a real tread in this case Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Variable export always uppercase?

2011-06-27 Thread Max Vlasov
On Mon, Jun 27, 2011 at 6:46 PM, leledumbo wrote: > http://www.freepascal.org/docs-html/prog/progsu137.html > Thanks, looks like var __errno: integer;cvar; in the interface section helped Max ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

[fpc-pascal] Variable export always uppercase?

2011-06-26 Thread Max Vlasov
Hi, I'm trying to trick some c-libraries that use errno variable to think that it's located in my sources (Windows, MingGw compiled libraries). if I declare var ___errno: integer; ... exports ___errno; end. I still get error testproj.lpr(27,1) Error: Undefined symbol: ___errno if I look insi

[fpc-pascal] "Illegal unit name", no change reguired?

2011-06-14 Thread Max Vlasov
Hi, I faced the same problem as was described here http://www.hu.freepascal.org/lists/fpc-devel/2008-February/013028.html and briefly here http://bugs.freepascal.org/view.php?id=5942 in my case I have a unit named uDirScan and uDirScanUtils. The latter appeared inside uses clause of some unit

Re: [fpc-pascal] Conversion between ordinals and pointers is not portable

2011-03-02 Thread Max Vlasov
On Wed, Mar 2, 2011 at 12:33 PM, Jonas Maebe wrote: > > On 02 Mar 2011, at 09:02, Roland Turcan wrote: > > ... >> p := PByteArray (PtrUInt (@FData.Content[0]) + MOffset); >> ... >> >> >> But the compiler informs about %subj%. >> >> How to get rid of this warning and to make code portable? >> >

Re: [fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Max Vlasov
epascal.org/docs-html/rtl/{unitname}/{functionname}.html<http://www.freepascal.org/docs-html/rtl/%7Bunitname%7D/%7Bfunctionname%7D.html> is standardized? if the latter, is it possible to download this data from somewhere for experimenting? Thanks Max Vlasov ___

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Max Vlasov
On Sat, Jan 15, 2011 at 6:30 PM, Andrew Haines wrote: > On 01/14/11 14:38, Torsten Bonde Christiansen wrote: > > Hi List. > > > > Is it possible to jump a couple of levels in the inherited hierarchy > > when calling "inherited" on a method? > > > > A small example of what i'm trying to achieve be

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Max Vlasov
On Sat, Jan 15, 2011 at 2:09 PM, Torsten Bonde Christiansen wrote: > On 2011-01-14 23:05, Max Vlasov wrote: > > > > On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen < > t...@epidata.dk> wrote: > >> Hi List. >> >> Is it possible to jump

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-14 Thread Max Vlasov
On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen wrote: > Hi List. > > Is it possible to jump a couple of levels in the inherited hierarchy when > calling "inherited" on a method? > > Hmm, don't know whether you're the same person or not :), but I replied in a stackoverflow question th

Re: [fpc-pascal] Windows on ARM, how fast it can be implemented?

2010-12-22 Thread Max Vlasov
On Wed, Dec 22, 2010 at 10:13 PM, Sven Barth wrote: > On 22.12.2010 20:05, Max Vlasov wrote: > >> 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> >> Ther

[fpc-pascal] Windows on ARM, how fast it can be implemented?

2010-12-22 Thread Max Vlasov
miss something and there are hidden challenges? Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: FPC programs in Android without JNI

2010-12-18 Thread Max Vlasov
ethod modified or not will work for long, won't it? And also, does a general developer need some special skills/actions currently in order to run your program on a stock android phone? Max Vlasov ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Suggestion about ability to pass local procedures as variables

2010-11-30 Thread Max Vlasov
On Tue, Nov 30, 2010 at 12:26 PM, Vincent Snijders < vincent.snijd...@gmail.com> wrote: > 2010/11/30 Max Vlasov : > > So, I suppose that implementing closures is not in real plans (it's ok, I > > can live with that), but what about the second, is it possible? > > &

Re: [fpc-pascal] Suggestion about ability to pass local procedures as variables

2010-11-30 Thread Max Vlasov
On Tue, Nov 30, 2010 at 12:26 PM, Vincent Snijders < vincent.snijd...@gmail.com> wrote: > 2010/11/30 Max Vlasov : > > Hi, > > > > it appears recently several pieces if knowledge came to me, I understood > how > > anonymous functions (aka closures) work :) and

[fpc-pascal] Suggestion about ability to pass local procedures as variables

2010-11-30 Thread Max Vlasov
m external code (what's actually closures is about). So, I suppose that implementing closures is not in real plans (it's ok, I can live with that), but what about the second, is it possible? I will glad to hear different opinions from the developers

Re: [fpc-pascal] bugtracker questions/report (where to send)

2010-11-26 Thread Max Vlasov
On Fri, Nov 26, 2010 at 12:45 PM, Jonas Maebe wrote: > > On 26 Nov 2010, at 10:38, Max Vlasov wrote: > > - Is everything is ok with "steps to reproduce" field in fpc bugtracker? >> It >> never show at the issue view. Hope it saves and and at least the >>

[fpc-pascal] bugtracker questions/report (where to send)

2010-11-26 Thread Max Vlasov
Hi, don't know where is the best place to ask about the bugtracker and mantis. Please let me know. I have two questions: - Is everything is ok with "steps to reproduce" field in fpc bugtracker? It never show at the issue view. Hope it saves and and at least the developers are seeing it. - Google

Re: [fpc-pascal] Working Free Pascal android JNI example

2010-11-24 Thread Max Vlasov
lists.freepascal.org/msg22483.html. Can you consider Android as the best mobile platform currently for a pascal developer? Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Changing var to out in rtl code

2010-11-21 Thread Max Vlasov
On Sun, Nov 21, 2010 at 9:22 PM, Michael Van Canneyt wrote: > > > On Sun, 21 Nov 2010, Max Vlasov wrote: > > Hi, >> I'm one of those developers who takes hints and warnings seriously and I >> must say at least once a week it helps me find a bugs even before runn

Re: [fpc-pascal] Changing var to out in rtl code

2010-11-21 Thread Max Vlasov
On Sun, Nov 21, 2010 at 6:37 PM, Sven Barth wrote: > On 21.11.2010 16:22, Max Vlasov wrote: > >> But is it possible to do the same (partially, gradually or in any other >> way) for the "legacy" code that keeps the interface compatibility with >> Delphi. Fo

[fpc-pascal] Changing var to out in rtl code

2010-11-21 Thread Max Vlasov
at the implementation details it seems it is safe to change "var Index" to "out Index" and possibly it is also safe for any delphi/lazarus code calling this method I'm sure it is in any way not the first priority task (I can change the corresponding

Re: [fpc-pascal] Initialize/Finalize with count, is it possible?

2010-11-20 Thread Max Vlasov
On Sat, Nov 20, 2010 at 1:29 PM, Sven Barth wrote: > On 20.11.2010 10:07, Honza wrote: > >> 2010/11/20 Max Vlasov: >> >>> FillChar(Section^, Count*ElementSize, 0); >>> Initialize(TNameValueRec(Section^), Count); >>> >>> Is poss

Re: [fpc-pascal] Initialize/Finalize with count, is it possible?

2010-11-20 Thread Max Vlasov
On Sat, Nov 20, 2010 at 12:07 PM, Honza wrote: > 2010/11/20 Max Vlasov : > > FillChar(Section^, Count*ElementSize, 0); > > Initialize(TNameValueRec(Section^), Count); > > > > Is possible for such syntax to be supported? Probably I'm one of those &g

[fpc-pascal] Initialize/Finalize with count, is it possible?

2010-11-19 Thread Max Vlasov
icket: http://bugs.freepascal.org/view.php?id=4825&nbn=1 or create a new one? Thanks in advance, Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] More Win CE

2010-11-18 Thread Max Vlasov
On Wed, Nov 17, 2010 at 6:26 PM, Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com> wrote: > On Wed, Nov 17, 2010 at 12:11 PM, Matt Emson > wrote: > > There is little chance that will happen as it assumes Nokia will focus on > > Meego... Nokia can't focus on a blade of grass on a su

Re: [fpc-pascal] More Win CE

2010-11-16 Thread Max Vlasov
On Wed, Nov 17, 2010 at 1:33 AM, Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com> wrote: > On Tue, Nov 16, 2010 at 11:07 PM, Max Vlasov wrote: > > Sven, although I understand what you're talking about, I think this is a > > case when MS partially learn

Re: [fpc-pascal] More Win CE

2010-11-16 Thread Max Vlasov
nd anyone can change it at least leaving some code from the past. Knowing the MS attitute toward backward compatibility in general, invest or not invest in .Net and Silverlight is a big question. Max Vlasov ___ fpc-pascal maillist - fpc-pascal@lists