CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2009
    Posts
    7

    [Resolved] An outgoing call cannot be made since....

    Full error:

    0x8001010D: An outgoing call cannot be made since the application is dispatching an input-synchronous call.
    0xC0000005: Access violation reading location 0xccccccdc.

    Hi all.

    I'm having trouble with an application I'm writing that's making use of a number of different libraries. The two that are causing me issue are Tuio (Touchlib client for interpretting multitouch events over ports, a server runs on the viewing app, and my app instantiates a client to collect the processed data). and Hikari (a library for embedding flash in 3d Ogre applications (Ogre is a graphics library built on both opengl and direct x).

    Each of libraries work perfectly on their own, but I'm encountering a problem when attempting to use tuio and hikari at the same time. The reason Im having trouble figuring it out (and hence posting on here) is that the hikari->load function which is the initial cause of the error according to the compiler (vc9), but, its only throw when I create an instance of the tuioclient no matter where this happens in the code. In fact, the
    Code:
    new TuioClient()
    may never actually be called, yet the error still occurs.

    My load function is called as follows:

    Code:
    	hikariMgr = new HikariManager("..\\media");
    
    	controls = hikariMgr->createFlashOverlay("Controls", viewport, 350, 400, Position(Center));
    	controls->load("controls.swf");
    The controls->load(...) calls a similar function in the hikari library, which loads a File object and then in turn calls the putMovie function from within the flash9b.tli

    Code:
    inline void IShockwaveFlash::PutMovie ( _bstr_t pVal ) {
        HRESULT _hr = put_Movie(pVal);
        if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    }
    The tuioClient at this point (I'd tried repositioning the initialisation of tuioclient to after this load function was called, but see below) is attached to a key listener,

    Code:
    else if(arg.key == OIS::KC_F1)
    		m_tuioClient = new TuioClient(PORT);
    This key is NEVER pressed, yet the load function still causes the error, commenting this line out, prevents the error. And in this, is the cause of my confusion. I've spent the last few days looking up this error, and most the information I've found refers to a listener call having not returned, thus locking up the thread in a call, however, I've ran this code without listeners and still have the problem. Im mostly though just confused that commenting out that line of code prevents the error, but inserting it ANYWHERE in my application, brings the error out.

    If anyone could offer me a solution, or preferably point me in the direction of some literature which might help me understand the issue, I'd greatly appreciate it.

    Thanks in advance, and apologies for the verbose post, its getting late and I tend to ramble.
    Last edited by sofcal; May 20th, 2009 at 03:33 PM. Reason: resolved

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: An outgoing call cannot be made since....

    Can you load the two components into two different threads?

  3. #3
    Join Date
    May 2009
    Posts
    7

    Re: An outgoing call cannot be made since....

    I tried loading the tuioclient onto a seperate thread, and came across the same error. Haven't tried loading the flash component on a seperate yet, but will give it a go just in case.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: An outgoing call cannot be made since....

    It might be good to try a separate thread. I'm thinking the components are conflicting because they are getting loaded into the same apartment.

  5. #5
    Join Date
    May 2009
    Posts
    7

    Re: An outgoing call cannot be made since....

    Cheers mate, that did indeed resolve the issue. Its now left me with another problem, but that question is best asked in a more specific forum. I've been looking into this all slightly, and I've learned a little bit about why the error occurred, however if there's any literature you feel I should look at, please post it, so I can try and get a better grip on it all.

    Thanks again.

  6. #6
    Join Date
    Sep 2009
    Posts
    1

    Re: An outgoing call cannot be made since....

    Hi sofcal,

    I am having exactly the same problem when using Hikari. Did you finally come up with a solution? It would really help...

    Thanks!

    Julio

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

Featured