[Opentnl-general] Problems with NetConnetionRep::create()
Brought to you by:
mark_frohnmayer,
s_alanet
From: Markus N. <nu...@gm...> - 2004-04-28 07:59:28
|
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 |