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.