static server-side information

  • Thread starter Thread starter PJ6
  • Start date Start date
P

PJ6

OK I now truly appreciate that I can have static information on the server,
it is automatically preserved in any DLL static fields. It's great, I'm
happy. Only it's a little too good - when I restart a debugging session,
static information that I need cleared persists. Is there a way (aside from
recompiling everything) to reset this information, or will I be forced to
make my properties non-static until I'm done debugging?

Paul
 
And is it possible to reset these static variables without having to
physcially recompile the DLL they reside in?

Paul
 
Paul,

Note, that static variables live in the scope of application. They are
shared by multiple sessions.

Eliyahu
 
Sure. IISReset.

Note that starting up the debugger will in fact recompile your .dll and
restart IIS. As you're noticed, "re-starting" the debugger does not
actually stop and start it.

So in your specific case, No, you cannot simply clear out Static
members while the application is running. That's why you marked them
Static in the first place!


Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
 
Back
Top