Infognition forum
February 08, 2012, 10:17:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Last GraphEditPlus version: 1.4.0   Last Video Enhancer version: 1.9.7
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: The previos version  (Read 780 times)
Vittorio
Newbie
*

Karma: +2/-0
Posts: 13


View Profile
« on: February 23, 2010, 02:11:20 AM »

The attaching to the ROT-Registered graph stopped working as well. What is the latest fully functional version?
Logged
Dee Mon
Administrator
Hero Member
*****

Karma: +8/-0
Posts: 512



View Profile WWW
« Reply #1 on: February 23, 2010, 07:16:02 AM »

Since 1.4.0 it runs with administrator privileges. Two GEPs see each other's graphs in the ROT.
I guess if you run your app with elevated rights, you'll see its graph too.
Logged
Vittorio
Newbie
*

Karma: +2/-0
Posts: 13


View Profile
« Reply #2 on: February 23, 2010, 06:02:45 PM »

This was the first thing I tried. Unfortunately not. I'm using Vista SP!, what about another two GEPs? And could you reproduce the crash?
Logged
Dee Mon
Administrator
Hero Member
*****

Karma: +8/-0
Posts: 512



View Profile WWW
« Reply #3 on: February 24, 2010, 09:03:39 AM »

What do you mean by "another two GEPs"?
I was telling that if you run two copies of GEP, they see each other's graphs.

As for the crash after removing a camera, not yet, 'cause the only camera we currently have here is not removable.
Logged
Vittorio
Newbie
*

Karma: +2/-0
Posts: 13


View Profile
« Reply #4 on: February 24, 2010, 07:21:16 PM »

Got it. Mea Culpa. Do you do anything differently under Vista to register the Graph in the ROT? What flags do you use? The code which worked just fine under all versions up to latest XP and registers the graph in the ROT has stopped working under the Vista. All system calls including Could you share just the raw idea? This is what works until Vista:

HRESULT AddGraphToRot(IUnknown *pUnkGraph, DWORD *pdwRegister)
{
    IMoniker * pMoniker;
    IRunningObjectTable *pROT;
    WCHAR wsz[128];
    HRESULT hr;

    if (!pUnkGraph || !pdwRegister)
        return E_POINTER;

    if (FAILED(GetRunningObjectTable(0, &pROT)))
        return E_FAIL;

    hr = StringCchPrintfW(wsz, NUMELMS(wsz), L"ActiGui %08x pid %08x\0", (DWORD_PTR)pUnkGraph,
              GetCurrentProcessId());

    hr = CreateItemMoniker(L"!", wsz, &pMoniker);
    if (SUCCEEDED(hr))
    {
        hr = pROT->Register(ROTFLAGS_REGISTRATIONKEEPSALIVE, pUnkGraph,
                            pMoniker, pdwRegister);
        pMoniker->Release();
    }

    pROT->Release();
    return hr;
}
Logged
Dee Mon
Administrator
Hero Member
*****

Karma: +8/-0
Posts: 512



View Profile WWW
« Reply #5 on: February 25, 2010, 10:06:28 AM »

Ah, Vista!
In Vista MS moved ROT-related functionality from quartz.dll to proppage.dll, so you need to locate and register (using regsvr32) proppage.dll to be able to work with ROT.

A quote from the internets:
Quote
In order ... to work on Windows Vista, you actually need to have the version of GraphEdit from the Windows SDK for Windows Vista and register the proppage.dll that comes with it. If you have the older version of GraphEdit from the previous version of the Windows SDK, it still won't work. It has to be the one from the Windows SDK for Vista. The reason for this is that Microsoft (in their infinite wisdom) removed almost all the proxy/stub pairs from Quartz.dll in Vista and moved them all into the proppage.dll file. Without the proxy/stub pairs registered, Windows can't marshal proxies from one thread apartment to another.
« Last Edit: February 25, 2010, 10:09:17 AM by Dee Mon » Logged
Vittorio
Newbie
*

Karma: +2/-0
Posts: 13


View Profile
« Reply #6 on: February 26, 2010, 12:41:00 AM »

I know this but I didn't load any dll explicitly ever before. Do you do it now?
Logged
Dee Mon
Administrator
Hero Member
*****

Karma: +8/-0
Posts: 512



View Profile WWW
« Reply #7 on: February 26, 2010, 02:19:22 PM »

No, you just need it registered in the system.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!