Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#80 .NET2.0 SP1

closed-out-of-date
nobody
5
2011-08-14
2008-06-23
Anonymous
No

I am unable to use IIOP.net to communicate with java client if i have .net2.0 and sp1 installed in my XP machine.

Is there any samples to work out on it ..

Discussion

  • Alexander Noé
    Alexander Noé
    2008-10-13

    Defining a dynamic assembly in the type initializer of BoxedValueRuntimeTypeGenerator fails.

    Appearently, there are two different ways (which are, according to the MSDN, not supposed to be different) to determine the current AppDomain: System.Threading.Thread.GetDomain() and AppDomain.CurrentDomain.

    Trying both AppDomains to create a dynamic assembly seems to help. Suggestion:

    *** \BoxedValueTypeGenerator_1.1.1.1_12.cs 2008-10-13 16:30:47.000000000 +-0200
    --- \BoxedValueTypeGenerator_1.1.1.1.2.1_13.cs 2008-10-13 16:30:50.000000000 +-0200
    ***************
    *** 71,85 ****

    #endregion SMethods
    #region IMethods

    private void Initalize() {
    AssemblyName asmname = new AssemblyName();
    ! asmname.Name = "dynBoxed";
    ! m_asmBuilder = System.Threading.Thread.GetDomain().
    ! DefineDynamicAssembly(asmname, AssemblyBuilderAccess.Run);
    m_modBuilder = m_asmBuilder.DefineDynamicModule("dynBoxed.netmodule");
    }

    /// <summar>check if the type with the name fullname is defined among the generated boxed value
    /// type. If so, return the type</summary>
    internal Type RetrieveType(string fullname) {
    --- 71,98 ----

    #endregion SMethods
    #region IMethods

    private void Initalize() {
    AssemblyName asmname = new AssemblyName();
    ! asmname.Name = "dynBoxed";
    ! AppDomain currentDomain = System.Threading.Thread.GetDomain();
    !
    ! try
    ! {
    ! m_asmBuilder = currentDomain.
    ! DefineDynamicAssembly(asmname, AssemblyBuilderAccess.Run);
    ! }
    ! catch (Exception ex)
    ! {
    ! //throw;
    ! currentDomain = AppDomain.CurrentDomain;
    ! m_asmBuilder = currentDomain.
    ! DefineDynamicAssembly(asmname, AssemblyBuilderAccess.Run);
    ! }
    !
    m_modBuilder = m_asmBuilder.DefineDynamicModule("dynBoxed.netmodule");
    }

    /// <summar>check if the type with the name fullname is defined among the generated boxed value
    /// type. If so, return the type</summary>
    internal Type RetrieveType(string fullname) {

     
  • Seems that this was fixed in svn rev. 1927.
    @alexnoe, could you, please, check this in current svn HEAD?

     
  • Jens Villadsen
    Jens Villadsen
    2011-04-04

    • status: open --> open-out-of-date
     
    • status: open-out-of-date --> closed-out-of-date