[Harbour] MT "stubbed" functions in 1.0.1?

2008-09-16 Thread Lorenzo Fiorini
I tried to test new memtst and speedtst with 1.0.1 to check the differences with 1.1.0 but the last uses the func HB_MTVM() which is defined in source/vm/threads.c. IMHO it would useful to add "stubbed" thread functions to 1.0.1 so that one can start to add MT code to real apps without requiring t

[Harbour] GPF sample

2008-09-16 Thread [EMAIL PROTECTED]
Hi friends, The sample below GPF after MT implementation: I'm using rddads.lib and ace.lib together. ---cut--- procedure main() return function DboTempOpenFromDbf() AdsSetFileType( 3 ) return nil #pragma BEGINDUMP #include "windows.h" #include "hbapi.h" HB_FUNC( RDDSYS ) { hb_ret(); }

[Harbour] hb_gcall() and fwh

2008-09-16 Thread [EMAIL PROTECTED]
Hi, I see that fwh continues calling hb_gcall() after each time a dialog close. It remains necessary in current svn or we have a better choice ? TIA and regards, Toninho. ___ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e vej

[Harbour] GPF sample

2008-09-16 Thread [EMAIL PROTECTED]
Hi friends, The sample below GPF after MT implementation: I'm using rddads.lib and ace.lib together. ---cut--- procedure main() return function DboTempOpenFromDbf() AdsSetFileType( 3 ) return nil #pragma BEGINDUMP #include "windows.h" #include "hbapi.h" HB_FUNC( RDDSYS ) { hb_ret(); }

[Harbour] MT - Thread Specific Functions in Xbase++

2008-09-16 Thread Pritpal Bedi
Hello Everybody Just for information sake: ThreadID() -> nThreadID -- Return The function returns a numeric value > 0. Description The function ThreadID() is used to get the numeric ID of the thread in which the function is called. The value is unique within a single process and

[Harbour] MT and Thread Control - Signals

2008-09-16 Thread Pritpal Bedi
Hello Przemek [Xbase++] Here is the complete implementation detail how various threads coordinate with each other : Controlling threads using signals -- There is a possibility for coordinating threads which does not require a thread to terminate before another thre

Re: [SPAM] [Harbour] MT and WA - Implementation Notes in Xbase++

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Pritpal Bedi wrote: Hi Pritpal, > Here are two functions in Xbase++ which amply > demonstrate the functionality of ZERO space where > two threads can share a common WA. Many thanks for the documentation. I was thinking about exactly the same mechanism when I was writing abo

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Mindaugas Kavaliauskas wrote: Hi, > I've spent some time (well not much, an hour...) to find out how tls works > on Windows. > The original idea is based on undocumented (but de facto) fs segment. In > Win32 both 9x and NT fs segment register points to Win32 Thread informat

Re: [Harbour] Re: Release 1.0.1 #1

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, David Arturo Macias Corona wrote: Hi David, > [E:\harbour809mt\harbour\tests]..\bin\hbrun.exe memtst.prg > Below are results [...] > testing large memory block reallocation with intermediate allocations... > Warning!!! some compilers may badly fail here [...] > Unrecoverable

Re: [Harbour] Re: Release 1.0.1 #1

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, David Arturo Macias Corona wrote: Hi David, > Below are results of current Harbour under eComStation 1.2MR > gcc 3.3.5 > ../../gtstd.c: In function `hb_gt_std_ReadKey': > ../../gtstd.c:389: warning: unused variable `TODO' > ../../../thread.c: In function `hb_threadCreate': >

[Harbour] 2008-09-17 01:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
2008-09-17 01:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/make_xmingwce.sh * harbour/make_xmingw.sh + added an option to build utility binaries in cross builds * harbour/source/vm/thread.c ! fixes in OS2 builds MT builds best regards Przemek ___

[Harbour] 2008-09-17 01:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-09-16 Thread Szakáts Viktor
2008-09-17 01:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * debian/changelog * Synced with 1.0.1. * source/pp/ppcore.c ! Minor typo in one PP error message. (sync 1.0.1) * Cleaned ":" from all PP error/warning messages to be friendly with Eclipse. * source/compiler/

[Harbour] [1.0] 2008-09-16 15:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-09-16 Thread Szakáts Viktor
2008-09-16 15:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/pp/ppcore.c ! Minor typo in one PP error message. * utils/hbmake/hbmake.prg * Updated by large patch from Bill Robertson. Adds several enhancements, fixes and optimizations to the previous version. --

[Harbour] MT and WA - Implementation Notes in Xbase++

2008-09-16 Thread Pritpal Bedi
Hello Przemek Here are two functions in Xbase++ which amply demonstrate the functionality of ZERO space where two threads can share a common WA. When I was working with Xbase++ long back, probably in year 2002-03, I exploited this feature mainly for only one table which was responsible for so

[Harbour] Re: Release 1.0.1 #1

2008-09-16 Thread David Arturo Macias Corona
Przemek: and [E:\harbour809mt\harbour\tests]..\bin\hbrun.exe memtst.prg Below are results David Macias AMD Athlon 2200+ 2.0GHz, 1 Gb RAM, gcc 3.3.5 Warning !!! Memory statistic enabled. 09/16/08 17:49:24 Harbour 1.1.0dev (Rev. 9418) (FMSTAT), OS/2 4.50 testing single large memory blocks al

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Mindaugas Kavaliauskas
Hi again, Looks that the most expensive is TLS access and it reduce the performance in BCC builds - the cost of ABI in which VM pointer is not passed to functions :-(. We can do three things: 1. add some tricks to reduce TLS access like HB_THREAD_STUB in xHarbour in hvm.c but it makes

[Harbour] Re: Release 1.0.1 #1

2008-09-16 Thread David Arturo Macias Corona
Przemek: This are st or mt ? [E:\harbour809mt\harbour\tests]..\bin\hbrun.exe speedtst.prg Below are results David Macias AMD Athlon 2200+ 2.0GHz, 1 Gb RAM, gcc 3.3.5 Warning !!! Memory statistic enabled. Startup loop to increase CPU clock... 09/16/08 17:42:23 Harbour 1.1.0dev (Rev. 9418) (

[Harbour] Re: Release 1.0.1 #1

2008-09-16 Thread David Arturo Macias Corona
Przemek: >Thank you very much. >Can you try again with current SVN? Below are results of current Harbour under eComStation 1.2MR gcc 3.3.5 warnings in thread.c hbvmmt.a is created 16/09/08 5:04p 337,554124 a--- hbvm.a 16/09/08 5:06p 338,296124 a--- hbvmmt.a David Maci

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Mindaugas Kavaliauskas
Hi, Przemyslaw Czerpak wrote: Maybe BCC does not inline InterLocked*() functions or they are not as efficient as they can be. Interlocked*() functions are WinAPI functions. It cannot be inlined. I know that they are Windows API functions but MSDN says that each compiler should try to inline

Re: [Harbour] Re: Question about MT

2008-09-16 Thread Miguel Angel Marchuet
Do not worry, I pay. my English is insufficient to explain what we see clear and necessary. As I understand cloned wa don't share recno and filters synchronized between areas and this is important do make some works without reopen new wa handle. Of course always there are another way to do th

Re: [Harbour] MM

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Lorenzo Fiorini wrote: > BTW as you can see I still have the fm enabled by default. > I used hbmk -n -static memtst.prg. If I use hbmk - -static -nofmstat I get: > /tmp/cc4LyIIb.o: In function `_hb_lnk_ForceLink_build': > hb-build-xyz-7440.c:(.text+0xc): undefined reference to

Re: [Harbour] MM

2008-09-16 Thread Mindaugas Kavaliauskas
I've tested a few memory managers (MM) with tests\memtst.prg. All test is using BCC55 compiler, singe thread application, FM statistics switched off, 2.2GHz Celeron, 256MB RAM. Three MM were tested: BCC55, Win32 Local*(), DL MM (see: http://gee.cs.oswego.edu/dl/html/malloc.html). The results ar

Re: [Harbour] MM

2008-09-16 Thread Lorenzo Fiorini
On Tue, Sep 16, 2008 at 9:13 PM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote: > Very interesting. BTW this are my results for Linux with GLIBC 2.8 > on Phenom 2.1Ghz: > single large memory blocks:0.55 > many large memory blocks: 3.07 > large memory block reallocatio

Re: RE: RE: [Harbour] Wince - Evc4 and GPF

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, José Luis Capel wrote: Hi Jose, > JLC>What do you want to do and why? > JLC> > What I want to do is to catch exceptions in any way... because executing a > programa under Wince that generates a GPF doesn't terminate program. It can be hardware/OS dependent so on one machine

Re: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "bill robertson" <[EMAIL PROTECTED]> A: "Harbour Project Main Developer List." Data invio: martedì 16 settembre 2008 17.28 Oggetto: Re: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl) Hi Enrico, When you install it, you have

RE: RE: [Harbour] Wince - Evc4 and GPF

2008-09-16 Thread José Luis Capel
Hi Przemek, JLC> JLC>> I really appreciate some solution or ideas to control the JLC>GPFs on the JLC>> Pocket PC. JLC>> Without the GPFs control working, Harbour on Pocket PC should be JLC>> unusable :-( JLC> JLC>I do not understand why you want to generate an exception JLC>and how is it rela

Re: [Harbour] MM

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, > I've tested a few memory managers (MM) with tests\memtst.prg. All test is > using BCC55 compiler, singe thread application, FM statistics switched off, > 2.2GHz Celeron, 256MB RAM. > Three MM were tested: BCC55, Win32 Local*(),

Re: RE: [Harbour] Wince - Evc4 and GPF

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, José Luis Capel wrote: Hi Jose, > I really appreciate some solution or ideas to control the GPFs on the Pocket > PC. > Without the GPFs control working, Harbour on Pocket PC should be unusable > :-( I do not understand why you want to generate an exception and how is it re

[Harbour] MM

2008-09-16 Thread Mindaugas Kavaliauskas
Hi, I've tested a few memory managers (MM) with tests\memtst.prg. All test is using BCC55 compiler, singe thread application, FM statistics switched off, 2.2GHz Celeron, 256MB RAM. Three MM were tested: BCC55, Win32 Local*(), DL MM (see: http://gee.cs.oswego.edu/dl/html/malloc.html). The

RE: [Harbour] Wince - Evc4 and GPF

2008-09-16 Thread José Luis Capel
Hi all, I really appreciate some solution or ideas to control the GPFs on the Pocket PC. Without the GPFs control working, Harbour on Pocket PC should be unusable :-( I am sorry for strissing you up with this matter... but I am not a C expert and I am lost. Nobody here is using Harbour on the

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, >> 2. we can change used ABI so each Harbour function which may >> need HVM access will receive pointer to HB_STACK. Quite easy >> for HB_FUNC() but for internal ones it will force much more >> jobs. > One vote for this one. >

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Szakáts Viktor
Hi Przemek, 2. we can change used ABI so each Harbour function which may need HVM access will receive pointer to HB_STACK. Quite easy for HB_FUNC() but for internal ones it will force much more jobs. One vote for this one. Wouldn't this increase the size of -gc3 compiled ap

Re: [Harbour] 2008-09-15 13:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
On Mon, 15 Sep 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, >> Maybe BCC does not inline InterLocked*() functions or >> they are not as efficient as they can be. > Interlocked*() functions are WinAPI functions. It cannot be inlined. I know that they are Windows API functions but MSDN says t

[Harbour] 2008-09-16 19:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
2008-09-16 19:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/utils/hbtest/rt_class.prg ! fixed description message * harbour/common.mak * harbour/utils/hbtest/Makefile * harbour/utils/hbtest/hbtest.prg + harbour/utils/hbtest/rt_mt.prg + added simple MT test for

RE: [Harbour] Wich internal define are you using in harbour?

2008-09-16 Thread Massimo Belgrano
Like -DADS_LIB_VERSION=700 -DHB_HASH_MSG_ITEMS That not are present -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Massimo Belgrano Sent: Tuesday, September 16, 2008 7:04 PM To: Harbour Project Main Developer List. Subject: RE: [Harbour] Wich internal de

Re: [Harbour] Re: Question about MT

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Miguel Angel Marchuet wrote: Hi Miguel, > Examples of use: > at msdn is possible to found an example using threads, one works only > refreshing > a controls of the window meanwhile another thread make a background > process. 1st > present FieldGet's at

RE: [Harbour] Wich internal define are you using in harbour?

2008-09-16 Thread Massimo Belgrano
Thanks but my question was/be Are present other internal outside of this list? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Szakáts Viktor Sent: Tuesday, September 16, 2008 6:49 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] Wich in

Re: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Szakáts Viktor
But for the windows platform is not better switch on Visual C++ 2008 Express Edition? It is definitely better. MSVS is superior in probably all aspects, and free even for commercial usage. If I could do such thing, I'd recommend to make MSVS 2008 the _mainstream_ development compiler for Harbo

Re: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "frank van nuffel" <[EMAIL PROTECTED]> A: "Harbour Project Main Developer List." Data invio: martedì 16 settembre 2008 16.46 Oggetto: Re: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl) Hi Enrico, you can download from here

Re: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Massimo Belgrano" <[EMAIL PROTECTED]> A: "Harbour Project Main Developer List." Data invio: martedì 16 settembre 2008 17.01 Oggetto: RE: [Harbour] 2008-09-15 13:38UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl) Is include in turbo exlorer http://turbo

Re: [Harbour] Wich internal define are you using in harbour?

2008-09-16 Thread Szakáts Viktor
-DHB_WIN32_IO - DEFAULT - no need to use this macro since long. -DHB_FM_WIN32_ALLOC - OPTION - Recommended for - at least - BCC55. -DHB_FM_STATISTICS_OFF - OPTION. And DEFAULT in final releases. -DHB_GUI - OPTION -DHB_NO_PROFILER - OPTION -DHB_NO_TRACE - OPTION -DHB_USE_TLS - You shouldn't directl

Re: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Szakáts Viktor
Hi Frank, http://cc.codegear.com/Free.aspx?id=24724 on the right, on top it says it is a free download, but you'll have to register, upon which an email will be sent with a valid license for +-32000 days - no kidding ;-) you'll have to gather the required files from that install, just

Re: [Harbour] 2008-09-16 13:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-09-16 Thread Szakáts Viktor
Hi Lorenzo, Okay, I'll check ppcore.c a bit later. Please review these changes, especially since there are still some of the ':' chars left, where I couldn't find out the meaning of the message, or the variables in them, and I also didn't know how to generate such messages to actually check it.

Re: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread bill robertson
- Original Message - From: "Enrico Maria Giordano" <[EMAIL PROTECTED]> To: "Harbour Project Main Developer List." Sent: Tuesday, September 16, 2008 10:01 AM Subject: Re: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl) -Messaggio Originale- Da:

RE: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Massimo Belgrano
Is include in turbo exlorer http://turboexplorer.com/cpp That you can download from http://cc.codegear.com/free/turbo Here I find information http://blog.marcocantu.com/blog/turbo_license.html Seem that you can develop commercial applications with the Turbo Explorer editions.. But for the windo

Re: [Harbour] Re: Question about MT

2008-09-16 Thread Miguel Angel Marchuet
Yes common workareas are very good idea and I'll add them but they will not work for situations like you described above because access to such WA structures will have to controlled by mutex so it will not be possible to make on the same WA two different operations simultaneously. F.e. you will

Re: [Harbour] 2008-09-15 13:38 UTC+0200PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread frank van nuffel
Hi Enrico, you can download from here http://cc.codegear.com/Free.aspx?id=24724 on the right, on top it says it is a free download, but you'll have to register, upon which an email will be sent with a valid license for +-32000 days - no kidding ;-) you'll have to gather the required files f

Re: [Harbour] 2008-09-16 13:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-09-16 Thread Lorenzo Fiorini
On Tue, Sep 16, 2008 at 1:01 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > 2008-09-16 13:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu) > * source/compiler/hbgenerr.c >* Most ':' chars removed from Harbour compiler error messages. > Few still remain, where I wasn't sure of the exact

Re: [Harbour] 2008-09-15 13:38 UTC+0200 PrzemyslawCzerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Enrico Maria Giordano
-Messaggio Originale- Da: "Szakáts Viktor" <[EMAIL PROTECTED]> A: "Harbour Project Main Developer List." Data invio: lunedì 15 settembre 2008 23.52 Oggetto: Re: [Harbour] 2008-09-15 13:38 UTC+0200 PrzemyslawCzerpak (druzus/at/priv.onet.pl) Free BCC 5.82 has (an also free) TASM32 i

[Harbour] 2008-09-16 15:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
2008-09-16 15:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbthread.h * do not use native TLS support in BCC builds when CodeGuard is enabled best regards Przemek ___ Harbour mailing list Harbour@harbour-project.o

Re: [Harbour] Re: 2008-09-16 14:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-16 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, Chen Kedem wrote: Hi Chen, > I suggest changing the following in include/hbthread.h (r9415): > On line #304 change: > # if defined( __BORLANDC__ ) > # define HB_USE_TLS > Into: > # if defined( __BORLANDC__ ) && !defined( __CODEGUARD__ ) > # define HB_USE_TLS > As le