[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Srange problems with FixedBuffer
From: |
Pascal Francq |
Subject: |
Re: Srange problems with FixedBuffer |
Date: |
Fri, 14 Mar 2003 08:54:57 +0100 |
User-agent: |
KMail/1.5.9.1i |
1°) Thanks for the tip, in fact I was to fast before post was send.
2°) Now, I have another problem:
int main(void)
{
....
GClient c;
c.start();
....
c.post(msg),
....
}
At the end of main, the destructor of GClient is called, but the connection is
not closed on the server side. When I does not called the post method, the
connection is closed correctly.
On Thursday 13 March 2003 21:51, Prochnow, Christian wrote:
> Am Donnerstag, 13. März 2003 10:17 schrieb Pascal Francq:
> > Hi,
> > I have a strange problem when using a class that both derived from
> > TCPSession and FixedBuffer.
> >
> > GClient : public ost::TCPSession, public ost::FixedBuffer
> > {
> > ....
> > }
> >
> > GClient c;
> > c.start();
> > c.post(msg),
> >
> > When I debug this problem, in the post method (comming from Buffer), when
> > it lmust run onPost (in FixedBuffer), the program halt with the message
> > "pure virtual function called". In fact, onPost is pure in Buffer but
> > overwritten in FixedBuffer.
> > Anyone an idea?
>
> Maybe the object has not been completely constructed when onPost gets
> called. I did run into a similar problem when using SocketPort :(
>
> Regards,
>
> Christian Prochnow
--
Ir Pascal Francq
Researcher
Université Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 47 24
ICQ: 91206668