How often is my stuff compiled?

Discussion in 'ASP.NET 2.0' started by Mike Hildner, Jan 10, 2006.

  1. Greetings,

    I have a web service hosted here that has a static (shared) ArrayList. I would think that the ArrayList would keep its contents until something causes a recompile of the web service.

    However, after some time, the ArrayList is empty. Not that I've uploaded any new files, and although I'm not sure how long it takes, it definitely happens after some time, maybe an hour.

    Not that this is a problem for me, I'm just curious. If I'm not forcing my app to recompile, why would a static field get reset? Or does my app get recompiled for some other reason? Or something else ?

    Regards,
    Mike
     
  2. It sounds like you are using application level variables. This is not a safe way to develop. there are many reasons why an application can get recycled. Though we do recycle applications after a certain time of inactivity.


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     

Share This Page