[Harbour] Re: hbQT - c++ stub - GC : Some food for thoughts

2010-01-30 Thread Pritpal Bedi
This is the latest stub. One run of hbIDE - enter/exit reveals that new() is issued 1439 times delete() is issued 300 times hb_out.log reports 1139 unreleased blocks. === const char * __hbmk2_hbcppmm( void ) { return "HBCPPMM"; } int getnew(

[Harbour] SF.net SVN: harbour-project:[13739] trunk/harbour

2010-01-30 Thread vouchcac
Revision: 13739 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13739&view=rev Author: vouchcac Date: 2010-01-31 03:37:27 + (Sun, 31 Jan 2010) Log Message: --- 2010-01-30 19:28 UTC-0800 Pritpal Bedi (prit...@vouchcac.com) * contrib/hbqt/generator/qt45

[Harbour] SF.net SVN: harbour-project:[13738] trunk/harbour

2010-01-30 Thread vouchcac
Revision: 13738 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=13738&view=rev Author: vouchcac Date: 2010-01-31 03:21:29 + (Sun, 31 Jan 2010) Log Message: --- 2010-01-30 18:35 UTC-0800 Pritpal Bedi (prit...@vouchcac.com) * contrib/hbqt/generator/hbqt

Re: [Harbour] undefined reference to 'hb_stack'

2010-01-30 Thread Viktor Szakáts
Hi, On 2010 Jan 31, at 03:06, Leandro Damasio wrote: >> I can't recommend doing that in any application as >> these are not guaranteed interfaces/structures, plus >> it may cause several other problems (alignment >> dependence, corrupting VM internals, MT/ST mode >> dependence, code breaking when

Re: [Harbour] undefined reference to 'hb_stack'

2010-01-30 Thread Leandro Damasio
I can't recommend doing that in any application as these are not guaranteed interfaces/structures, plus it may cause several other problems (alignment dependence, corrupting VM internals, MT/ST mode dependence, code breaking when Harbour internals happen to change). ok Viktor, I see. That's what

[Harbour] Re: hbQT - Events and Slots Parameters Change

2010-01-30 Thread Pritpal Bedi
Viktor Szakáts wrote: > > IOW it would be shooting ourselves in the foot, if > we gave compatibility a priority over fixing things, > at this early point of development. > Aameen. So I am continueing the processs of overhaul. - enjoy hbIDEing...

[Harbour] Re: qt slots/events

2010-01-30 Thread Pritpal Bedi
Viktor Szakáts wrote: > > I see this code in hbxbp: > --- > METHOD HbpQtUI:destroy() >LOCAL a_ > >FOR EACH a_ IN ::aSignals > Qt_Slots_disConnect( ::pSlots, a_[ 1 ], a_[ 2 ] ) >NEXT > >FOR EACH a_ IN ::aEvents > Qt_Events_disConnect( ::pEvents, a_[ 1 ], a_[ 2 ] ) >

Re: [Harbour] undefined reference to 'hb_stack'

2010-01-30 Thread Viktor Szakáts
Hi, Probably you try to use internals in your .c code. (accessing HB_BASEARRAY f.e.) I can't recommend doing that in any application as these are not guaranteed interfaces/structures, plus it may cause several other problems (alignment dependence, corrupting VM internals, MT/ST mode dependenc

Re: [Harbour] qt slots/events

2010-01-30 Thread CarozoDeQuilmes
Hi, I'm interesting in know more about it, but the thread didn't continued. Regards CdQ On Tue, Jan 26, 2010 at 8:04 AM, Viktor Szakáts wrote: > Hi Pritpal, > > I see this code in hbxbp: > --- > METHOD HbpQtUI:destroy() > LOCAL a_ > > FOR EACH a_ IN ::aSignals > Qt_Slots_disConnect( ::p

Re: [Harbour] undefined reference to 'hb_stack'

2010-01-30 Thread Leandro Damasio
Viktor Szakáts wrote: Just delete '#include "hbvmopt.h"', it's an internal header, not needed. After supressing hbvmopt.h I get a lot compile errors. This hb_arraySeek function is based upon hb_arrayScan and is quite similar to it and so it seems to need hbvmopt.h to be compiled. Without hbvm

Re: [Harbour] hbQT - Events and Slots Parameters Change

2010-01-30 Thread Viktor Szakáts
Hi Pritpal and all, On 2010 Jan 30, at 23:28, Pritpal Bedi wrote: > > Hello Everybody > > I am in the middle of overhaul of Events and Slots protocols > which is aimed at to get rid of the GC pointer reference counting. > > I have changed the parameters how Events and Slots are calling > .prg

[Harbour] hbQT - Events and Slots Parameters Change

2010-01-30 Thread Pritpal Bedi
Hello Everybody I am in the middle of overhaul of Events and Slots protocols which is aimed at to get rid of the GC pointer reference counting. I have changed the parameters how Events and Slots are calling .prg level code blocks. Current implementation is dispatching codeblock as ( prg equiva

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Massimo Belgrano
Thanks for clarification Reading Documentation i have think to a my old project http://sites.google.com/site/pillharbour/ still sorry for be out of theme 2010/1/30 Viktor Szakáts : > Sorry, but this is nor short neither up to the point. > > Harbour needs descriptions for the functions it offers,

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Viktor Szakáts
Sorry, but this is nor short neither up to the point. Harbour needs descriptions for the functions it offers, that's the most important. If someone has useful and practical advice to add to help Smu to get started, please do. Brgds, Viktor On 2010 Jan 30, at 18:02, Massimo Belgrano wrote: >

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Massimo Belgrano
I have same documentation but i am also a bad writer i can share via google document with you we must search a way that allow an on line collaboration from user 1 fist idea for harbour doc we need a little dbf for create index of document where one document maj be present in one or more categorie

Re: [Harbour] Append From SDF|DELIMITED problem

2010-01-30 Thread Vitomir Cvitanovic
From: Barry Jackson To: harbour@harbour-project.org There is probably a better way as I guess someone will be able to suggest, but if you need a quick solution then in nix you could try dos2unix or unix2dos to adjust the files as needed. Regards, Barry Thanks for your suggestion. Unforunate

Re: [Harbour] Re: hbQT - c++ stub - GC : Some food for thoughts

2010-01-30 Thread Viktor Szakáts
Hi, > delete ( ( QWidget * ) p->ph ); > delete p->ph; // this triggers multiple freeing > > So the test scenario I presented is wrong altogether. > only > delete ( ( QWidget * ) p->ph ); > is enough and operator in our stub is called. > > Good news is that hbXBP/d

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Viktor Szakáts
Hi Smu, > This has been discussed a lot on this list, and it's really > not a technical problem, it simply needs contributors, > willing to give something (in this case documentation writing) > back to the project they're getting for free. > > Viktor, I would love to help out on the documentation

[Harbour] Re: hbQT - c++ stub - GC : Some food for thoughts

2010-01-30 Thread Pritpal Bedi
Hi More deeper analysis revealed that multiple freeing of pointers is triggered if an invalid pointer is sent to hb_xfree(). Like this: delete ( ( QWidget * ) p->ph ); delete p->ph; // this triggers multiple freeing So the test scenario I presented is wrong altog

Re: [Harbour] Append From SDF|DELIMITED problem

2010-01-30 Thread Barry Jackson
On 30/01/10 14:23, Vitomir Cvitanovic wrote: Hi, Recently I have found the problem trying to import some SDF/Delimited files. My program is working compiled with Clipper, but not working compiled with Harbour... Environment: Harbour rev. 13584 Local computer: WinXP SP2 / SP3 (Problematic File): c

[Harbour] Re: hbct FILEATTR() function not working.

2010-01-30 Thread Pritpal Bedi
smu johnson wrote: > > Viktor, I would love to help out on the documentation project. I consider > myself a decent writer who can explain things clearly and give examples > that > prove all nooks and cranny's of something. If you are interested in > giving > me a task to start off with, I'd be

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread smu johnson
On Sat, Jan 30, 2010 at 5:24 AM, Viktor Szakáts wrote: > > This has been discussed a lot on this list, and it's really > not a technical problem, it simply needs contributors, > willing to give something (in this case documentation writing) > back to the project they're getting for free. > Viktor

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread smu johnson
Przemek: 1) The DO WHILE loop (3rd example out of my list of three examples) I ran in the first message in this thread actually will return the decimal data. In my post, it couldn't find the file, because it's attrib was +h, hidden. :) 2) The first two " ? FILEATTR " examples I wrote, are indee

[Harbour] Append From SDF|DELIMITED problem

2010-01-30 Thread Vitomir Cvitanovic
Hi, Recently I have found the problem trying to import some SDF/Delimited files. My program is working compiled with Clipper, but not working compiled with Harbour... Environment: Harbour rev. 13584 Local computer: WinXP SP2 / SP3 (Problematic File): created on nix system, arround 200 MB, contai

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Viktor Szakáts
Hi, > is in Harbour docs an ordered list of Harbour extensions/substitute Clipper > functions ? > I searched among the various document but I haven't found anything. Maybe I > haven't searched deeply... > Furthermore, in the doc files the documentation of each function is not > described in de

RE: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Marco Boeri
Hi all, is in Harbour docs an ordered list of Harbour extensions/substitute Clipper functions ? I searched among the various document but I haven't found anything. Maybe I haven't searched deeply... Furthermore, in the doc files the documentation of each function is not described in depth:

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Przemysław Czerpak
On Sat, 30 Jan 2010, smu johnson wrote: > It appears the FILEATTR() function doesn't work. > According to http://www.ousob.com/ng/tools1-3/ng935ab.php , it says it > should return a bit-wise decimal number. I tried a few different ways... > absolute path, relative, and a piece of code my brother f

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread smu johnson
Oh... the only reason I kept using these functions was because Norton Guides lists them so nicely... I will try to look through ChangeLog, but I have found that it is quite difficult to grab functions from there, as it is not presented in a nice list. But I will give it a shot. Thanks On Sat, J

Re: [Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread Viktor Szakáts
Hi, Aside from the bug, I suggest to use Harbour core functions wherever they exist, in this case they are HB_FGETATTR() and HB_FSETATTR(). There is also HB_FGETDATETIME(), HB_FSETDATETIME(). There is also HB_FSIZE(), etc. Many time these are documented in ChangeLog. Brgds, Viktor On 2010 Ja

Re: [Harbour] Re: Request for inet thing

2010-01-30 Thread Giancarlo Niccolai
In data sabato 30 gennaio 2010 04:40:35, Pritpal Bedi ha scritto: : > Giancarlo Niccolai wrote: > > Hello ppl of Harbour; > > > > I don't follow regurarly the ML, but, in an "ego surfing" session, I > > found this message from April White from last october: > > Thank you for dropping in, does not

[Harbour] Possible bug: KSETNUM (hbct)

2010-01-30 Thread smu johnson
Clipper tools possible bug, KSETNUM. The syntax says: KSETNUM ([]) -> lOldSwitch But what really happens, is that ? KSETNUM(.T.) prints whether or not NUMLOCK is on or not, using .T. / .F.. It doesn't actually change Numlock, as the SYNOPSIS says it does. -- smu johnson

Re: [Harbour] Ask for var2str(...) and str2var(...) pairs functions for harbour ...

2010-01-30 Thread Przemysław Czerpak
On Fri, 29 Jan 2010, Shum wrote: Hi, > I want to ask for var2str(...) and str2var(...) pairs functions (something > that in Xbase++) for harbour > Or does it already there in harbour ? cData := hb_serialize( xData ) [...] xData := hb_deserialize( cData ) If you need human readbale for

[Harbour] hbct FILEATTR() function not working.

2010-01-30 Thread smu johnson
It appears the FILEATTR() function doesn't work. According to http://www.ousob.com/ng/tools1-3/ng935ab.php , it says it should return a bit-wise decimal number. I tried a few different ways... absolute path, relative, and a piece of code my brother found from the Harbour source files. ___Pre-tes

[Harbour] Re: Ask for var2str(...) and str2var(...) pairs functions for harbour ...

2010-01-30 Thread Shum
Hi Harbour Developer, I am sorry, I have made the mistake ... the functions pair which I needed should be as follow: var2bin(...) and bin2var(...) (like in Xbase++ ) Shum -- View this message in context: http://n2.nabble.com/Ask-for-var2str-and-str2var-pairs-functions-for-harbo