This sounds like your application is imagined to deal with cPackets, but
when you add a timer, the handleMessage will not handle a cPacket but a
cMessage, and cannot cast it.
You should find where the cast is done and check the message type before
casting, or do a different cast and check the return value.
ciao,
leonardo.
--
Leonardo Maccari, Post-doc researcher@University of Trento
Tel: +39 0461 285323, project website: www.pervacy.eu
> Is there a manual or a how-to that would specify how to debug your
programs in the omnet 4.1 IDE
The IDE C++ support is built on Eclipse CDT, so CDT documentation,
tutorials, etc apply.
Generally omnetpp/doc/UserGuide.pdf describes the IDE, but it doesn't say
much about debugging, because debugging is already covered by the
documentation written by the CDT team.
I'd suggest the normal CDT documentation bundled with the IDE: Help | Help
Contents, then in the tree open C/C++ Development User Guide -> Tasks->
Running and debugging projects -> Debugging. It describes launching,
breakpoints, stepping, watches, etc.
There's some more stuff at http://www.eclipse.org/cdt/documentation.php
Andras
___________________________________________________________
From: omn...@googlegroups.com [mailto:omn...@googlegroups.com] On Behalf
Of Zarrar Yousaf
Sent: Thursday, October 27, 2011 1:26 PM
To: omn...@googlegroups.com
Subject: [Omnetpp-l] How to debug in omnet 4.1
Dear All,
thanks
Zarrar
--