KDevelop hangs in Solid/WMI stuff while trying to do an RPC call to some windows service
Maurice Kalinowski
haiku at kaldience.com
Tue Jun 23 23:39:15 CEST 2009
Hi,
this is a known issue, where no solution has been figured yet.
Temporarily you can use following hack to get applications launched....
Problem is that ConnectServer() simply doesn't return.
Index: wmiquery.cpp
===================================================================
--- wmiquery.cpp (revision 983596)
+++ wmiquery.cpp (working copy)
@@ -98,8 +98,9 @@
}
if( !m_failed )
{
- hres = pLoc->ConnectServer( _bstr_t(L"ROOT\\CIMV2"), NULL,
NULL, 0, NUL
L, 0, 0, &pSvc );
- if( FAILED(hres) )
+ //hres = pLoc->ConnectServer( _bstr_t(L"ROOT\\CIMV2"), NULL,
NULL, 0, N
ULL, 0, 0, &pSvc );
+ // We just fail here to uninitialize
+ if( true )
{
qCritical() << "Could not connect. Error code = " << hres
<< endl;
pLoc->Release();
@@ -145,7 +146,10 @@
WmiQuery::ItemList WmiQuery::sendQuery( const QString &wql )
{
ItemList retList;
-
+
+ if( m_failed )
+ return retList;
+
HRESULT hres;
hres = pSvc->ExecQuery( bstr_t("WQL"), bstr_t( qPrintable( wql ) ),
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL, &p
Enumerator);
Andreas Pakulat wrote:
> Hi,
>
> wondering if anybody else ever encountered hangs in the wmi solid
> backend during startup of applications. I'm running Vista64 with
> MSVC2008 here (all Debug self-built) and its hanging somewhere very
> early on (doesn't even reach the main() function) trying to do some
> rpc-call apparently (there's an RPC thread). I unfortunately don't have
> the exact line or file handy but I can reproduce them if anybody wants
> to debug that.
>
> For now I've re-compiled solid without wmi support.
>
> Andreas
>
>
More information about the Kde-windows
mailing list