Out of Memory Exception in VB6
Hi,
I have created a .Net ActiveX control. I am trying to use that in VB6 (unmanaged code). It works fine. But as per the requirement I need to load/host remoting object from my activex control. by using the following code..
RemotingConfiguration.Configure(some config file, false);This works fine in .net environment. As well as in "ActiveX Test Container" (tstcon32) tool. There is no error in config file. If I comment this code it loads and works fine at runtime in VB6. But it does not work if I comment out. It load correctly but at runtime it throws "Out of Memory" exception.
Kindly help me in this and let me know what needs to be done.
regards
Saikat
Re: Out of Memory Exception in VB6
First, are you having problems with the VB6 code or the VB.NET code?
Second
Quote:
Originally Posted by saikatch
This works fine in .net environment. As well as in "ActiveX Test Container" (tstcon32) tool. There is no error in config file. If I comment this code it loads and works fine at runtime in VB6. But it does not work if I comment out. It load correctly but at runtime it throws "Out of Memory" exception.
This is very confusing. It sounds like you are saying that "it works if you comment out the code, but then if the code is commented out, it doesn't work. :confused: