[Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Lorenzo Fiorini
On Jan 8, 2008 8:40 AM, Lorenzo Fiorini [EMAIL PROTECTED] wrote: I need to start several instances of the same Harbour app and I'd like to create an html console interface to see which are running. Googling I've found a way to dot it. Is this safe? Comments from C gurus? best regards,

Re: [Harbour] Memoedit.prg Teditor.prg

2008-01-09 Thread Szakáts Viktor
Hi Pritpal, I missed your prev mail, but now I've found it. Unfortunately the files are what I've suspected, and what you've also told in your mail; these are full ports of these xhb files just to compile under Harbour. I vote no to include xhb files as-is in the core, for the reasons I wrote

Re: R: [Harbour] Clipper Compatibility (compiler variable declaration check)

2008-01-09 Thread Przemyslaw Czerpak
On Tue, 08 Jan 2008, Szakáts Viktor wrote: I understand, thanks for the tip. I've just committed this modification. Thank you. Something's still not right though. When compiling checkbox.prg (the first OO code in the build process), lots of syntax errors appear, then - after a slight pause

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Lorenzo Fiorini
On Jan 9, 2008 10:53 AM, Alexander S.Kresin [EMAIL PROTECTED] wrote: But isn't it simpler to use getpid() to determine the pid of a process instead of forking it ? Probably yes but I didn't find viable examples. My idea is to create a series of HB_RUNxxx functions that controls processes,

Re: R: [Harbour] Clipper Compatibility (compiler variable declaration check)

2008-01-09 Thread Szakáts Viktor
Hi Przemek, It would be better IMO too, to not impose artificial limits just to present a bit more meaningful error message, since these problems don't normally occur in user code. I think - if we can - we should just fix the problems causing it (those you describe), preferably using the

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Lorenzo Fiorini
On Jan 9, 2008 10:53 AM, Alexander S.Kresin [EMAIL PROTECTED] wrote: But isn't it simpler to use getpid() to determine the pid of a process instead of forking it ? Can hb_fsPOpen in source/rtl/filesys.c be a start? best regards, Lorenzo ___

[Harbour] Interesting Xmate proposal

2008-01-09 Thread Massimo Belgrano
Maurizio la Cecilia have write on xmate newsgroup at http://tech.groups.yahoo.com/group/xmate_users/message/1921 Hi all, have a good new year. Some day before Christmas Andy Wos and me have talked and evaluated the possibility of give to xMate a new impulse, collaborating about this product in a

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Alexander S.Kresin
Lorenzo Fiorini: On Jan 9, 2008 10:53 AM, Alexander S.Kresin [EMAIL PROTECTED] wrote: But isn't it simpler to use getpid() to determine the pid of a process instead of forking it ? Probably yes but I didn't find viable examples. As I have understood just now, you need to get the pid

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Alexander S.Kresin
Lorenzo Fiorini: On Jan 9, 2008 10:53 AM, Alexander S.Kresin [EMAIL PROTECTED] wrote: But isn't it simpler to use getpid() to determine the pid of a process instead of forking it ? Can hb_fsPOpen in source/rtl/filesys.c be a start? Hm... I don't see how the hb_fsPOpen() code is related

Re: [Harbour] 2007-11-30 20:25 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)

2008-01-09 Thread Mindaugas Kavaliauskas
Przemyslaw Czerpak-2 wrote: * harbour/source/rtl/perfuncs.prg * harbour/source/rtl/menuto.prg * harbour/source/rtl/getlist.prg * harbour/source/rtl/readvar.prg * harbour/source/rtl/text.prg * use STATIC THREAD variables to make above code MT safe Pritpal Bedi wrote: Interesting.

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Przemyslaw Czerpak
On Wed, 09 Jan 2008, Lorenzo Fiorini wrote: But isn't it simpler to use getpid() to determine the pid of a process instead of forking it ? Probably yes but I didn't find viable examples. My idea is to create a series of HB_RUNxxx functions that controls processes, sth like: HB_RUN( cCmd

Re: [Harbour] Interesting Xmate proposal

2008-01-09 Thread Pritpal Bedi
Hi Massimo Belgrano wrote: Maurizio la Cecilia have write on xmate newsgroup at http://tech.groups.yahoo.com/group/xmate_users/message/1921 Hi all, have a good new year. Some day before Christmas Andy Wos and me have talked and evaluated the possibility of give to xMate a new impulse,

[Harbour] Store via Item API

2008-01-09 Thread Mindaugas Kavaliauskas
Hello, I need to store item to parameter passed by reference. I found there is no API for this. My current code is: if( hb_param( 2, HB_IT_BYREF ) ) { ... hb_itemMoveToRef( hb_stackItemFromBase( 2 ), pItem ); } Is this OK? Can we have function hb_itemParamStore( iParam,

[Harbour] RE: Harbour Digest, Vol 15, Issue 18

2008-01-09 Thread Horodyski Marek (PZUZ)
From: Massimo Belgrano [EMAIL PROTECTED] Subject: [Harbour] Interesting Xmate proposal Hi all, [...] Thus i ask you to signal to Andy posting on this group about an interest about this idea replicating to this message. Best regards. Massimo, ask Andy about hierahical source code editor in

Re: [Harbour] 2007-11-30 20:25 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)

2008-01-09 Thread Pritpal Bedi
Hi Mindaugas Kavaliauskas wrote: Przemyslaw Czerpak-2 wrote: * harbour/source/rtl/perfuncs.prg * harbour/source/rtl/menuto.prg * harbour/source/rtl/getlist.prg * harbour/source/rtl/readvar.prg * harbour/source/rtl/text.prg * use STATIC THREAD variables to make above code

[Harbour] 2008-01-09 15:03 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-01-09 Thread Przemyslaw Czerpak
2008-01-09 15:03 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/estack.c * added missing static to s_initSymbol declaration * harbour/include/hbgtinfo.ch * harbour/source/rtl/scroll.c * formatting * harbour/common.mak * added empty line necessary for

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Lorenzo Fiorini
On Jan 9, 2008 1:14 PM, Przemyslaw Czerpak [EMAIL PROTECTED] wrote: Try the code below. It makes what you are looking for. Compile example with GTCGI for better merge 'ps xa' and program output. Many thanks, it's exactly what I need and it works perfectly. Do the group agree if I add these

Re: [Harbour] Interesting Xmate proposal

2008-01-09 Thread Petr Chornyj
Massimo Belgrano wrote: Maurizio la Cecilia have write on xmate newsgroup at http://tech.groups.yahoo.com/group/xmate_users/message/1921 .. Andy will think to release on SourceForge or a similar group the source of xMate. .. I think it fine idea, xMate is good product, but with zero

Re: [Harbour] Re: How to get the pid of a app started with run()?

2008-01-09 Thread Lorenzo Fiorini
On Jan 9, 2008 5:20 PM, Szakáts Viktor [EMAIL PROTECTED] wrote: Are these functions portable? I don't know but it would be nice to have them for Windows also ( or sth similar ). I'd suggest some different names in case we include this in Harbour. No problems here. best regards, Lorenzo

Re: [Harbour] Autoincrement fields

2008-01-09 Thread Francesco Saverio Giudice
Przemek, - Original Message - From: Przemyslaw Czerpak [EMAIL PROTECTED] To: Harbour Project Main Developer List. harbour@harbour-project.org Sent: Tuesday, January 08, 2008 3:04 PM Subject: Re: [Harbour] Autoincrement fields On Thu, 27 Dec 2007, Francesco Saverio Giudice wrote: Hi

[Harbour] How to gzip a string?

2008-01-09 Thread Lorenzo Fiorini
I don't need hbziparch but simply send deflate/gzip data to a web browser. Is the HB_COMPRESS/HB_UNCOMPRESS in xhb the only solution? I would like to find a non-xhb solution. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org