#16 BaseModule causes error on 'rebuild network'

v2.2
closed-fixed
nobody
None
5
2012-04-13
2012-04-13
da fox
No

Starting with omnet 4.2.2 using the MiXiM BaseModule causes an Error condition upon rebuilding the network. I am using MiXiM version 2.2.1.
The error is the following: "subscribe(): not a valid signal: signalID=%d" (in cComponent::subscribe).

The trace looks a bit like this:
MyModule::initialize --- BaseModule::initialize --- findhost()->subscribe(catHostStateSignal, this)

This is a recent change introduced with omnet-4.2.2, omnet-4.2.1 works fine.
What appears to be wrong is the use of a static variable to hold the catHostStateSignal (this is highly discouraged by omnet). MiXiM does seem to have a way to deal with this (simsignalwrap_t), but this does not seem to realize that it needs to re-acquire the signal.

Discussion

  • Michael Lindig

    Michael Lindig - 2012-04-13

    What do you mean with "rebuilding the network"?

     
  • Michael Lindig

    Michael Lindig - 2012-04-13
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks