object-lifetime
Safe way in Delphi for a Form to distribute interface objects tied to its lifetime?
I have a Delphi Form that provides the functionality behind an interface object that other parts of the code get references too via a property belonging to the Form.I can\'t delegate the interface fun[详细]
2023-04-12 06:34 分类:问答Prevent temporary from extending its lifetime?
This may be impossible, but I was wondering if it was possible to keep a temporary from ever lasting past its original expression. I have a chain of objects which point to parent objects, and a member[详细]
2023-04-09 08:42 分类:问答Can I override Dispose to make an entity class that always calls SaveChanges?
This is a fairly fine point, and I expect the answer is \"it\'s not a hot idea to begin with\" - that said, it has a points that I\'m interested in regardless, if someone is kind enough to indulge.[详细]
2023-04-04 04:13 分类:问答Warning C4172: Returning a reference to const std::string bound to a local variable. How safe is it?
I was just building one of our projects at work and I see a new function was added: const std::string& ClassName::MethodName() const[详细]
2023-03-27 21:27 分类:问答BizTalk mapping - Scripting Functoid Object life cycle, when is it initialized and destructed
In a BizTalk map when you call a scripting functiod, is the object (the class you are calling) initialized at the time of the first call and kept in memory for the entire time the transformation is oc[详细]
2023-03-27 13:37 分类:问答Load viewstate on pageload, save on Page Unload (from baseclass) - c# Asp.net
Pardon me for asking a mundane newbie question but I seem to be stuck in a class life-cycle limbo. So I have my page[详细]
2023-03-23 19:46 分类:问答C++: How to manage object lifetimes and dependencies?
A concrete problem: I have a Main application which has objects of type A and type B (among other types).[详细]
2023-03-21 16:26 分类:问答MEF ExportFactory<T> - How to properly dispose in a long-running application?
Basically, is there an easy way to dispose of the imports that are created by an ExportFactory<T>? The reason I ask is because the exports usually contain a reference to something that is still[详细]
2023-03-17 03:56 分类:问答Is it important to use InitializeLifetimeService for windows service members
Does I have to set the InitializeLifetime开发者_如何转开发Service on the members that should be running as long as my application or service is running? by example of my own experience Because I build[详细]
2023-03-16 17:33 分类:问答MVC 3, Unity 2 - Per Request Lifetime Manager
I\'m using the Unity MVC3 code at http://unitymvc3.codeplex.com/to have a NHibernate session per request instance of my IUnitOfWork.[详细]
2023-03-13 11:06 分类:问答