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

2008-08-25 Thread Przemyslaw Czerpak
2008-08-25 14:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/tests/rddtest/rddmktst.prg * harbour/tests/rddtest/adscl52.prg * harbour/tests/rddtest/adscl53.prg * harbour/tests/rddtest/ntxcl52.prg * harbour/tests/rddtest/ntxcl53.prg * harbour/tests/rddtest/cdxcl52.prg

Re: [Harbour] AADD() - tilts under stress test

2008-08-25 Thread Przemyslaw Czerpak
On Fri, 22 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > This reduced example give pretty much the same effect: > --- > Function Main() > Local i > Local aRecs := {} > > for i := 1 to 10 > aadd( aRecs, {} ) > ? i > next > > Return nil > --- > It goes wild after a little m

[Harbour] 2008-08-25 16:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-08-25 Thread Przemyslaw Czerpak
2008-08-25 16:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/macro.c * harbour/source/vm/hvm.c ! fixed _FIELD indirectly used as alias, f.e.: ? ("_FIELD")->NAME or: M->var := "_FIELD" ? ("&a

Re: [Harbour] AADD() - tilts under stress test

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > >Classic problem with memory fragmentation. Algorithms > >used by your C compiler to allocate memory from OS and > >then divide it for application do not work well with such > >code which is BTW killer for many memory managers. > >We can try

Re: [Harbour] Harbour OSX problem

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > I've just found a fatal problem with OSX Harbour binaries, > where ./hbmake (and hbmake, hbrun and hbtest) will say this: > -- > dyld: Symbol not found: _environ > Referenced from /Users/vszakats/harbour/test1/usr/local/bin/ > libharbour.

Re: [Harbour] Harbour OSX problem

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Przemyslaw Czerpak wrote: Hi Viktor, > I do not know what is the exact problem and if it's > Harbour related. Too few information and too small knowledge > about MacOSX. BTW Are you sure that platform auto detection for MacOSX in hbsetup.h works correctly an

[Harbour] 2008-08-25 20:14 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-08-25 Thread Przemyslaw Czerpak
2008-08-25 20:14 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbw32/w32_ole.c * removed hack with malloc()/free() directly used to avoid memory leak reports - it's not necessary in Harbour. * harbour/contrib/hbfbird/firebird.c * harbour/contrib/exa

Re: [Harbour] Harbour OSX problem

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > Here's a somewhat fixed hbsetup.h + diff, what's your opinion? It's OK for me but why we still have: #define OS_DOS_COMPATIBLE instead of: #define HB_OS_DOS_COMPATIBLE ? BTW HB_OS_UNIX_COMPATIBLE is for native *nix systems and enviro

Re: [Harbour] 2008-08-25 20:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > 2008-08-25 20:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu) >* config/w32/mingw32.cf > % -mno-cygwin options removed. No longer needed. If someone >wants to compile a mingw build using cygwin, this option >shou

Re: [Harbour] 2008-08-25 20:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-08-25 Thread Przemyslaw Czerpak
On Mon, 25 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > There is no such option in any of the MinGW versions (3.4.2, > 3.4.5, 4.1.2, 4.3.1) I have installed (on Windows). [ Well, > 4.3.1 has -mcygwin in its help somewhere, but both -mcygwin, > and -mno-cygwin are completely ignored. ] Try: gc

[Harbour] 2008-08-26 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-08-26 Thread Przemyslaw Czerpak
2008-08-26 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! fixed GPF when more then one file was compiled with -w3 switch best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org

[Harbour] 2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-08-26 Thread Przemyslaw Czerpak
2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! reset class and functions static declarations to avoid GPF when more then one file is compiled with -w3 switch NOTE: Whole this code will have to be removed and written

Re: [Harbour] 2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-08-26 Thread Przemyslaw Czerpak
On Tue, 26 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > I see what you mean, hbmain.c contains declarations > of stuff found in the RTL, and some of those are not > even true these days. This declarations should come > from some .ch files, instead of being hardcoded, but > that's just the tip of

Re: [Harbour] BUG (1.0.0 and current): Leak with /w3 and duplicate method declaration

2008-08-28 Thread Przemyslaw Czerpak
On Thu, 28 Aug 2008, Szakáts Viktor wrote: Hi Viktor, > --- leak.prg > #include "hbclass.ch" > CLASS test >DATA var1 >DATA var1 > ENDCLASS It's a known issue. Look at harbour.h[1332] If it's necessary I can try to fix it though as I said few time in the past whole strong typing code have

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

2008-08-29 Thread Przemyslaw Czerpak
2008-08-29 11:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbcompdf.h * harbour/source/compiler/hbmain.c * harbour/source/compiler/harbour.yyc * harbour/source/compiler/harbour.y ! removed all classes and functions static declarations ! fixed cleanup

Re: [Harbour] Error compiling hbziparch with CodeGear 5.9

2008-09-02 Thread Przemyslaw Czerpak
On Mon, 01 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > >That's very nice for those wanting to transition. > >(just a small note: the dir change to C:\ looks a bit > >dangerous to me) > Fixed, thanks. > ---cut--- > procedure HB_UnZipFile( cFile, bUpdate, lWithPath, cPassword, ; > cFileToUnzip

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

2008-09-03 Thread Przemyslaw Czerpak
On Wed, 03 Sep 2008, Szakáts Viktor wrote: Hi Viktor, > >Yes, I just checked. But I already find where the problem lies: I'm > >using SET FILECASE UPPER and ZIP functions did not follow FILECASE > >setting before. > That might be. This should be fixed in hbmzip code. The current behavior is

Re: [Harbour] To Przemek

2008-09-04 Thread Przemyslaw Czerpak
On Thu, 04 Sep 2008, Miguel Angel Marchuet wrote: Hi Miguel, > #command SET TURBOREAD ON => Sx_SetTurbo( .t. ) > generates internal error 9106, "hb_cdxIndexUnLockRead: bad count of locks." > Can we change the code ? > static BOOL hb_cdxIndexUnLockRead( LPCDXINDEX pIndex ) >

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

2008-09-04 Thread Przemyslaw Czerpak
2008-09-04 19:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbfntx/dbfntx1.c * harbour/source/rdd/dbfcdx/dbfcdx1.c ! fixed dirty index reading, thx Miguel for bug report * harbour/source/compiler/hbmain.c * removed old comment and hack best regards

Re: [Harbour] debug bug

2008-09-04 Thread Przemyslaw Czerpak
On Thu, 04 Sep 2008, bill robertson wrote: Hi Bill, > In the example below: > - > FUNCTION MAIN() > LOCAL cVar > ALTD() > cVar:= 5 // Just to stop on something > RETURN 0 > -- > If I go to the command window of the debugger

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

2008-09-04 Thread Przemyslaw Czerpak
2008-09-04 19:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbfntx/dbfntx1.c ! fixed typo in previous commit best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org

Re: [Harbour] What about a six month release cycle?

2008-09-04 Thread Przemyslaw Czerpak
On Thu, 04 Sep 2008, Lorenzo Fiorini wrote: Hi Lorenzo, > I find the 6 month release cycle and year.month release numbering very > clean since there are no discussions about "when to release", "what > include in the new release" and "how to name the next version". > Every developer knows that aft

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

2008-09-05 Thread Przemyslaw Czerpak
2008-09-05 15:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbffpt/dbffpt1.c ! fixed GPF introduced by today MSVC warning cleanup best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http

Re: [Harbour] About DBFCDX custom tags

2008-09-05 Thread Przemyslaw Czerpak
On Fri, 05 Sep 2008, Juan Gálvez wrote: Hi Juan, > I have a situation with a CUSTOM tag that contains KEY and FOR clause. > I think it's a normal situation that OrdKeyAdd() / OrdKeyDel() don't work > if the record doesn't respect the FOR clause. > When a valid record is modified and it stops to

Re: [Harbour] Bug

2008-09-08 Thread Przemyslaw Czerpak
On Mon, 08 Sep 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, > I'm back online (after 40 days of no email, no mobile phone, few > civilization). You are lucky man ;-) > My co-worker passed me a bug sample: [...] Many thanks for an example. It's caused by stupid typo. Look at hashes.c[653]

Re: [Harbour] RE: HBTest - fail in TAEVSM

2008-09-08 Thread Przemyslaw Czerpak
On Mon, 08 Sep 2008, Saulius Zrelskis wrote: Hi Saulius, > > It seems that Clipper use a cloned copy of the original array to do the > > loop, > > and supply these orininal values to the codeblock. Bug or a feature? > Clipper uses original array, but value calculates before loop > through array

[Harbour] 2008-09-08 21:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-08 Thread Przemyslaw Czerpak
2008-09-08 21:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/hashes.c ! fixed typo in hash cloning code which caused that references was copied to cloned array. Thanks to Mindaugas for example. best regards Przemek

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

2008-09-09 Thread Przemyslaw Czerpak
2008-09-09 11:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/asort.c ! fixed GPF when user sort code block reduces the size of sorted array best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http

Re: [Harbour] RE: SF bugtracker#2096950: SORT descend is wrong

2008-09-09 Thread Przemyslaw Czerpak
On Tue, 09 Sep 2008, Chen Kedem wrote: Hi Chen. > Is this a known issue? Yes it is. The SORT command / __dbArrange() function for DBF* RDDs (hbdbsort.c) does not support correctly national sorting for character fields, numeric, date and other extended field types. In fact it's very old code with

Re: [Harbour] RE: SF bugtracker#2096950: SORT descend is wrong

2008-09-09 Thread Przemyslaw Czerpak
On Tue, 09 Sep 2008, Enrico Maria Giordano wrote: Hi Enrico, > > INDEX ON ... TO _tempidx TEMPORARY; > > COPY TO ...; > > OrdBagClear( "_tempidx" ) > > Is it needed to delete the index file when we use the TEMPORARY clause? No, it will be removed automatically when order bag is closed. Of co

Re: [Harbour] 1.0 branch and MT

2008-09-10 Thread Przemyslaw Czerpak
On Wed, 10 Sep 2008, Szakáts Viktor wrote: Hi Viktor, > If you want, pls go along with your MT changes in trunk. Thanks. > Just send me a notice before you commit it, so that I > can sync 1.0 branch with the trunk before it. [ Well, if > I think about it, it's not a problem anyway, since I can

[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

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

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

[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

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

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: 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

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: 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] 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

[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

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': >

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] 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: [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] GPF sample

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > 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 "wind

Re: [Harbour] hb_gcall() and fwh

2008-09-17 Thread Przemyslaw Czerpak
On Tue, 16 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > 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 Not yet but Harbour is ready for automatic GC activation which I'll enable soon. Anyhow it may

Re: [Harbour] MT and Thread Control - Signals

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Maurilio Longo wrote: Hi Pritpal and Maurilio, > signals and sync methods are very usefull and common in xbase++ mt programs. > xharbour already has support for both of them (it seems to me that the SYNC > option still has some problems, but it's been a long time since I last

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

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > * bin/hb-mkslib.sh > * make_xmingwce.sh > * make_gcc.sh > * make_xmingw.sh > * make_gnu.sh > * make_tgz.sh > + Added SunOS platform detection as an attempt to make > make_tgz.sh work on OpenSolaris. The auto detection

Re: [Harbour] MM

2008-09-17 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 Lo

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

2008-09-17 Thread Przemyslaw Czerpak
2008-09-17 18:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbthread.h + added macros to disable default native compiler TLS support: HB_NO_TLS * harbour/source/vm/set.c ! fixed GPF when set listeners were removed best regards Przemek

Re: [Harbour] GPF sample

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > Yes, I'm using BCC 6.10 but I have GPF in prior versions too, same > using -DHB_FM_WIN32_ALLOC, and GPF appear *ONLY* when app finish. > I'm not 100% right but seems that functions like below GPF in the same The GPF was inside code used

Re: [Harbour] GPF sample

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > >I can confirm, it crashes here with an empty GPF MessageBox. > >BCC 5.8.2, MT, UNICODE, ADS 9.00. > Yes, for this reason my LOG of codeguard has no lines or sources, I'm afraid it was mistake in CG configuration/Harbour build switches.

Re: [Harbour] Tagged: Harbour 1.0.1 (r9429)

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > I've tagged Harbour release 1.0.1 (r9429). > I'll upload sources and some binaries soon. Thank you very much. > URL: > https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/tags/harbour-1.0.0 ../tags/harbour-1.0.0 is use din

Re: [Harbour] Re: Release 1.0.1 #1

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, David Arturo Macias Corona wrote: Hi David, > It build hbvmmt.a without warnings, thanks > Now Harbour is multithread in OS/2 ? :-) Thank you very much for your tests. It means that we have working MT in OS/2. > b) speedtst.prg > ST without HB_FM_STATISTICS_OFF and using h

Re: [Harbour] BUG: OSX 64-bit hbtest failures (non-critical)

2008-09-17 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > Harbour Regression Test Suite > Copyright (c) 1999-2008, http://www.harbour-project.org/ > --- > Version: Harbour 1.0.1 Intl. (Rev. 9429) > Compiler: GNU C 4.

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

2008-09-17 Thread Przemyslaw Czerpak
2008-09-18 01:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/fm.c + harbour/source/vm/dlmalloc.c + added alternative memory manager written by Doug Lea It can be activated by recompiling Harbour with HB_FM_DL_ALLOC macro. Please make test on

[Harbour] 2008-09-18 07:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-17 Thread Przemyslaw Czerpak
2008-09-18 07:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbthread.h * use assembler version of atomic inc/dec operation in all x86 based GCC builds - it should noticeable improve OS2 MT build speed, please test. * harbour/include/hbcomp.h

[Harbour] 2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-17 Thread Przemyslaw Czerpak
2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/cdpapi.c * explicit casting to char * in 1-st strchr() parameter as workaround for wrong function prototype in DMC header files best regards Przemek

Re: [Harbour] 2008-09-18 11:02 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Miguel Angel Marchuet wrote: Hi Miguel, > 2008-09-18 11:02 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]> > * contrib/hbbmcdx/bmdbfcdx.c > * source/rdd/dbfcdx/dbfcdx1.c > ! fixed generation error when length of key is greater than 256 as > Clipper. > instea

Re: [Harbour] ADS Index Page Size

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, [EMAIL PROTECTED] wrote: Ho Toninho, > Please tell me a thing: in hbrddcdx.h we have > #define CDX_PAGELEN 512 > Can we create a new item structure for _DBORDERCONDINFO and put this > value there? In this way we can set index page size in OrdCondSet() If you look carefull

Re: [Harbour] hb_gcall() and fwh

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > >Not yet but Harbour is ready for automatic GC activation which I'll > >enable soon. Anyhow it may effect 3-rd party code which keeps not > >attached GC blocks. With current API it can be done quite easy even > >by mistake. > Really the

Re: [Harbour] mingw cross build issue

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Lorenzo Fiorini wrote: Hi Lorenzo, > ../../getlist.prg:55: error: E0030 Syntax error "syntax error at 'STATIC'" > make[3]: *** [getlist.c] Error 1 > The problem is in "THREAD STATIC x". What I'm missing? You are using older (1.0.1 or earlier) harbour vompiler to compiler 1.

Re: [Harbour] Warnings with new alloc

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > I'm getting these warnings for the malloc code FYI: > [ It may be enough to suppress them, like we do for > sqlite3, at least for these compilers. ] Please try to compiler current sqlite3 without any #pragma. I cleaned nearly all standard w

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

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, David Arturo Macias Corona wrote: Hi David, > Below are results of current Harbour under eComStation 1.2MR > gcc 3.3.5 > set C_USR=-DHB_FM_STATISTICS_OFF -DHB_FM_DL_ALLOC > errors in dlmalloc.c > In file included from ../../fm.c:117: > ../../dlmalloc.c: In function `mmap_allo

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

2008-09-18 Thread Przemyslaw Czerpak
2008-09-18 17:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/make_rpm.sh * use rpm to test if curl-devel package is installed * harbour/include/hbapi.h * harbour/source/common/hbstr.c + added hb_strduptrim() and hb_strlentrim() * harbour/source/rdd/dbfcdx

Re: [Harbour] A few questions about MT

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Mindaugas Kavaliauskas wrote: Hi Mindaugas, > 1) memvars are local to the thread including PUBLICs. I use a few memvars > to set some global variables/setting, like, comma separator, help file > name, etc. I do not change it later during program execution. In MT these > PU

Re: [Harbour] 2008-09-18 11:02 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Miguel Angel Marchuet wrote: Hi Miguel, > But some considerations: > 1) macro evaluator actually supports 254 chars as in clipper. >Then it suppose that macro evaluator should grow to support at least 511 > chars, >better 64Kb. In Harbour it's quarant

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

2008-09-18 Thread Przemyslaw Czerpak
2008-09-18 19:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbfcdx/dbfcdx1.c ! fixed memory leak - Many thanks to Miguel for report best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http

Re: [Harbour] mingwce cross build issue

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Lorenzo Fiorini wrote: > Under Fedora 9 using cegcc-mingw32ce-0.50-1.i586 I get: > In file included from ../../../arrays.c:78: > ../../../../../include/hbstack.h:194: error: thread-local storage not > supported for this target > make[4]: *** [arrays.o] Error 1 Do not use HB_US

[Harbour] 2008-09-18 20:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-18 Thread Przemyslaw Czerpak
2008-09-18 20:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/thread.c * detach local parameters passed by reference to hb_threadStart() to avoid possible calling thread HVM stack corruption best regards Przemek

Re: [Harbour] A few questions about MT

2008-09-18 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Szak�ts Viktor wrote: Hi Viktor, > I also have one: > If a given thread gets a non-handled RTE, or, an internal > error, will the whole application fail and exit, or just > the thread where the error occured? RT errors, begin sequence / break / recover / always statements, o

Re: [Harbour] to przmek about ordkeyval length

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Miguel Angel Marchuet wrote: > OrdKeyVal can't be more large than 240 at cdx almoust in clipper. Just like in all other languages. 240 bytes is forced by internal CDX structure for 512 bytes index page length. You have to be able to store in the worst case at least two keys in

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

2008-09-19 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, David Arturo Macias Corona wrote: Hi David, > > FAILED mttest05, mttest06 > > something appear/disappear flashing in screen > mttest05 are failing in random way > Results of previous message were after building Harbour > After reboot > Rebuilding mttest05 > Failed firs

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

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Maurilio Longo wrote: Hi Maurilio, > no, there is not mmap on OS/2. Several years ago I wrote a .dll to emulate it > for the msql (miniSQL) OS/2 port and it worked ok, but was not the real thing > :) > You can still find it on http://hobbes.nsmu.edu, but I think it would be

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

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Maurilio Longo wrote: Hi Maurilio, > this is what doswaitthread() does: > Places the current thread into a wait state until another thread in the > current process has ended. It then returns the thread identifier of the > ending thread. [...] > I hope this helps and thanks fo

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

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, maurilio longo wrote: Hi Maurilio, > > This function cannot be used to join given thread because it waits for > > _any_ thread termination. > No, you can wait for a particular thread. > See: > ptid (PTID) - in/out Address of the thread identification. > Input The address of t

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

2008-09-19 Thread Przemyslaw Czerpak
2008-09-19 22:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/set.c ! fixed casting * harbour/contrib/xhb/xhbcopyf.c * replaced TABs with SPACEs * harbour/include/hbapirdd.h * harbour/source/rdd/workarea.c * harbour/source/rdd/wacore.c * harbour

Re: [SPAM] [Harbour] RDD - of type PHB_ITEM

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Pritpal Bedi wrote: Hi Pritpal, > I re-request : > 1) Extend clause to be of type PHB_ITEM > OR > 2) Provide new clause like of type PHB_ITEM in > core of RDD. > I understand that this feature may be used by new RDDs in > different way but probably new RDDs may have addit

Re: [SPAM] [Harbour] HB_EXEC() - Candidate for RTL ?

2008-09-19 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Pritpal Bedi wrote: Hi Pritpal, > Function HB_EXEC() is included in HBTIP.LIB. > Is not this function a candidate for RTL? Rather not. This function uses hack which is strictly oriented for current HVM low level code. I'd rather prefer sth cleaner for such jobs or implement

[Harbour] 2008-09-20 00:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-19 Thread Przemyslaw Czerpak
2008-09-20 00:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + harbour/source/rdd/wadetach.c + added .prg functions: hb_waDetach( [|], [] ) -> hb_waRequest( [], [], [<@xCargo>], [] ) -> The first one detach workarea from current thr

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

2008-09-19 Thread Przemyslaw Czerpak
On Wed, 17 Sep 2008, Przemyslaw Czerpak 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 just commited them but I had to

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

2008-09-19 Thread Przemyslaw Czerpak
2008-09-20 03:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/hvm.c * minor modification: #ifdef ... => #if defined( ... ) * harbour/source/rtl/gtcrs/gtcrs.c * harbour/source/rtl/gttrm/gttrm.c ! fixed reentrance counter resetting best regards Prze

[Harbour] 2008-09-20 05:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-19 Thread Przemyslaw Czerpak
2008-09-20 05:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/common.mak * harbour/source/rdd/Makefile ! restored dbdetach.* in makefiles + harbour/source/rdd/dbdetach.c + added file I forgot to add in previous commit * harbour/source/vm/thread.c + added

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

2008-09-21 Thread Przemyslaw Czerpak
On Sat, 20 Sep 2008, David Arturo Macias Corona wrote: Hi David, > For mttest05: > 1 fresh Harbour > 1 build Harbour > 150 runs with > - 10 rebuilt > - 3 reboots > result: > 0 errors Thank you very much for your tests. Looks that it works correctly anyhow I do not like the way it is done. I h

Re: [SPAM] [Harbour] MT Modal - Harbour vs xHarbour

2008-09-21 Thread Przemyslaw Czerpak
On Fri, 19 Sep 2008, Pritpal Bedi wrote: Hi Pritpal, > Here is the message transcript on xHarbour NG: [...] xHarbour never had have working MT model. There is nothing what even can be called MT model in this language. Just few hacks to create and executes threads but serious problems in core cod

Re: [SPAM] Re: [Harbour] MT Modal - Harbour vs xHarbour

2008-09-21 Thread Przemyslaw Czerpak
On Sat, 20 Sep 2008, Andi Jahja wrote: Hi Andi, > And this is the reply from xHarbour expert: > > Absolutely right. Today Przemek has committed exactly same behaviour as of > > Xbase++ > > > > 2008-09-20 00:42 UTC+0200 Przemyslaw Czer

Re: [SPAM] [Harbour] harbour 1.1 ( ChangeLog 9453 2008-09-20 03:37:41Z druzus ) + bcc (551 or 582).

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, Petr Chornyj wrote: It works perfectly for me. [...] > FUNCTION CheckCfg( cIniFile ) > LOCAL hIni, hMain, nIndex := 0 > PUBLIC bf, mf, hf > // > hIni := HB_IniRead( cIniFile ) > IF Empty( hIni ) > ? "Error: missing or wrong " + cIniFile >

[Harbour] 2008-09-21 23:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-21 Thread Przemyslaw Czerpak
2008-09-21 23:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbapi.h * harbour/source/vm/arrays.c + added hb_arrayGetPtrGC(), hb_arrayGetSymbol(), hb_arraySetSymbol() * harbour/include/hbapi.h * harbour/source/vm/dynsym.c + added hb_dynsymProtectEval

Re: [Harbour] MT "stress" test success

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, Lorenzo Fiorini wrote: Hi Lorenzo, > However I've found that even a "small" change like that required a > major change in the code. Not in the function itself but in all that > functions that are called in the middle. > Things like data driven app and "static file wide vars +

Re: [SPAM] Re: [Harbour] [SPAM] harbour 1.1 ( ChangeLog 9453 2008-09-20 03:37:41Z druzus ) + bcc (551 or 582).

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, Petr Chornyj wrote: Hi Peter, > What compiler you use? > I rebuild harbour from scratch with bcc 582 and got again > .T. > .F. > Error: missing MAIN section in test.ini > > I try it with msvc 71, OpenWatcom 17a, Digital Mars 8.51, even with bcc582 + > harbour-11-b32.dll > .

Re: [SPAM] Re: [Harbour] [SPAM] harbour 1.1 ( ChangeLog 9453 2008-09-20 03:37:41Z druzus ) + bcc (551 or 582).

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, Przemyslaw Czerpak wrote: Hi Peter, > Very strange results. I do not know anything about compiler > dependent code in this example. I think that I know what could be a problem: regular expressions library. BCC uses its own copy of very old PCRE library to emulate

Re: [Harbour] A few questions about MT

2008-09-21 Thread Przemyslaw Czerpak
On Thu, 18 Sep 2008, Szak�ts Viktor wrote: Hi all, > For now, I'd personally vote to make PUBLICs visible for > all threads (otherwise most apps would need to be rewritten > in this respect I guess), and PRIVATEs to the threads that > define them. 'THREAD PUBLIC' could be introduced to create > P

Re: [Harbour] Time wrong in Harbour.exe /build vs hb_buildDate()

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, [EMAIL PROTECTED] wrote: Hi Toninho, > Very strange, but this problem appeared again in latest SVN: > harbour /build = 20:19:11 > ? hb_builddate() = 20:19:10 > Anybody confirm please ? It's expected behavior. These are two different functions and each of them use __TIME__ ma

Re: RE: Re: [Harbour] [SPAM] harbour 1.1 ( ChangeLog 9453 2008-09-2003:37:41Z druzus ) + bcc (551 or 582).

2008-09-21 Thread Przemyslaw Czerpak
On Sun, 21 Sep 2008, Massimo Belgrano wrote: Hi Massimo, > Will //INFO display also info of c compiler? No, this information is shown when you run harbour application with //BUILD switch. best regards, Przemek ___ Harbour mailing list Harbour@harbour-

[Harbour] 2008-09-22 02:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-21 Thread Przemyslaw Czerpak
2008-09-22 02:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbvm.h * harbour/source/vm/hvm.c * harbour/source/vm/thread.c + added .prg function hb_threadSelf() -> | NIL It returns thread ID pointer variable or NIL when thread was registe

[Harbour] MT TOFIX / TODO

2008-09-21 Thread Przemyslaw Czerpak
Hi all, Here is a list of things which should be fixed or added in Harbour MT mode. I plan to make most of them soon but I think it's good to document them now to avoid possible problems or confusions. In few cases I do not know if I will want to resolve them for MT mode, f.e. investing time in MT

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

2008-09-21 Thread Przemyslaw Czerpak
2008-09-22 03:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbstack.h * harbour/source/vm/estack.c * harbour/source/vm/hvm.c + added support for nested hb_vmUnlock()/hb_vmLock() calls * harbour/source/rtl/hbinet.c * encapsulated all potentially slow

[Harbour] 2008-09-22 04:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-09-21 Thread Przemyslaw Czerpak
2008-09-22 04:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/hbinet.c ! fixed typo in previous commit which broke MS-Win builds * check hb_vmReaquestQuery() after executing use codeblocks best regards Przemek

<    5   6   7   8   9   10   11   12   13   14   >