<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1812985003737084262.post5091209955175054614..comments</id><updated>2009-02-17T15:31:38.056-05:00</updated><category term='Rx'/><category term='C++'/><category term='Visual Studio'/><category term='LPC'/><category term='Assembly'/><category term='64-bit'/><category term='GDB'/><category term='WCF'/><category term='WinDBG tips'/><category term='PLINQ'/><category term='WinDBG'/><category term='ETW'/><category term='MSIL'/><category term='Kernel'/><category term='Exceptions'/><category term='Java'/><category term='Miscellanous'/><title type='text'>Comments on Bing Xia's Blog: Run Win32 application in its own application pool</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.bytetalk.net/feeds/5091209955175054614/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1812985003737084262/5091209955175054614/comments/default'/><link rel='alternate' type='text/html' href='http://www.bytetalk.net/2009/02/run-managed-and-unmanaged-application.html'/><author><name>bxia</name><uri>http://www.blogger.com/profile/13262666423559414651</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1812985003737084262.post-2329201897143459043</id><published>2009-02-17T15:31:00.000-05:00</published><updated>2009-02-17T15:31:00.000-05:00</updated><title type='text'>Since the following user seems to have the similar...</title><content type='html'>Since the following user seems to have the similar issue, I copy/paste the whole email for reference.&lt;BR/&gt;&lt;BR/&gt;Based on your description, my understanding on your problem is that you have an ASP.NET web application which uses a managed C++ component library that act as a wrapper of an unmanaged c++ dll. This application works well&lt;BR/&gt;when there is only single web application work in the Application Pool, but get messed state management when running multiple web applications in the same application pool(IIS), correct?&lt;BR/&gt;&lt;BR/&gt;As you mentioned that the C++ unmanaged dll uses some static variables to manage global connection pool(or other states), I think this should be the cause of the problem. As for ASP.NET(or other .net framework/clr based&lt;BR/&gt;application), it is running at AppDomain based boundary, that means global variables(static class members in .net applications) is only visible in its own AppDomain, not in the entire host process(which is different from the variable sharing scope for win32 application---process based scope).&lt;BR/&gt;&lt;BR/&gt;For your scenario, in IIS6, all the ASP.NET applications (which use the same App Pool) will be hosted in the same worker process, therefore, if you've used any unmanaged c++ code which use global variables, they'll be&lt;BR/&gt;accessible by all the applications in the worker process no matter they're in the same AppDomain or not. Therefore, I'm wondering whether it is possible that you'll configure those applications to use separate application pool(in IIS) if they'll access the same win32/c++ global variables? So far this is the only means I can get to prevent the win32/ c++ global variables to be accessed by multiple applications.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1812985003737084262/5091209955175054614/comments/default/2329201897143459043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1812985003737084262/5091209955175054614/comments/default/2329201897143459043'/><link rel='alternate' type='text/html' href='http://www.bytetalk.net/2009/02/run-managed-and-unmanaged-application.html?showComment=1234902660000#c2329201897143459043' title=''/><author><name>bxia</name><uri>http://www.blogger.com/profile/13262666423559414651</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.bytetalk.net/2009/02/run-managed-and-unmanaged-application.html' ref='tag:blogger.com,1999:blog-1812985003737084262.post-5091209955175054614' source='http://www.blogger.com/feeds/1812985003737084262/posts/default/5091209955175054614' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1332317476'/></entry></feed>
