Page 1 of 1

NetCon.event doesn't respect NetCon.active

Posted: Sun May 11, 2008 10:49 pm
by eacheon
Hi,

I am using NetCon.event in a FinitializeHandler to schedule events time for this NetCon object, and was hoping by setting NetCon.active(0), I can run a simulation with this NetCon silent.

fih = FInitializeHandler("e.event(10)")
e.active(0)
run()

However, .event() doesn't seem to respect .active(0). After I checked and NetCon.active() returns 0, I still get event from this NetCon at 10 ms when run() is called.

Am I doing anything wrong here? Is this a desired behavior or a bug? How can I "silence" a NetCon during a simulation (means, even I call .event() on it, it still doesn't deliver)? Thanks in advance!

Posted: Mon May 12, 2008 10:48 am
by ted
Have you tried this?

Code: Select all

objref fih

proc myrun() {
  if ($1 == 0) {
    objref fih
  } else {
    fih = new FInitializeHandler("e.event(10)") 
  }
  run()
}

myrun(1) // e should deliver an event at t==10
myrun(0) // e should not deliver an event at t==10

Posted: Mon May 12, 2008 11:23 am
by hines
I agree that in this case the event should not be placed onto the queue.
I committed the change to the subversion repository.
http://www.neuron.yale.edu/cgi-bin/trac ... geset/2087

Posted: Fri May 16, 2008 2:33 am
by eacheon
hines wrote:I agree that in this case the event should not be placed onto the queue.
I committed the change to the subversion repository.
http://www.neuron.yale.edu/cgi-bin/trac ... geset/2087
Thank you!


BTW, everytime when I use firefox to browse this forum, the browser reminds me that some SSL certificate has expired. One has to click through 3 dialog in order connect to the forum. Is there anything can be done with it?

accept certificate permanently

Posted: Fri May 16, 2008 10:54 am
by tom_morse
We will update our certificate soon to be un-expired but still not (externally) certified. You can get around the extra certificate dialog boxes when visiting the forum by accepting the certificate **permanently** rather than choosing to **temporarily** accept the certificate.

Once you have selected the certificate **permanently** you will no longer see certificate dialog boxes when you return to the forum (even when our certificate has expired), except when we update the certificate, in which case you need to once again **permanently** accept it.

Posted: Tue May 27, 2008 6:32 pm
by ted
How nice it is to not be pestered with those "warnings" about the site's certificate!

Re: accept certificate permanently

Posted: Mon Sep 29, 2008 12:49 am
by eacheon
tom_morse wrote:We will update our certificate soon to be un-expired but still not (externally) certified. You can get around the extra certificate dialog boxes when visiting the forum by accepting the certificate **permanently** rather than choosing to **temporarily** accept the certificate.

Once you have selected the certificate **permanently** you will no longer see certificate dialog boxes when you return to the forum (even when our certificate has expired), except when we update the certificate, in which case you need to once again **permanently** accept it.
Thank you very much. Works perfectly!