Results 1 to 2 of 2

Thread: Out of Memory Exception in VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    1

    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
    Last edited by saikatch; Jan 22nd, 2008 at 11:55 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width