(First, sorry for duplicates)
Message:
Hi,
Our company still has to support legacy products written in 16-bit (MSVC 1.52). We "thunk" from 16 to 32-bit very often without any issue.
Recently, I have felt the need to use the nice features/classes offered by .NET and so I would load and unload (via LoadLibrary and FreeLibrary) a VC++ CLR enabled dll that will make use of .NET classes . All works nice except when I exit my 16-bit
application "hosted" under ntvdm, the 32-bit CLR dll that made use of .NET seemingly stays in memory and I cannot rename the folder from which my 16-bit app was running from as a result.
The function FreeLibrary does return true and no matter how simplistic my usage of .NET classes may be, I cannot get it to release my folder. If I choose to make my 16-bit app to run in a separate memory space (shortcut option) then I am able to rename
my folder but I want to know if there is a different solution than this workaround.
Thanks.
---
More:
As previously suggested by another user, I tried to use VS2010 and .NET 4.0 instead of VS2008 with .NET 3.5 but it did not solve my problem unfortunately. The issue arises as soon as I make this 32-bit DLL "/CLR" to reference even basic System assembly.
I would appreciate either a solution or an official statement that there is no solution for this.
Thanks again.