From: Christopher N. <cn...@it...> - 2008-10-29 03:02:49
|
Hi, I've tried to create a new spike source in an external module. When trying to connect the output of the new SpikeSender to spiking synapses or spike recorders, I get the exception <type 'exceptions.RuntimeError'>: PCSIM::ConstructionException in function SingleThreadNetwork::addSpikeMessage: Specified simulation object ((n=0,e= occurring in: void SingleThreadNetwork::_addSpikeMessage_(const SimObject::ID &sender, const port_t out, const SimObject::ID &receiver, const port_t in_port, const Time &delay) It appears as though the dynamic_cast on line 170 of SingleThreadNetwork.cpp is returning null, however I can achieve a naive cast: (SpikeSender*) src_obj in a debugger and call the appropriate SpikeSender members (so the object is the right type). I've simplified the class and tested that the problem still occurs; the simplified version is attached along with a python script that produces the error. Any thoughts would be most appreciated. Cheers, Chris. |