Impossible to use create factory for cChannel derivate classes.

9 views
Skip to first unread message

Paul D.

unread,
Jul 30, 2014, 11:07:12 AM7/30/14
to omn...@googlegroups.com
Hello,

I' m currently trying to create dynamically gates and connect them because I have a large network with a variable size.

I want to modify the connection appearance through the method getDisplayString of cGate class.

Yet even if I succeed in creating all gates inside my modules, when I'm trying to connect a gate to another using:

module->gate("one gate")->connectTo(anotherGate, cIdealChannel::create("a channel name"));

or when I try

module->gate("one gate")->connectTo(anotherGate, NULL);

cDisplayString
*dispStr = module->gate("one gate")->getDisplayString();

Both compile and then I've got a segfault during execution. It seems that the segfault is thrown inside a Tcl/Tk method called Tk_freepixmap.

I use OMNEST 4.0
I don't know Tcl/Tk version.

Thanks for further answers.
Reply all
Reply to author
Forward
0 new messages