-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Saravana
Message 5 in Discussion

 
Hi, 
If your ASP.NET application uses COM components written in Visual Basic 6.0, be sure 
to mark the pages that use them as ASP-compatible with an @ Page directive:  
<%@ Page AspCompat="true" %>  
Why? Some ASP.NET pages that use ASP COM components don't run without this directive. 
Others do, but they will incur a measurable (and sometimes dramatic) performance hit.  
Here's the reason for the performance hit. By default, threads that process ASP.NET 
requests reside in a COM multithreaded apartment (MTA). COM components written in VB6 
-- and COM components written in any language (including C++) that are registered as 
ThreadingModel="Apartment" or that have no registered ThreadingModel value -- run in 
COM single-threaded apartments (STAs). When threads running in an MTA call objects in 
STAs, those calls must be marshaled across apartment boundaries. They incur thread 
switches as they enter an STA. AspCompat="true" forces ASP.NET threads into STAs, 
allowing those threads to call STA-based COM objects without marshaling or thread 
switches. 
Saravana 
www.extremeexperts.com 
  
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to