Dear all,
I have defined MyAgent (inherits from Agent) and MyClassifier (inherits from
DestHashClassifier). MyClassifier has a bound integer variable "var".
I'm trying to change the value of "var" within MyAgent's C++ code. Here is part
of my code (myagent.cc):
...
1. Tcl& tcl = Tcl::instance();
2. tcl.evalf("%s set var %f", name.c_str(), action); // runs forever
3. tcl.evalf("puts test"); // ok
...
When lines 1+2 are executed the program never terminates (name.c_str() returns
the name of the MyClassifier; I have tested this and it is definitely not the
cause of my problem). But when lines 1+3 are executed it works fine. Can anyone
help me on this please?
Best Regards,
Kleanthis