Re: [Opentnl-general] Problems with NetConnetionRep::create()
Brought to you by:
mark_frohnmayer,
s_alanet
From: David W. <op...@gn...> - 2004-04-28 15:04:09
|
Greetings! Did you remember to enable RTTI? I'd forgotten to do that when I first compiled the simpleNet program and had the crash in the same location. One of those "oh ya" moments. - Dave http://www.gnometech.com ----- Original Message ----- From: "Markus Nuebel" <nu...@gm...> To: <ope...@li...> Sent: Wednesday, April 28, 2004 3:59 AM Subject: [Opentnl-general] Problems with NetConnetionRep::create() > I tried to follow the simple RCP "Hello World" test program from the docs. > > When starting the server and connecting with a client, the server crashed > with an exception in: > NetConnectionRep::create():50 > > At the codeline: > NetConnection *ret = dynamic_cast<NetConnection *>(obj); > > The exception is thrown by dynamic_cast. > > I wrote a simple test program, that contains only: > > Object* test= new SimpleEventConnection(); > NetConnection *ret = dynamic_cast<NetConnection *>(test); > > And this also crashes. > > Changing the cast in netConnection.cc to > NetConnection *ret = static_cast<NetConnection *>(obj); > and recompiling the library fixes the problem. > > What is the problem here? > > (I am working with the version from the download, not the CVS version) > > Kind regards > Markus > > > > -- > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! > Jetzt aktivieren unter http://www.gmx.net/info > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Opentnl-general mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opentnl-general > > |