The .NET bridge in PDS should use a different app domains for seperate projects

  • Thread starter Thread starter cooper
  • Start date Start date
Status
Not open for further replies.
C

cooper

Guest
I have two projects in the DevStudio with two different assembly directories. I have created a custom .Net control in which i have added a new property. This new assemly is only in the second project. The first project still has the older version without the new property. I added the updated assembly to the second project updated the view and tested it, everything worked fine. Then i tried to reopen the form in the designer and got the following error: Visual Designer cannot load this classs: Live 202: Unable to locale element custombutton.color in type myControl This occurs because PDSOE uses a .DLL loaded into the JVM to access .NET libraries. This .DLL acts as a bridge between the java code and the .NET reflection for reading details of the classes from an assembly. Since this .DLL only uses a single AppDomain to load the .NET assemblies, it cannot support loading multiple versions of the same assembly at the same time. So the first version of an assembly loaded into memory wins. This is really annoying when working with more than one project and some kind of custom control since you can never update an assembly in a later project without producing a huge pile of work. PDSOE uses a .DLL loaded into the JVM to access .NET libraries. This .DLL acts as a bridge between the java code and the .NET reflection for reading details of the classes from an assembly. Since this .DLL only uses a single AppDomain to load the .NET assemblies, it cannot support loading multiple versions of the same assembly at the same time. So the first version of an assembly loaded into memory wins. - See more at: https://community.progress.com/community_groups/openedge_development/f/19/t/16100.aspx#sthash.LXqxcbgG.dpuf I have two projects in the DevStudio with two different assembly directories. I have created a custom .Net control in which i have added a new property. This new assemly is only in the second project. The first project still has the older version without the new property. I added the updated assembly to the second project updated the view and tested it, everything worked fine. Today i tried to reopen the Form and got the following error: Visual Designer cannot load this classs: Live 202: Unable to locale element custombutton.color in type myControl - See more at: https://community.progress.com/community_groups/openedge_development/f/19/t/16100.aspx#sthash.LXqxcbgG.dpuf

Continue reading...
 
Status
Not open for further replies.
Back
Top