From arne@ii.uib.no Mon May 07 10:54:57 2001
Received: from eik.ii.uib.no ([129.177.16.3] helo=ii.uib.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14wmPZ-00045l-00
	for <bug-commoncpp@gnu.org>; Mon, 07 May 2001 10:54:57 -0400
Received: from apal-192.ii.uib.no (apal.ii.uib.no) [129.177.192.27] 
	by ii.uib.no with esmtp (Exim 3.03)
	id 14wmPX-00064O-00 
	for <bug-commoncpp@gnu.org>; Mon, 07 May 2001 16:54:55 +0200
Received: (from arne@localhost)
	by apal.ii.uib.no (8.9.3+Sun/8.9.3) id QAA23364;
	Mon, 7 May 2001 16:54:54 +0200 (MEST)
Date: Mon, 7 May 2001 16:54:54 +0200 (MEST)
From: Arne Sletteng <arne@ii.uib.no>
To: <bug-commoncpp@gnu.org>
Subject: irix compat
Message-ID: <Pine.SOL.4.33.0105071649550.249-100000@apal.ii.uib.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

>From the commonc++ www-page:

>Common C++ has been tested to date with GNU/Linux, FreeBSD, Solaris, and
>DEC Tru64 Unix. HP/UX has also been tried and found not to be
>successfully supported at this time.

What is the deal on Common C++ and SGI/IRIX ? I had a go at compiling this
at IRIX 6.5.11, but it failed early in the process complaining about
u_short and inet_aton, which is quite common stuff. Does this mean that
the library is untested at this platform? I'm considering common c++ for a
project now, and compability across win32/linux/irix and possibly sun is a
consern.

Thanks for the efforts in building this framework, at first sight it looks
really slick :)

- arne




From dyfet@ostel.com Mon May 07 13:11:03 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14woXH-00071H-00
	for <bug-commoncpp@gnu.org>; Mon, 07 May 2001 13:11:03 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 6821F9A36B; Mon,  7 May 2001 13:07:56 -0400 (EDT)
Message-ID: <3AF6D66C.2020203@ostel.com>
Date: Mon, 07 May 2001 13:07:56 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: Arne Sletteng <arne@ii.uib.no>
Cc: bug-commoncpp@gnu.org
Subject: Re: irix compat
References: <Pine.SOL.4.33.0105071649550.249-100000@apal.ii.uib.no>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

While Solaris has been tested from time to time, I do not happen to have 
access to an IRIX and have no information on it as a target platform.  Perhaps 
there are others who have ported it there...

David

Arne Sletteng wrote:

>>From the commonc++ www-page:
> 
> 
>> Common C++ has been tested to date with GNU/Linux, FreeBSD, Solaris, and
>> DEC Tru64 Unix. HP/UX has also been tried and found not to be
>> successfully supported at this time.
> 
> 
> What is the deal on Common C++ and SGI/IRIX ? I had a go at compiling this
> at IRIX 6.5.11, but it failed early in the process complaining about
> u_short and inet_aton, which is quite common stuff. Does this mean that
> the library is untested at this platform? I'm considering common c++ for a
> project now, and compability across win32/linux/irix and possibly sun is a
> consern.
> 
> Thanks for the efforts in building this framework, at first sight it looks
> really slick :)
> 
> - arne
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From dyfet@ostel.com Sat May 12 02:22:54 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14ySnm-0005yC-00
	for <bug-commoncpp@gnu.org>; Sat, 12 May 2001 02:22:54 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP id 4C2089EA45
	for <bug-commoncpp@gnu.org>; Sat, 12 May 2001 02:20:25 -0400 (EDT)
Message-ID: <3AFCD628.9000006@ostel.com>
Date: Sat, 12 May 2001 02:20:24 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: This is a test...
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This is a test message.



From Massimo.Balestri@tilab.com Tue May 15 12:44:34 2001
Received: from ss3000e.cselt.it ([163.162.41.5])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14zhw1-0005Pm-00
	for <bug-commoncpp@gnu.org>; Tue, 15 May 2001 12:44:33 -0400
Received: from IBM10226.tilab.com (ACCAPI41.cselt.it [163.162.130.52])
 by ss3000e.cselt.it (PMDF V5.2-31 #43137)
 with ESMTP id <0GDD001ZXYEL5H@ss3000e.cselt.it> for bug-commoncpp@gnu.org;
 Tue, 15 May 2001 18:42:22 +0200 (MET DST)
Date: Tue, 15 May 2001 18:44:19 +0200
From: Massimo Balestri <Massimo.Balestri@TILAB.COM>
Subject: using the CommonC++ library in WIN32
X-Sender: balestri@kim
To: Cplusplus-devel@lists.sourceforge.net
Cc: bug-commoncpp@gnu.org
Message-id: <5.1.0.14.0.20010515182946.00b15180@kim>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Content-type: text/plain; charset="us-ascii"; format=flowed
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi all,
(sorry for any duplicate e-mail, I don't know exactly which reflector is 
currently in use);
I am trying to use CommonC++ 1.4.2. on a set of WIN32 machines (98, NT, 2000).
I use VC++ 6.0 (SP4) to compile the library.
I can compile the library without problems, but when I try to use it, each 
time I include
"thread.h" I get the following level-1 warnings:
--------------------------
Compiling...
threadtest.cpp
c:\workspace\ovm_code\common\commoncxx\thread.h(486) : warning C4273: 
'waitThread' : inconsistent dll linkage.  dllexport assumed.
c:\workspace\ovm_code\common\commoncxx\thread.h(487) : warning C4273: 
'delay' : inconsistent dll linkage.  dllexport assumed.
c:\workspace\ovm_code\common\commoncxx\thread.h(488) : warning C4273: 
'yield' : inconsistent dll linkage.  dllexport assumed.
c:\workspace\ovm_code\common\commoncxx\thread.h(490) : warning C4273: 
'getException' : inconsistent dll linkage.  dllexport assumed.
c:\workspace\ovm_code\common\commoncxx\thread.h(491) : warning C4273: 
'setException' : inconsistent dll linkage.  dllexport assumed.
Linking...
-----------------------------------
Then the simple example runs without problems, but I suppose that this is 
not a good sign.
My impression is that more complex examples could go into troubles.
Attached is the test code (a very simple code...)

with kind regards,
Massimo.
------------------------------
#include "config.h"
#include "thread.h"
#include "socket.h"

class ThreadTest : public Thread
{
   private:
	int  _threadID;				// a simple user-defined thread identifier
	Mutex * mutex;				// mutex shared between several threads

	void Run()
	{
		int i = 0 ;
		while (true)
		{
			mutex->EnterMutex();
			cout << "Thread ID="<< _threadID <<", loop number="<<(i++)<< endl;
			mutex->LeaveMutex();
			Sleep(20);
		}
	};

	void Final()
	{
		cout << "Thread " << _threadID <<" exiting."<< endl;
	};

   public:

	ThreadTest(int threadID, Mutex * mutexPar): _threadID(threadID)
	{
		mutex = mutexPar;	// initialise the mutex
	};

	~ThreadTest()
	{
		Terminate();
	};

};

int main()
{
	Mutex *m = new Mutex();
	ThreadTest *thread1 = new ThreadTest(1,m);
	ThreadTest *thread2 = new ThreadTest(2,m);
	ThreadTest *thread3 = new ThreadTest(3,m);
	cout << "Starting 3 threads named 1,2,3." << endl;
	thread1->Start();
	thread2->Start();
	thread3->Start();
	sleep(5);						// wait 5 seconds
	delete thread1;
	delete thread2;
	delete thread3;
	delete m;
	cout << "Main exiting." << endl;
	return 0;
}

----------------------------
Massimo Balestri
TELECOM ITALIA LAB
Multimedia Division
Via G. Reiss Romoli, 274
I 10148 TORINO (I)
Tel: + 39 011 228 6176
Fax: + 39 011 228 6299
http://www.telecomitalialab.com



From dyfet@ostel.com Tue May 15 20:41:29 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14zpNY-0003Uy-00
	for <bug-commoncpp@gnu.org>; Tue, 15 May 2001 20:41:29 -0400
Received: from ostel.com (farside.sys.sys [172.16.1.97])
	by home.sys (Postfix) with ESMTP
	id CA11E9DA36; Tue, 15 May 2001 20:37:50 -0400 (EDT)
Message-ID: <3B01CD25.1020002@ostel.com>
Date: Tue, 15 May 2001 20:43:17 -0400
From: David Sugar <dyfet@ostel.com>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.4-1mdkxfs i686; en-US; 0.8) Gecko/20010409
X-Accept-Language: en
MIME-Version: 1.0
To: Massimo Balestri <Massimo.Balestri@TILAB.COM>
Cc: Cplusplus-devel@lists.sourceforge.net, bug-commoncpp@gnu.org
Subject: Re: using the CommonC++ library in WIN32
References: <5.1.0.14.0.20010515182946.00b15180@kim>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

As I do not spend any time at present developing on the Win32 platform, 
I do not have any immediate suggestion, however, I assume there are 
others on the list that do and will.  I do have in mind to start an 
interesting project that will include a win32 target, however, so I 
expect I will also spend a lot of time finding these leftover issues 
with the win32 build very soon :).

Massimo Balestri wrote:

> Hi all,
> (sorry for any duplicate e-mail, I don't know exactly which reflector 
> is currently in use);
> I am trying to use CommonC++ 1.4.2. on a set of WIN32 machines (98, 
> NT, 2000).
> I use VC++ 6.0 (SP4) to compile the library.
> I can compile the library without problems, but when I try to use it, 
> each time I include
> "thread.h" I get the following level-1 warnings:
> --------------------------
> Compiling...
> threadtest.cpp
> c:\workspace\ovm_code\common\commoncxx\thread.h(486) : warning C4273: 
> 'waitThread' : inconsistent dll linkage.  dllexport assumed.
> c:\workspace\ovm_code\common\commoncxx\thread.h(487) : warning C4273: 
> 'delay' : inconsistent dll linkage.  dllexport assumed.
> c:\workspace\ovm_code\common\commoncxx\thread.h(488) : warning C4273: 
> 'yield' : inconsistent dll linkage.  dllexport assumed.
> c:\workspace\ovm_code\common\commoncxx\thread.h(490) : warning C4273: 
> 'getException' : inconsistent dll linkage.  dllexport assumed.
> c:\workspace\ovm_code\common\commoncxx\thread.h(491) : warning C4273: 
> 'setException' : inconsistent dll linkage.  dllexport assumed.
> Linking...
> -----------------------------------
> Then the simple example runs without problems, but I suppose that this 
> is not a good sign.
> My impression is that more complex examples could go into troubles.
> Attached is the test code (a very simple code...)
> 
> with kind regards,
> Massimo.
> ------------------------------
> #include "config.h"
> #include "thread.h"
> #include "socket.h"
> 
> class ThreadTest : public Thread
> {
>   private:
>     int  _threadID;                // a simple user-defined thread 
> identifier
>     Mutex * mutex;                // mutex shared between several threads
> 
>     void Run()
>     {
>         int i = 0 ;
>         while (true)
>         {
>             mutex->EnterMutex();
>             cout << "Thread ID="<< _threadID <<", loop 
> number="<<(i++)<< endl;
>             mutex->LeaveMutex();
>             Sleep(20);
>         }
>     };
> 
>     void Final()
>     {
>         cout << "Thread " << _threadID <<" exiting."<< endl;
>     };
> 
>   public:
> 
>     ThreadTest(int threadID, Mutex * mutexPar): _threadID(threadID)
>     {
>         mutex = mutexPar;    // initialise the mutex
>     };
> 
>     ~ThreadTest()
>     {
>         Terminate();
>     };
> 
> };
> 
> int main()
> {
>     Mutex *m = new Mutex();
>     ThreadTest *thread1 = new ThreadTest(1,m);
>     ThreadTest *thread2 = new ThreadTest(2,m);
>     ThreadTest *thread3 = new ThreadTest(3,m);
>     cout << "Starting 3 threads named 1,2,3." << endl;
>     thread1->Start();
>     thread2->Start();
>     thread3->Start();
>     sleep(5);                        // wait 5 seconds
>     delete thread1;
>     delete thread2;
>     delete thread3;
>     delete m;
>     cout << "Main exiting." << endl;
>     return 0;
> }
> 
> ----------------------------
> Massimo Balestri
> TELECOM ITALIA LAB
> Multimedia Division
> Via G. Reiss Romoli, 274
> I 10148 TORINO (I)
> Tel: + 39 011 228 6176
> Fax: + 39 011 228 6299
> http://www.telecomitalialab.com
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 




From dyfet@ostel.com Wed May 16 00:05:37 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14zsZ6-0007Kj-00
	for <bug-commoncpp@gnu.org>; Wed, 16 May 2001 00:05:36 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 922899DAA4; Wed, 16 May 2001 00:01:59 -0400 (EDT)
Message-ID: <3B01FBB7.6050902@ostel.com>
Date: Wed, 16 May 2001 00:01:59 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: cplusplus-devel@lists.sourceforge.net, bug-commoncpp@gnu.org
Subject: Re: [Cplusplus-devel]RE: using the CommonC++ library in WIN32
References: <279574038071D548893D465D96752D17017BD6@tccnts22.pcdc.com.tw>
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: 8bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

That is interesting, since waitThread (and the others) are initially defined
in line 95 with __EXPORT, or do all references then also require it?  That
would explain those warning.  I would love to have someone dedicated to the
win32 platform support on a regular basis.

Charles Hwu ( ­JÄY¤§ ) wrote:

> Hi Massimo,
> 
> Change Thread.h line 486 from
>         friend DWORD waitThread(HANDLE hRef, timeout_t timeout);
>                         to
>         friend DWORD __EXPORT waitThread(HANDLE hRef, timeout_t timeout);
> Change Thread.h line 487 from
>         friend DWORD waitThread(HANDLE hRef, timeout_t timeout);
>                         to
>         friend DWORD __EXPORT waitThread(HANDLE hRef, timeout_t timeout);
>                         .
>                         .
>         In MSVC, the friend declaration must have the "extract" type.
> 
>         I have used the CommonC++ for linux solaris and win32.
>         And source program port each other.
>         This is a good Library!
>         Thank David Sugar!!.
> 
> If there are more problem in Win32 Platform.Maybe we can share our 
> experience.
> 
> -----Original Message-----
> From: David Sugar [mailto:dyfet@ostel.com]
> Sent: Wednesday, May 16, 2001 8:43 AM
> To: Massimo Balestri
> Cc: Cplusplus-devel@lists.sourceforge.net; bug-commoncpp@gnu.org
> Subject: Re: using the CommonC++ library in WIN32
> 
> 
> As I do not spend any time at present developing on the Win32 platform,
> I do not have any immediate suggestion, however, I assume there are
> others on the list that do and will.  I do have in mind to start an
> interesting project that will include a win32 target, however, so I
> expect I will also spend a lot of time finding these leftover issues
> with the win32 build very soon :).
> 
> Massimo Balestri wrote:
> 
>  > Hi all,
>  > (sorry for any duplicate e-mail, I don't know exactly which reflector
>  > is currently in use);
>  > I am trying to use CommonC++ 1.4.2. on a set of WIN32 machines (98,
>  > NT, 2000).
>  > I use VC++ 6.0 (SP4) to compile the library.
>  > I can compile the library without problems, but when I try to use it,
>  > each time I include
>  > "thread.h" I get the following level-1 warnings:
>  > --------------------------
>  > Compiling...
>  > threadtest.cpp
>  > c:\workspace\ovm_code\common\commoncxx\thread.h(486) : warning C4273:
>  > 'waitThread' : inconsistent dll linkage.  dllexport assumed.
>  > c:\workspace\ovm_code\common\commoncxx\thread.h(487) : warning C4273:
>  > 'delay' : inconsistent dll linkage.  dllexport assumed.
>  > c:\workspace\ovm_code\common\commoncxx\thread.h(488) : warning C4273:
>  > 'yield' : inconsistent dll linkage.  dllexport assumed.
>  > c:\workspace\ovm_code\common\commoncxx\thread.h(490) : warning C4273:
>  > 'getException' : inconsistent dll linkage.  dllexport assumed.
>  > c:\workspace\ovm_code\common\commoncxx\thread.h(491) : warning C4273:
>  > 'setException' : inconsistent dll linkage.  dllexport assumed.
>  > Linking...
>  > -----------------------------------
>  > Then the simple example runs without problems, but I suppose that this
>  > is not a good sign.
>  > My impression is that more complex examples could go into troubles.
>  > Attached is the test code (a very simple code...)
>  >
>  > with kind regards,
>  > Massimo.
>  > ------------------------------
>  > #include "config.h"
>  > #include "thread.h"
>  > #include "socket.h"
>  >
>  > class ThreadTest : public Thread
>  > {
>  >   private:
>  >     int  _threadID;                // a simple user-defined thread
>  > identifier
>  >     Mutex * mutex;                // mutex shared between several 
> threads
>  >
>  >     void Run()
>  >     {
>  >         int i = 0 ;
>  >         while (true)
>  >         {
>  >             mutex->EnterMutex();
>  >             cout << "Thread ID="<< _threadID <<", loop
>  > number="<<(i++)<< endl;
>  >             mutex->LeaveMutex();
>  >             Sleep(20);
>  >         }
>  >     };
>  >
>  >     void Final()
>  >     {
>  >         cout << "Thread " << _threadID <<" exiting."<< endl;
>  >     };
>  >
>  >   public:
>  >
>  >     ThreadTest(int threadID, Mutex * mutexPar): _threadID(threadID)
>  >     {
>  >         mutex = mutexPar;    // initialise the mutex
>  >     };
>  >
>  >     ~ThreadTest()
>  >     {
>  >         Terminate();
>  >     };
>  >
>  > };
>  >
>  > int main()
>  > {
>  >     Mutex *m = new Mutex();
>  >     ThreadTest *thread1 = new ThreadTest(1,m);
>  >     ThreadTest *thread2 = new ThreadTest(2,m);
>  >     ThreadTest *thread3 = new ThreadTest(3,m);
>  >     cout << "Starting 3 threads named 1,2,3." << endl;
>  >     thread1->Start();
>  >     thread2->Start();
>  >     thread3->Start();
>  >     sleep(5);                        // wait 5 seconds
>  >     delete thread1;
>  >     delete thread2;
>  >     delete thread3;
>  >     delete m;
>  >     cout << "Main exiting." << endl;
>  >     return 0;
>  > }
>  >
>  > ----------------------------
>  > Massimo Balestri
>  > TELECOM ITALIA LAB
>  > Multimedia Division
>  > Via G. Reiss Romoli, 274
>  > I 10148 TORINO (I)
>  > Tel: + 39 011 228 6176
>  > Fax: + 39 011 228 6299
>  > http://www.telecomitalialab.com
>  >
>  >
>  > _______________________________________________
>  > Bug-commoncpp mailing list
>  > Bug-commoncpp@gnu.org
>  > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>  >
> 
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From dyfet@ostel.com Thu May 17 08:22:57 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 150Mnx-0002nX-00
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 08:22:57 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP id 7A9D69DBF6
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 08:19:31 -0400 (EDT)
Message-ID: <3B03C1D3.1080005@ostel.com>
Date: Thu, 17 May 2001 08:19:31 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: slog...
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I think it is time to decide on some kind of slog implimentation for the win32 
target.  Should slog somehow connect to the win32 "event logger" or should it 
generate a log file completely on it's own??

David



From JWise@peregrine.com Thu May 17 10:49:27 2001
Received: from [198.17.35.32] (helo=mail2-sd.peregrine.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 150P5j-0006cn-00
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 10:49:27 -0400
Received: by mail2-sd.peregrine.com with Internet Mail Service (5.5.2653.19)
	id <KRXDDA1G>; Thu, 17 May 2001 07:49:16 -0700
Message-ID: <FDB1E51FBF1BD4119F8E00508BDF3608710E19@MAILNA>
From: John Wise <JWise@peregrine.com>
To: bug-commoncpp@gnu.org
Subject: RE: slog...
Date: Thu, 17 May 2001 07:49:03 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

If the OS dies, which Winxx never does ;) it would be hard to get
information from the event log, whereas a simple file might be easier to get
to, clean up, move around, so I'd vote for a file. Also a file log writer
could be written to be OS independent, something that wrote to the win32
event log would not. But I've barely looked at the code, in fact just a bit
of the socket stuff, so I don't know what kind of events you want log. 



Anyway my 2 cents.



John Wise

Peregrine Systems, Inc.

Product Developer

jwise@peregrine.com









>I think it is time to decide on some kind of slog implimentation for the
win32 

>target.  Should slog somehow connect to the win32 "event logger" or should
it 

>generate a log file completely on it's own??



>David





_______________________________________________

Bug-commoncpp mailing list

Bug-commoncpp@gnu.org

http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From dyfet@ostel.com Thu May 17 11:13:38 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 150PT8-0007Gm-00
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 11:13:38 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id C2F5D9DD47; Thu, 17 May 2001 11:10:13 -0400 (EDT)
Message-ID: <3B03E9D5.3080602@ostel.com>
Date: Thu, 17 May 2001 11:10:13 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: John Wise <JWise@peregrine.com>
Cc: bug-commoncpp@gnu.org
Subject: Re: slog...
References: <FDB1E51FBF1BD4119F8E00508BDF3608710E19@MAILNA>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Assuming it writes a log file, where should this log file be written?  The 
purpose of slog is essentially to serve as a C++ wrapper for syslog() type 
logging.  In syslog, on posix systems, logging messages are categorized by 
facility and severity, and then an external deamon processes the requests and 
can either stream them to a log file or even do other things (such as 
syslog-ng supports) based on the message content.  For example, a critical 
alert could be tied to something that then beeps your pager. However, even 
logging directly to a single file would be useful.

John Wise wrote:

> If the OS dies, which Winxx never does ;) it would be hard to get
> information from the event log, whereas a simple file might be easier to get
> to, clean up, move around, so I'd vote for a file. Also a file log writer
> could be written to be OS independent, something that wrote to the win32
> event log would not. But I've barely looked at the code, in fact just a bit
> of the socket stuff, so I don't know what kind of events you want log. 
> 
> 
> 
> Anyway my 2 cents.
> 
> 
> 
> John Wise
> 
> Peregrine Systems, Inc.
> 
> Product Developer
> 
> jwise@peregrine.com
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> I think it is time to decide on some kind of slog implimentation for the
> 
> win32 
> 
> 
>> target.  Should slog somehow connect to the win32 "event logger" or should
> 
> it 
> 
> 
>> generate a log file completely on it's own??
> 
> 
> 
> 
>> David
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Bug-commoncpp mailing list
> 
> Bug-commoncpp@gnu.org
> 
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From JWise@peregrine.com Thu May 17 12:03:54 2001
Received: from [198.17.35.32] (helo=mail2-sd.peregrine.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 150QFm-0000N6-00
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 12:03:54 -0400
Received: by mail2-sd.peregrine.com with Internet Mail Service (5.5.2653.19)
	id <KRXDDBK9>; Thu, 17 May 2001 09:03:44 -0700
Message-ID: <FDB1E51FBF1BD4119F8E00508BDF3608710E1A@MAILNA>
From: John Wise <JWise@peregrine.com>
To: bug-commoncpp@gnu.org
Subject: RE: slog...
Date: Thu, 17 May 2001 09:03:30 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hmmmm. There are a number of options all of which may be bad. ;) Create your
own directory at runtime, the current directory where the exe is running, or
some log dir when commonc++ is installed. The last one is what I've seen on
a unix app I'm trying to port. I untarred and there was a log dir. I might
install the log dir off the tree where most of my stuff was installed, but
check for the existence of that dir before I began running, if it didn't
exist, create it, and begin writing. I don't think it really matters as long
as it's well documented. Then if someone complains you can move it or ask,
well what do you suggest. Something else to consider is that if memory
serves, I don't think win32 event logging will work on windows systems other
than win2k or winnt, I think the api calls in the case of 9x write to flat
files anyway.


>Assuming it writes a log file, where should this log file be written?  The 
>purpose of slog is essentially to serve as a C++ wrapper for syslog() type 
>logging.  In syslog, on posix systems, logging messages are categorized by 
>facility and severity, and then an external deamon processes the requests
and 
>can either stream them to a log file or even do other things (such as 
>syslog-ng supports) based on the message content.  For example, a critical 
>alert could be tied to something that then beeps your pager. However, even 
>logging directly to a single file would be useful.




From Alessandro.Miotto@softplumbers.com Thu May 17 17:12:34 2001
Received: from [212.147.32.115] (helo=mail-geneva.myqube.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 150V4T-0000PF-00
	for <bug-commoncpp@gnu.org>; Thu, 17 May 2001 17:12:34 -0400
Received: from sppc03 ([192.168.115.116]) by mail-geneva.myqube.com with Microsoft SMTPSVC(5.0.2195.1600);
	 Thu, 17 May 2001 23:13:27 +0200
From: "Alessandro Miotto" <alessandro.miotto@softplumbers.com>
To: <bug-commoncpp@gnu.org>
Subject: winsock or winsock2?
Date: Thu, 17 May 2001 23:12:28 +0200
Message-ID: <GNEGIDNHPPHHOPCHPCMHEEOICAAA.alessandro.miotto@softplumbers.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal
X-OriginalArrivalTime: 17 May 2001 21:13:27.0061 (UTC) FILETIME=[36F40450:01C0DF16]
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hello,
I have tried to extend the Socket class on WIN32 with a raw socket that
could be used for ICMP messages, and tested it with a sort of simple
traceroute where I set the time-to-live option. However setsockopt()
returned an "option not supported" error.

What happens is that socket.h includes winsock.h instead of the newer
winsock2.h and ws2tcpip.h, because in the latter file all the IPPROTO_IP
options have been renumbered. In my case IP_TTL as defined in winsock.h (7)
does not correspond to any option in the newer Winsock API, and after
redefining it everything works fine. I guess that other Socket methods
setting IPPROTO_IP options, like setMulticast() and setTimeToLive(), do not
work at all.

As WSAStartup() in socket.cpp requires version 2.2 of winsock I expect that
the inclusion of the old definition file is a mistake.

Thanks in advance for a reply

	Alessandro



From bhayden@efficient.com Fri May 18 15:43:23 2001
Received: from from.efficient.com ([12.39.97.101] helo=bambam.inside.efficient.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 150q9j-000115-00
	for <bug-commoncpp@gnu.org>; Fri, 18 May 2001 15:43:23 -0400
Received: by bambam.inside.efficient.com with Internet Mail Service (5.5.2650.21)
	id <LF0ZP7LP>; Fri, 18 May 2001 14:42:26 -0500
Message-ID: <7B9EDCDFEA46D411A0CE00508BDCA5DB0DDB80@ENINORTH>
From: Bill Hayden <bhayden@efficient.com>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Subject: Trouble compiling CommonC++ under Solaris
Date: Fri, 18 May 2001 14:46:38 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

All,

Has anyone had success compiling CommonC++ under Solaris?  I get the
following error message:


Making all in posix
gmake[1]: Entering directory `/shared/wdh/CommonC++/CommonC++-1.3.3/posix'
/bin/sh ../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I. -I../posix
-g -D_GNU_SOURCE -Dmutable -D_REENTRANT -D_THREAD_SAFE -c inaddr.cpp
rm -f .libs/inaddr.lo
CC -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -D_GNU_SOURCE -Dmutable
-D_REENTRANT -D_THREAD_SAFE -c  -KPIC -DPIC inaddr.cpp -o inaddr.o
"socket.h", line 285: Warning (Anachronism): Using int to initialize bool.
"socket.h", line 285: Note: Type "CC -migration" for more on anachronisms.
"socket.h", line 438: Error: "}" expected instead of "1".
"socket.h", line 438: Error: Use ";" to terminate declarations.
"socket.h", line 438: Error: A declaration was expected instead of "1".
"socket.h", line 439: Error: A declaration was expected instead of "1".
"socket.h", line 441: Error: A declaration was expected instead of "1".
"socket.h", line 451: Error: A declaration was expected instead of
"protected".
"socket.h", line 467: Error: The function "Error(sockerror_t, char*) const"
cannot be declared const.
"socket.h", line 485: Warning (Anachronism): Assigning int to the enum bool
is obsolete.
"socket.h", line 531: Error: No direct declarator preceding "(".
"socket.h", line 540: Error: ")" expected instead of "fd".
"socket.h", line 549: Error: No direct declarator preceding "(".
"socket.h", line 561: Error: A declaration was expected instead of "public".
"socket.h", line 569: Error: "virtual" is not allowed here.
"socket.h", line 569: Error: The destructor name must match the class name.
"socket.h", line 570: Error: Illegal number of arguments for <destructor>().
"socket.h", line 575: Error: operator=(const cc_Socket&) must be a member
function.
"socket.h", line 586: Error: The function "getSender(unsigned short*) const"
cannot be declared const.
"socket.h", line 597: Error: The function "getPeer(unsigned short*) const"
cannot be declared const.
"socket.h", line 606: Error: The function "getLocal(unsigned short*) const"
cannot be declared const.
"socket.h", line 647: Error: The function "isConnected() const" cannot be
declared const.
"socket.h", line 656: Error: The function "isActive() const" cannot be
declared const.
"socket.h", line 662: Error: Illegal number of arguments for operator!()
const.
"socket.h", line 662: Error: The function "operator!() const" cannot be
declared const.
"socket.h", line 671: Error: The function "isBroadcast() const" cannot be
declared const.
"socket.h", line 679: Error: The function "isRouted() const" cannot be
declared const.
"socket.h", line 687: Error: The function "getErrorNumber() const" cannot be
declared const.
Compilation aborted, too many messages.
gmake[1]: *** [inaddr.lo] Error 1
gmake[1]: Leaving directory `/shared/wdh/CommonC++/CommonC++-1.3.3/posix'
gmake: *** [all-recursive] Error 1





From lmarroyo@overclk.dhis.org Wed May 23 14:21:47 2001
Received: from [213.97.100.238] (helo=overclk)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 152dGV-0001ve-00
	for <bug-commoncpp@gnu.org>; Wed, 23 May 2001 14:21:47 -0400
Received: from lmarroyo by overclk with local (Exim 3.12 #1 (Debian))
	id 152dGR-0000T3-00
	for <bug-commoncpp@gnu.org>; Wed, 23 May 2001 20:21:43 +0200
Date: Wed, 23 May 2001 20:21:43 +0200
From: "lmarroyo@overclk.dhis.org" <lmarroyo@overclk.dhis.org>
To: bug-commoncpp@gnu.org
Subject: Launch and work with threads in Commonc++
Message-ID: <20010523202143.A1787@overclk.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi, I need to launch a few threads, and i dont know the correct way to do it. 
I send a copy of the source code, but when it runs give a segmentation fault,
and i dont know why. If someone colul help me, thanks.

The source code is:
-------8<--------8<------
#include <iostream>
#include <cc++/thread.h>
#include <cc++/serial.h>

int main (int argc, char **argv)
{
SerialService puerto;
cout << "Puerto" << endl;
  Thread *hebra;
//  hebra = new Thread();
  hebra->Start();
  if(hebra->isRunning()) // This give a segfault
{  cout << "Hola" << endl;
}
  else cout << "no¡" << endl;
//  Sleep(100000); 	// those two lines dont compile
//  Exit();			//

}

--------8<---------8<-------

Thanks a lot!

-- 
Luis M. Arroyo Egoscozabal

lmarroyo at overclk dot dhis dot org
lmae at bbvnet dot com


From lmarroyo@overclk.dhis.org Wed May 23 19:11:45 2001
Received: from [213.97.100.238] (helo=overclk)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 152hn7-0002u4-00
	for <bug-commoncpp@gnu.org>; Wed, 23 May 2001 19:11:45 -0400
Received: from lmarroyo by overclk with local (Exim 3.12 #1 (Debian))
	id 152hn4-0000bO-00
	for <bug-commoncpp@gnu.org>; Thu, 24 May 2001 01:11:42 +0200
Date: Thu, 24 May 2001 01:11:42 +0200
From: "lmarroyo@overclk.dhis.org" <lmarroyo@overclk.dhis.org>
To: Lista de desarrollo del proyecto CommonC++ <bug-commoncpp@gnu.org>
Subject: Someone have a little example of threads?
Message-ID: <20010524011142.A2304@overclk.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

If someone could semd me it, ill thankfull for the rest of my life... :-)
Thanks a lot
 
-- 
Luis M. Arroyo Egoscozabal

lmarroyo at overclk dot dhis dot org
lmae at bbvnet dot com


From list@list.dk Mon May 28 11:54:23 2001
Received: from xd84b4ac2.ip.ggn.net ([216.75.74.194] helo=freja.list.dk)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 154PLb-0003eQ-00
	for <bug-commoncpp@gnu.org>; Mon, 28 May 2001 11:54:23 -0400
Received: from odin (xd84b4ac3.ip.ggn.net [216.75.74.195])
	by freja.list.dk (8.11.0/8.8.7) with SMTP id f4SEsWm13210
	for <bug-commoncpp@gnu.org>; Mon, 28 May 2001 10:54:32 -0400
From: "Thor List" <list@list.dk>
To: <bug-commoncpp@gnu.org>
Subject: CommonC++ for Linux and Win32
Date: Mon, 28 May 2001 11:35:08 -0400
Message-ID: <000001c0e78e$7b1fd570$01000001@list.dk>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi,

I have been looking for a standard API for threading and sockets and I
believe that I have found it in CommonC++. I installed it fine on Linux,
however it also mentions that

"Common C++ offers support and portable classes for threading and sockets
for both UNIX (Posix systems with "pthread" support) and the Windows "Win32"
API"

The readme files mentions very briefly something about GNU under Win32, but
I could not make that out further.

If I cannot install it under Win32 (I am using Visual Studio) is there any
way that I can manually add all the files I need to my own project? I have
tried this but have run into a lot of compiling issues.

I would like to end up with a standard API that I can use on both Linux and
Windows.


Brgds,

Thor List




From rob@prouse.org Mon May 28 20:55:04 2001
Received: from d150-45-98.home.cgocable.net ([24.150.45.98] helo=alteridem.net)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 154Xmq-0000ce-00
	for <bug-commoncpp@gnu.org>; Mon, 28 May 2001 20:55:04 -0400
Received: (qmail 24582 invoked from network); 29 May 2001 00:55:01 -0000
Received: from 50.129.104.203.livedoor.com (HELO gumby.prouse.org) (203.104.129.50)
  by d150-45-98.home.cgocable.net with SMTP; 29 May 2001 00:55:01 -0000
Message-Id: <5.1.0.14.0.20010529095327.00a0bcc0@mail.alteridem.net>
X-Sender: vertigo@mail.alteridem.net
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Tue, 29 May 2001 09:53:37 +0900
To: bug-commoncpp@gnu.org
From: Robert Prouse <rob@prouse.org>
Subject: Re: CommonC++ for Linux and Win32
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-RBL-Warning: (dialups.mail-abuse.org) See <URL:http://mail-abuse.org/dul/>
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Thor,

CommonC++ works best with Visual Studio under Win32, so you should have no 
problems.  There is a project file in the win32 directory.  Be aware though 
that most of the development is going on in the linux portion of the code, 
then is ported over to the win32, so features sometimes lag behind in the 
win32 code and the win32 port is sometimes broken.  If you are going to use 
it, you should subscribe to the various mailing lists to track the 
development and bugs.

Rob Prouse (alteridem)

At 11:35 AM 5/28/01 -0400, you wrote:
>Hi,
>
>I have been looking for a standard API for threading and sockets and I
>believe that I have found it in CommonC++. I installed it fine on Linux,
>however it also mentions that
>
>"Common C++ offers support and portable classes for threading and sockets
>for both UNIX (Posix systems with "pthread" support) and the Windows "Win32"
>API"
>
>The readme files mentions very briefly something about GNU under Win32, but
>I could not make that out further.
>
>If I cannot install it under Win32 (I am using Visual Studio) is there any
>way that I can manually add all the files I need to my own project? I have
>tried this but have run into a lot of compiling issues.
>
>I would like to end up with a standard API that I can use on both Linux and
>Windows.
>
>
>Brgds,
>
>Thor List
>
>
>
>_______________________________________________
>Bug-commoncpp mailing list
>Bug-commoncpp@gnu.org
>http://mail.gnu.org/mailman/listinfo/bug-commoncpp



From ulrich.merkel@osp-dd.de Wed May 30 02:55:02 2001
Received: from [193.99.117.146] (helo=osp-dd.de)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 154zsi-0008Sx-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 02:55:01 -0400
Received: from osp-dd.de (merkel.osp-dd.de [172.29.1.140])
	by osp-dd.de (8.8.8/8.8.8) with ESMTP id HAA00409;
	Wed, 30 May 2001 07:49:24 +0200
Message-ID: <3B14986C.5533CC0F@osp-dd.de>
Date: Wed, 30 May 2001 08:51:24 +0200
From: OSP Dresden <ulrich.merkel@osp-dd.de>
X-Mailer: Mozilla 4.74 [de] (X11; U; Linux 2.2.16 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org, Ulrich Merkel <ulrich.merkel@osp-dd.de>
Subject: CommonC++-1.4.2 engine.cc
Content-Type: multipart/mixed;
 boundary="------------8F3040672A372165A6A47F70"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------8F3040672A372165A6A47F70
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello developers,

i found a bug at 

Engine::~Engine()
{
	...
	  int zret = Z_OK;
	  while (myZStream.avail_in > 0 || zret == Z_OK)
		{
		  zret = deflate(&myZStream,Z_FINISH);
		  if (myZStream.avail_out >= 0) // if (myZStream.avail_out > 0)
	...				  
} 

Change "if (myZStream.avail_out > 0)" into "if (myZStream.avail_out >=
0)"

Best wishes

U.Merkel
--------------8F3040672A372165A6A47F70
Content-Type: text/x-vcard; charset=us-ascii;
 name="ulrich.merkel.vcf"
Content-Description: Karte für OSP Dresden
Content-Disposition: attachment;
 filename="ulrich.merkel.vcf"
Content-Transfer-Encoding: 7bit

begin:vcard 
n:Merkel;Ulrich
x-mozilla-html:FALSE
org:MA;OSP-DRESDEN
adr:;;;;;;
version:2.1
email;internet:ulrich.merkel@osp-dd.de
x-mozilla-cpt:;7424
fn:Ulrich Merkel
end:vcard

--------------8F3040672A372165A6A47F70--



From dyfet@ostel.com Wed May 30 07:06:07 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1553nj-0001Os-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 07:06:07 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 08D3C9F79D; Wed, 30 May 2001 07:04:06 -0400 (EDT)
Message-ID: <3B14D3A5.6070508@ostel.com>
Date: Wed, 30 May 2001 07:04:05 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: OSP Dresden <ulrich.merkel@osp-dd.de>
Cc: bug-commoncpp@gnu.org
Subject: Re: CommonC++-1.4.2 engine.cc
References: <3B14986C.5533CC0F@osp-dd.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

I added this to cvs.

OSP Dresden wrote:

> Hello developers,
> 
> i found a bug at 
> 
> Engine::~Engine()
> {
> 	...
> 	  int zret = Z_OK;
> 	  while (myZStream.avail_in > 0 || zret == Z_OK)
> 		{
> 		  zret = deflate(&myZStream,Z_FINISH);
> 		  if (myZStream.avail_out >= 0) // if (myZStream.avail_out > 0)
> 	...				  
> } 
> 
> Change "if (myZStream.avail_out > 0)" into "if (myZStream.avail_out >=
> 0)"
> 
> Best wishes
> 
> U.Merkel



From seenutn@cdotb.ernet.in Wed May 30 10:11:49 2001
Received: from [202.41.72.121] (helo=ws9.cdotb.ernet.in)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1556ey-0005qx-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 10:11:49 -0400
Received: from ws9.cdotb.ernet.in (IDENT:seenutn@[192.168.51.218])
	by ws9.cdotb.ernet.in (8.9.3/8.9.3) with ESMTP id TAA15499
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 19:23:58 +0500 (GMT+0500)
Message-ID: <3B14FEF0.2D17021B@ws9.cdotb.ernet.in>
Date: Wed, 30 May 2001 19:38:48 +0530
From: "Srinivasa T.N." <seenutn@cdotb.ernet.in>
Organization: C-DOT
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: Not running properly..........
Content-Type: multipart/mixed;
 boundary="------------B4D33EB56DFAC5A422CE93CF"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This is a multi-part message in MIME format.
--------------B4D33EB56DFAC5A422CE93CF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
    Can anybody tell me why this program is not running properly.

(see attachment for the program).

The o/p is

Before Thread1 start
Before Thread2 start
Thread1 Initial()
Run() of thread1


Regards,
Seenu.

Note: I am using Common C++ 1.3.2, egcs -2.91.66, and Redhat 6.2 on a
i686 m/c (Kernel 2.2.14)

--
-----------------------------------------------------------------------------
If not here, you can reach me at seenutn@seenutn.org

C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
    363 1707 (Resi)



--------------B4D33EB56DFAC5A422CE93CF
Content-Type: text/plain; charset=us-ascii;
 name="bug1.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bug1.cpp"

#include <cc++/config.h>
#include <cc++/macros.h>
#include <cc++/thread.h>
#include <cc++/socket.h>
#include <stdlib.h>
#include <stdio.h>

class Thread1 : public Thread
{
private:
	void Initial()
		{ cout << "Thread1 Initial() " << endl;}
	void Run();
	void Final() 
		{ delete this;};
};

class Thread2 : public Thread
{
private:
	void Initial()
		{ cout << "Thread2 Initial() " << endl;}
	void Run();
	void Final() 
		{ delete this;};

};

int main()
{
	Thread1 *thread1 = new Thread1;
	Thread2 *thread2 = new Thread2;

	cout << "Before Thread1 start " << endl;
	thread1->Start();
	cout << "Before Thread2 start " << endl;
	thread2->Start();
}

void Thread1::Run(void)
{
	cout << "Run() of thread1"  << endl;
}

void Thread2::Run(void)
{
	cout << "Run() of thread2"  << endl;
}

--------------B4D33EB56DFAC5A422CE93CF--



From dyfet@ostel.com Wed May 30 10:23:57 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1556tA-0006Qg-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 10:23:57 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 2ECC79F7CD; Wed, 30 May 2001 10:22:18 -0400 (EDT)
Message-ID: <3B150219.1020405@ostel.com>
Date: Wed, 30 May 2001 10:22:17 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: "Srinivasa T.N." <seenutn@cdotb.ernet.in>
Cc: bug-commoncpp@gnu.org
Subject: Re: Not running properly..........
References: <3B14FEF0.2D17021B@ws9.cdotb.ernet.in>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Your main thread exits before all your subthread's get a chance to execute. 
The exit joins threads since it deletes allocated objects thru the 
destructors.  If you add a Sleep() before exiting main the other threads will 
have a chance to run and delete themselves.

Srinivasa T.N. wrote:

> Hi,
>     Can anybody tell me why this program is not running properly.
> 
> (see attachment for the program).
> 
> The o/p is
> 
> Before Thread1 start
> Before Thread2 start
> Thread1 Initial()
> Run() of thread1
> 
> 
> Regards,
> Seenu.
> 
> Note: I am using Common C++ 1.3.2, egcs -2.91.66, and Redhat 6.2 on a
> i686 m/c (Kernel 2.2.14)
> 
> --
> -----------------------------------------------------------------------------
> If not here, you can reach me at seenutn@seenutn.org
> 
> C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
> Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
>     363 1707 (Resi)
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> #include <cc++/config.h>
> #include <cc++/macros.h>
> #include <cc++/thread.h>
> #include <cc++/socket.h>
> #include <stdlib.h>
> #include <stdio.h>
> 
> class Thread1 : public Thread
> {
> private:
> 	void Initial()
> 		{ cout << "Thread1 Initial() " << endl;}
> 	void Run();
> 	void Final() 
> 		{ delete this;};
> };
> 
> class Thread2 : public Thread
> {
> private:
> 	void Initial()
> 		{ cout << "Thread2 Initial() " << endl;}
> 	void Run();
> 	void Final() 
> 		{ delete this;};
> 
> };
> 
> int main()
> {
> 	Thread1 *thread1 = new Thread1;
> 	Thread2 *thread2 = new Thread2;
> 
> 	cout << "Before Thread1 start " << endl;
> 	thread1->Start();
> 	cout << "Before Thread2 start " << endl;
> 	thread2->Start();
> }
> 
> void Thread1::Run(void)
> {
> 	cout << "Run() of thread1"  << endl;
> }
> 
> void Thread2::Run(void)
> {
> 	cout << "Run() of thread2"  << endl;
> }
> bug1.cpp
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit



From seenutn@cdotb.ernet.in Wed May 30 10:44:22 2001
Received: from [202.41.72.121] (helo=ws9.cdotb.ernet.in)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1557CM-0006uD-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 10:43:58 -0400
Received: from ws9.cdotb.ernet.in (IDENT:seenutn@[192.168.51.218])
	by ws9.cdotb.ernet.in (8.9.3/8.9.3) with ESMTP id TAA16674;
	Wed, 30 May 2001 19:58:36 +0500 (GMT+0500)
Message-ID: <3B15070F.321BBB62@ws9.cdotb.ernet.in>
Date: Wed, 30 May 2001 20:13:27 +0530
From: "Srinivasa T.N." <seenutn@cdotb.ernet.in>
Organization: C-DOT
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: David Sugar <dyfet@ostel.com>
CC: "Srinivasa T.N." <seenutn@cdotb.ernet.in>, bug-commoncpp@gnu.org
Subject: Re: Not running properly..........
References: <3B14FEF0.2D17021B@ws9.cdotb.ernet.in> <3B150219.1020405@ostel.com>
Content-Type: multipart/alternative;
 boundary="------------A32A31C7EB983F0EDA034D59"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

--------------A32A31C7EB983F0EDA034D59
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Is there not a method like pthread_join??  (so that my main thread can wait until
other threads exit...)

Regards,
Seenu.

David Sugar wrote:

> Your main thread exits before all your subthread's get a chance to execute.
> The exit joins threads since it deletes allocated objects thru the
> destructors.  If you add a Sleep() before exiting main the other threads will
> have a chance to run and delete themselves.
>
> Srinivasa T.N. wrote:
>
> > Hi,
> >     Can anybody tell me why this program is not running properly.
> >
> > (see attachment for the program).
> >
> > The o/p is
> >
> > Before Thread1 start
> > Before Thread2 start
> > Thread1 Initial()
> > Run() of thread1
> >
> >
> > Regards,
> > Seenu.
> >
> > Note: I am using Common C++ 1.3.2, egcs -2.91.66, and Redhat 6.2 on a
> > i686 m/c (Kernel 2.2.14)
> >
> > --
> > -----------------------------------------------------------------------------
> > If not here, you can reach me at seenutn@seenutn.org
> >
> > C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
> > Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
> >     363 1707 (Resi)
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > #include <cc++/config.h>
> > #include <cc++/macros.h>
> > #include <cc++/thread.h>
> > #include <cc++/socket.h>
> > #include <stdlib.h>
> > #include <stdio.h>
> >
> > class Thread1 : public Thread
> > {
> > private:
> >       void Initial()
> >               { cout << "Thread1 Initial() " << endl;}
> >       void Run();
> >       void Final()
> >               { delete this;};
> > };
> >
> > class Thread2 : public Thread
> > {
> > private:
> >       void Initial()
> >               { cout << "Thread2 Initial() " << endl;}
> >       void Run();
> >       void Final()
> >               { delete this;};
> >
> > };
> >
> > int main()
> > {
> >       Thread1 *thread1 = new Thread1;
> >       Thread2 *thread2 = new Thread2;
> >
> >       cout << "Before Thread1 start " << endl;
> >       thread1->Start();
> >       cout << "Before Thread2 start " << endl;
> >       thread2->Start();
> > }
> >
> > void Thread1::Run(void)
> > {
> >       cout << "Run() of thread1"  << endl;
> > }
> >
> > void Thread2::Run(void)
> > {
> >       cout << "Run() of thread2"  << endl;
> > }
> > bug1.cpp
> >
> > Content-Type:
> >
> > text/plain
> > Content-Encoding:
> >
> > 7bit
>
> _______________________________________________
> Bug-commoncpp mailing list
> Bug-commoncpp@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp

--
-----------------------------------------------------------------------------
If not here, you can reach me at seenutn@seenutn.org

C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
    363 1707 (Resi)



--------------A32A31C7EB983F0EDA034D59
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Is there not a method like pthread_join??&nbsp; (so that my main thread
can wait until other threads exit...)
<p>Regards,
<br>Seenu.
<p>David Sugar wrote:
<blockquote TYPE=CITE>Your main thread exits before all your subthread's
get a chance to execute.
<br>The exit joins threads since it deletes allocated objects thru the
<br>destructors.&nbsp; If you add a Sleep() before exiting main the other
threads will
<br>have a chance to run and delete themselves.
<p>Srinivasa T.N. wrote:
<p>> Hi,
<br>>&nbsp;&nbsp;&nbsp;&nbsp; Can anybody tell me why this program is not
running properly.
<br>>
<br>> (see attachment for the program).
<br>>
<br>> The o/p is
<br>>
<br>> Before Thread1 start
<br>> Before Thread2 start
<br>> Thread1 Initial()
<br>> Run() of thread1
<br>>
<br>>
<br>> Regards,
<br>> Seenu.
<br>>
<br>> Note: I am using Common C++ 1.3.2, egcs -2.91.66, and Redhat 6.2
on a
<br>> i686 m/c (Kernel 2.2.14)
<br>>
<br>> --
<br>> -----------------------------------------------------------------------------
<br>> If not here, you can reach me at seenutn@seenutn.org
<br>>
<br>> C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
<br>> Ph: 226 3399 Ext: 268&nbsp; Direct: 238 3951 (Off)
<br>>&nbsp;&nbsp;&nbsp;&nbsp; 363 1707 (Resi)
<br>>
<br>>
<br>>
<br>>
<br>> ------------------------------------------------------------------------
<br>>
<br>> #include &lt;cc++/config.h>
<br>> #include &lt;cc++/macros.h>
<br>> #include &lt;cc++/thread.h>
<br>> #include &lt;cc++/socket.h>
<br>> #include &lt;stdlib.h>
<br>> #include &lt;stdio.h>
<br>>
<br>> class Thread1 : public Thread
<br>> {
<br>> private:
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Initial()
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{ cout &lt;&lt; "Thread1 Initial() " &lt;&lt; endl;}
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Run();
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Final()
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{ delete this;};
<br>> };
<br>>
<br>> class Thread2 : public Thread
<br>> {
<br>> private:
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Initial()
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{ cout &lt;&lt; "Thread2 Initial() " &lt;&lt; endl;}
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Run();
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void Final()
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{ delete this;};
<br>>
<br>> };
<br>>
<br>> int main()
<br>> {
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thread1 *thread1 = new Thread1;
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thread2 *thread2 = new Thread2;
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; "Before Thread1
start " &lt;&lt; endl;
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thread1->Start();
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; "Before Thread2
start " &lt;&lt; endl;
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thread2->Start();
<br>> }
<br>>
<br>> void Thread1::Run(void)
<br>> {
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; "Run() of thread1"&nbsp;
&lt;&lt; endl;
<br>> }
<br>>
<br>> void Thread2::Run(void)
<br>> {
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; "Run() of thread2"&nbsp;
&lt;&lt; endl;
<br>> }
<br>> bug1.cpp
<br>>
<br>> Content-Type:
<br>>
<br>> text/plain
<br>> Content-Encoding:
<br>>
<br>> 7bit
<p>_______________________________________________
<br>Bug-commoncpp mailing list
<br>Bug-commoncpp@gnu.org
<br><a href="http://mail.gnu.org/mailman/listinfo/bug-commoncpp">http://mail.gnu.org/mailman/listinfo/bug-commoncpp</a></blockquote>

<pre>--&nbsp;
-----------------------------------------------------------------------------
If not here, you can reach me at seenutn@seenutn.org

C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
Ph: 226 3399 Ext: 268&nbsp; Direct: 238 3951 (Off)
&nbsp;&nbsp;&nbsp; 363 1707 (Resi)</pre>
&nbsp;</html>

--------------A32A31C7EB983F0EDA034D59--



From dyfet@ostel.com Wed May 30 10:47:07 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1557Fa-000704-00
	for <bug-commoncpp@gnu.org>; Wed, 30 May 2001 10:47:06 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 3E7AB9F7D1; Wed, 30 May 2001 10:45:28 -0400 (EDT)
Message-ID: <3B150788.7090701@ostel.com>
Date: Wed, 30 May 2001 10:45:28 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: "Srinivasa T.N." <seenutn@cdotb.ernet.in>
Cc: bug-commoncpp@gnu.org
Subject: Re: Not running properly..........
References: <3B14FEF0.2D17021B@ws9.cdotb.ernet.in> <3B150219.1020405@ostel.com> <3B15070F.321BBB62@ws9.cdotb.ernet.in>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

The destructor calls a join from delete.  However, the threads are set by 
default as cancellable, and hence will cancel in exit().  You could add a 
"setCancel()" method to your thread's initial handler to specify different 
behavior.

Srinivasa T.N. wrote:

> Is there not a method like pthread_join??  (so that my main thread can 
> wait until other threads exit...)
> 
> Regards,
> Seenu.
> 
> David Sugar wrote:
> 
>     Your main thread exits before all your subthread's get a chance to 
>     execute.
>     The exit joins threads since it deletes allocated objects thru the
>     destructors.  If you add a Sleep() before exiting main the other 
>     threads will
>     have a chance to run and delete themselves.
>     
>     Srinivasa T.N. wrote:
>     
>      > Hi,
>      >     Can anybody tell me why this program is not running properly.
>      >
>      > (see attachment for the program).
>      >
>      > The o/p is
>      >
>      > Before Thread1 start
>      > Before Thread2 start
>      > Thread1 Initial()
>      > Run() of thread1
>      >
>      >
>      > Regards,
>      > Seenu.
>      >
>      > Note: I am using Common C++ 1.3.2, egcs -2.91.66, and Redhat 6.2 
>     on a
>      > i686 m/c (Kernel 2.2.14)
>      >
>      > --
>      > 
>     ----------------------------------------------------------------------------- 
>     
>      > If not here, you can reach me at seenutn@seenutn.org
>      >
>      > C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
>      > Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
>      >     363 1707 (Resi)
>      >
>      >
>      >
>      >
>      > 
>     ------------------------------------------------------------------------ 
>     
>      >
>      > #include <cc++/config.h>
>      > #include <cc++/macros.h>
>      > #include <cc++/thread.h>
>      > #include <cc++/socket.h>
>      > #include <stdlib.h>
>      > #include <stdio.h>
>      >
>      > class Thread1 : public Thread
>      > {
>      > private:
>      >       void Initial()
>      >               { cout << "Thread1 Initial() " << endl;}
>      >       void Run();
>      >       void Final()
>      >               { delete this;};
>      > };
>      >
>      > class Thread2 : public Thread
>      > {
>      > private:
>      >       void Initial()
>      >               { cout << "Thread2 Initial() " << endl;}
>      >       void Run();
>      >       void Final()
>      >               { delete this;};
>      >
>      > };
>      >
>      > int main()
>      > {
>      >       Thread1 *thread1 = new Thread1;
>      >       Thread2 *thread2 = new Thread2;
>      >
>      >       cout << "Before Thread1 start " << endl;
>      >       thread1->Start();
>      >       cout << "Before Thread2 start " << endl;
>      >       thread2->Start();
>      > }
>      >
>      > void Thread1::Run(void)
>      > {
>      >       cout << "Run() of thread1"  << endl;
>      > }
>      >
>      > void Thread2::Run(void)
>      > {
>      >       cout << "Run() of thread2"  << endl;
>      > }
>      > bug1.cpp
>      >
>      > Content-Type:
>      >
>      > text/plain
>      > Content-Encoding:
>      >
>      > 7bit
>     
>     _______________________________________________
>     Bug-commoncpp mailing list
>     Bug-commoncpp@gnu.org
>     http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>     
> -- 
> -----------------------------------------------------------------------------
> If not here, you can reach me at seenutn@seenutn.org
> 
> C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
> Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
>     363 1707 (Resi)
>  



From BOURGEOIS@micropole.com Thu May 31 04:31:17 2001
Received: from micropole-253.126.rev.fr.colt.net ([213.41.126.253] helo=vertigo.micropole.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 155NrR-0006Rh-00
	for <bug-commoncpp@gnu.org>; Thu, 31 May 2001 04:31:17 -0400
Received: by vertigo.micropole.com; id KAA01136; Thu, 31 May 2001 10:50:14 +0200 (CEST)
Message-Id: <200105310850.KAA01136@vertigo.micropole.com>
From: BOURGEOIS Steve <BOURGEOIS@micropole.com>
To: "'bug-commoncpp@gnu.org'" <bug-commoncpp@gnu.org>
Subject: Help
Date: Thu, 31 May 2001 10:31:11 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C0E9AC.0C0C13FE"
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0E9AC.0C0C13FE
Content-Type: text/plain;
	charset="iso-8859-1"

Is it possible to compile CommonC++ with Visual C++...
Thanks in advance
Steve

------_=_NextPart_001_01C0E9AC.0C0C13FE
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>Help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Is it possible to compile CommonC++ with Visual C++...</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thanks in advance</FONT>
<BR><FONT SIZE=2 FACE="Arial">Steve</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0E9AC.0C0C13FE--


From dyfet@ostel.com Thu May 31 04:47:24 2001
Received: from [63.124.177.154] (helo=home.sys)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 155O72-0006nO-00
	for <bug-commoncpp@gnu.org>; Thu, 31 May 2001 04:47:24 -0400
Received: from ostel.com (home.sys [172.16.1.254])
	by home.sys (Postfix) with ESMTP
	id 5FC519D1CE; Thu, 31 May 2001 04:45:52 -0400 (EDT)
Message-ID: <3B1604C0.5030101@ostel.com>
Date: Thu, 31 May 2001 04:45:52 -0400
From: David Sugar <dyfet@ostel.com>
Organization: OST
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013
X-Accept-Language: en
MIME-Version: 1.0
To: BOURGEOIS Steve <BOURGEOIS@micropole.com>, bug-commoncpp@gnu.org
Subject: Re: Help
References: <200105310850.KAA01136@vertigo.micropole.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Certainly it is and there is an included .dsp project in the distribution. 
The newest release (1.4.3, should be out later today) will also build a single 
dll that includes the classes from the common directory as well as those from 
the win32.

BOURGEOIS Steve wrote:

> Is it possible to compile CommonC++ with Visual C++...
> Thanks in advance
> Steve



From seenutn@cdotb.ernet.in Thu May 31 05:22:16 2001
Received: from [202.41.72.121] (helo=ws9.cdotb.ernet.in)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 155Oei-0007Xm-00
	for <bug-commoncpp@gnu.org>; Thu, 31 May 2001 05:22:14 -0400
Received: from ws9.cdotb.ernet.in (IDENT:seenutn@[192.168.51.218])
	by ws9.cdotb.ernet.in (8.9.3/8.9.3) with ESMTP id OAA21948
	for <bug-commoncpp@gnu.org>; Thu, 31 May 2001 14:42:39 +0500 (GMT+0500)
Message-ID: <3B160E81.262772E2@ws9.cdotb.ernet.in>
Date: Thu, 31 May 2001 14:57:29 +0530
From: "Srinivasa T.N." <seenutn@cdotb.ernet.in>
Organization: C-DOT
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: bug-commoncpp@gnu.org
Subject: Event Object
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: bug-commoncpp-admin@gnu.org
Errors-To: bug-commoncpp-admin@gnu.org
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-commoncpp/>

Hi All,
    Can somebody explain me how to use Event objects  with
example........

Regards,
Seenu.

--
-----------------------------------------------------------------------------
If not here, you can reach me at seenutn@seenutn.org

C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
Ph: 226 3399 Ext: 268  Direct: 238 3951 (Off)
    363 1707 (Resi)





