FIX: Degrades ?????? ??? ????? ??????? ?????? ServicedComponent

?????? ????????? ?????? ?????????
???? ???????: 327782 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

????? ???? ?????? ?????? ?? AppDomain .NET ?????? ?????? Microsoft .NET ???? ?? ?????? ?? COM + ? ?? ????? ???? ??? ?????? ?? AppDomain ??? ????????. ???? ??? ??????? ??? ??? ??????? ?????? ??? ServicedComponent ???????? ????? ???? + COM.

?????

??? ????? ??? ?????? dispatches ????????? ????? ServicedComponent ????????? ?? ????? ???? + COM, ??? ????? .NET Framework ?????? ???????. ?????? ??????? ?????? ???? ????? ????? ???? ?????? ?????? MemoryStream ????? ? unmarshal ????????. ??? ???? ?????? ?????? ????? ???? MemoryStream ?????? ?? ?????? ????? ?? ????? ???????? ??????? ???? ?????? ???.

???? ?? ???? ??? ?????? ???? ?? ???????? ? ?? ????? ????????? ???? ?????? ?????? ????? ?? ??? ???? ????? ?????? ????????? ??????? ?????? ???? ???? ???.

????

????? ???? ????? ????? ?? Microsoft ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ?????? ??? ??? ????? ????????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ???????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? Microsoft ????????? ??? ??????? ?????? ?? ???? ???? .NET Framework ????? ????? ??? ??? ???????.

??? ??? ??????? ?????? ???? ?????? Microsoft "????? ?????" ?????? ??? ???????. ?????? ??? ????? ????? ?????? ?????? ????? ??? ?????? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
??????: ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.

????? ????? ?????????? ?? ??? ??????? ???? ????? (?? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date          Time    Version        Size      File name
   ----------------------------------------------------------------------------------
   10-Aug-2002   09:51   1.0.3705.302   208,896   System.EnterpriseServices.dll
   09-Aug-2002   23:23   1.0.3705.302    47,104   System.EnterpriseServices.Thunk.dll
				

?? ????? ??? ??????? ???? ??? ??? ??????? ??? ???? ?????? Microsoft .NET Framework Service Pack 1 ?????. ??? ??? ??? ?? ???? ???? ????? ??? ??? ???? ????? Microsoft ????? ???? ?????? Service Pack 2 ?????? ?? .NET Framework ? ???? ??? ??? ??????? ????? ?????? ?? "????? ??????? ?? Microsoft:
328545INFO: ???? ??????? ??????? ????? ?????? Service Pack 2 ???????? ????????? .NET Framework 2 ?????

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????.

??????? ????

????? ????? ????? ?? ????

?????? ?? ???? ?????? ????????? ??? ????? demonstrating ??????? ??????? ?? ??? ???????. ?????? ??? ??????? ?????? ??? ????? ????? ServicedComponents ???? ??? ??? ??????? ????? ?????? ?? "????? ??????? ?? Microsoft:
306296HOW TO: ????? ???? .NET Serviced ?? Visual C# .NET
????? ????? ??????? ? ???? ??????? ???????:
  1. ??????? ????????? ???????? ??????? ?????? ???? + COM:
    using System;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.EnterpriseServices;
    
    [assembly: AssemblyVersion("1.0.0.0")]
    [assembly: AssemblyKeyFile("ComPlusTest.snk")]
    
    [assembly: ApplicationName("ComPlusTest")]
    [assembly: ApplicationActivation(ActivationOption.Server)]
    
    public class CServer : ServicedComponent
    {
       [AutoComplete]
       public String Exec(byte [] param)
       {
    	return "done";
       }
    }
    					
  2. ??????? ????????? ???????? ??????? ?????? ????? ????:
    using System;
    
    public class CClient
    {
       public static void Main()
       {
          CServer pObj = new CServer();
          byte [] pLarge = new byte [2000];
          byte [] pSmall = new byte [10];
    
          // method call with large param
          pObj.Exec(pLarge);
    
          // method call with small param
          // takes just as long as the earlier call
          pObj.Exec(pSmall);
    
          pObj.Dispose();
       }
    }
    					
????? ??? ?????? ?????? ??????? ???? CServer.Exec ????? ????????? ????? ??? ????? ?? ?? ??????? ????.

???????

???? ???????: 327782 - ????? ??? ??????: 09/???? ??????/1435 - ??????: 3.5
????? ???
  • Microsoft .NET Framework 1.0 Service Pack 1
  • Microsoft .NET Framework 1.0 Service Pack 2
????? ??????: 
kbnosurvey kbarchive kbmt kbhotfixserver kbqfe kbbug kbfix kbnetframe100presp3fix kbqfe KB327782 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????327782

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com