Anonymous | Login | 2021-01-27 12:34 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000047 | OMNeT++ | runtime / Tkenv | public | 2009-01-20 10:20 | 2009-01-20 11:06 | ||||
Reporter | ViRe | ||||||||
Assigned To | andras | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.0rc1 | ||||||||
Target Version | Fixed in Version | 4.0rc2 | |||||||
Summary | 0000047: Crash in Tkenv when inspecting a module | ||||||||
Description | If a simple module has a member(such as, a queue) which is an object of class inherited from the cSimpleModule(which is inherited from cComponent), and the componenttype could be left unset. But if I try to inspect the simple module in the GUI, an error will happen. I found such codes in the tkutil.cc: const char *getObjectShortTypeName(cObject *object) { if (dynamic_cast<cComponent*>(object)) return ((cComponent*)object)->getComponentType()->getName(); else return object->getClassName(); } Because my queue does NOT set the componenttype, so the getComponentType() returns NULL. Should some ensurance be added? | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0000116) andras (administrator) 2009-01-20 11:05 |
Modules (objects derived from cSimpleModule) may only be created via the cModuleType::create() function. It is illegal to create them directly via "new". Tkenv has been fixed not to crash on such cases, but to print a meaningful error message. |
(0000117) andras (administrator) 2009-01-20 11:06 |
Client code needs to be fixed not to instantiate a module class without cModuleType object. Tkenv crash was fixed in OMNeT++. |
![]() |
|||
Date Modified | Username | Field | Change |
2009-01-20 10:20 | rhornig | New Issue | |
2009-01-20 10:20 | rhornig | Assigned To | => andras |
2009-01-20 10:28 | rhornig | Reporter | rhornig => ViRe |
2009-01-20 11:05 | andras | Note Added: 0000116 | |
2009-01-20 11:06 | andras | Note Added: 0000117 | |
2009-01-20 11:06 | andras | Status | new => resolved |
2009-01-20 11:06 | andras | Fixed in Version | => 4.0rc2 |
2009-01-20 11:06 | andras | Resolution | open => fixed |
Copyright © 2000 - 2021 MantisBT Team |