Results 1 to 6 of 6

Thread: DisconnectedContext was detected:Exception setting can be set for a project?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    DisconnectedContext was detected:Exception setting can be set for a project?

    When i run one of my vb project i get below warning message.

    Code:
    DisconnectedContext was detected
    Message: Context 0x21b448' is disconnected.  Releasing the interfaces from the current context (context 0x21b2d8).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.
    A quick google search gave me result like it can be solved by disabling the exception "disconnectedContext ". So I did in menu->debug->exception, under manage debug assistants deselect disconnectedContext and it solved the problem too.

    But this setting is not project wise or visual studio wise. I found like this setting is saved in .suo file.Now I want this setting I made to be available for all users using the project. So how it can be set project wise so that all users using the project will be able to get disconnectedContext setting disabled

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: DisconnectedContext was detected:Exception setting can be set for a project?

    Maybe I'm being a bit naive but, shouldn't the question you should be asking "how do I fix this error so it doesn't happen in the first place?" ???

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    Re: DisconnectedContext was detected:Exception setting can be set for a project?

    Quote Originally Posted by techgnome View Post
    Maybe I'm being a bit naive but, shouldn't the question you should be asking "how do I fix this error so it doesn't happen in the first place?" ???

    -tg
    Yes. You are right. But most of the links i got suggested to disable that exception, so i thought it may be a minor warning or can ignore it.

    In our case we didn't get that error for that project till now(from last one year). suddenly we got it now. So why does this error comes?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: DisconnectedContext was detected:Exception setting can be set for a project?

    well, hard to say. could be two things that were talking to each other stopped. Could be a cut cable. Could be eels in your hovercraft.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    PowerPoster
    Join Date
    Oct 2010
    Posts
    2,141

    Re: DisconnectedContext was detected:Exception setting can be set for a project?

    Name:  Exceptions.jpg
Views: 1073
Size:  33.3 KB

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    Re: DisconnectedContext was detected:Exception setting can be set for a project?

    So how can i disable those exception for that project , so that everyone accessing that project will get same settings.

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