Redefine handleMessage() or specify non-zero stack size to use activity().

418 views
Skip to first unread message

Luis Henrique

unread,
Sep 4, 2015, 8:29:59 AM9/4/15
to OMNeT++ Users
Greetings. 

Then again ran into an error when trying to run a simulation (which I can't identify the source): 


I believe the error is related to the new subclass I created, the "sensorReport" class, defined in the "message.msg" file. I read some people had the same problem but their solutions did not work for me =/


All files of the network are attached. 







dbSyncSensor.cc
defaultSensor.cc
message.h
message.msg
message_m.cc
message_m.h
sensorNetwork.ned

Ester Lopez

unread,
Sep 5, 2015, 9:37:36 AM9/5/15
to OMNeT++ Users
Hi Luis,

You have to define on dbSyncSensor

void dbSyncSensor::handleMessage(cMessage *msg)
instead of:
void dbSyncSensor::handleMessage(sensorReport *msg)

Then you can check_and_cast<sensorReport *>(msg) to do the casting from cMessage to sensorReport.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Luis Henrique

unread,
Sep 10, 2015, 3:25:57 PM9/10/15
to OMNeT++ Users
Hi. 

Will try this weekend, thank you again!

Best regards. 
Reply all
Reply to author
Forward
0 new messages