static server-side information

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
 
P

PJ6

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

Paul
 
E

Eliyahu Goldin

Paul,

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

Eliyahu
 
J

Jason Kester

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top