|
The COM method called returned a failure code and the interop layer mapped it into an exception. What COM object and method is being called?
Steve
|
|
|
|
|
Steve ,
I was developing a build using the com and dll's and .net components which is not developed by me , By using these components i could made a build using install shield 10.5. I could open the application , but while select some of the contols i am geting errors as i posted earlier
Can you give a solution for this, I am hanged on this error for a quite long time
Please Help
|
|
|
|
|
Why a particular COM components returns E_FAIL depends on the components and method in question. I can't tell you anything without knowing these details.
Steve
|
|
|
|
|
Steve,
This is when using Dotnet dll's
Thanks
|
|
|
|
|
The error says, "HRESULT E_FAIL has been returned from a call to a COM component." Somewhere a COM component is being called and one of its methods is failing with the E_FAIL failure code. The reason for this depends on the component and method in question regardless of the language used to implement it.
Steve
|
|
|
|
|
Steve,
Is this problem is arising due to non registering of any com or dll component or due to the error in coding ?
I am just deploying the files given to me to make a build
Thanks for your Quick response steve!!!
|
|
|
|
|
It's possible it's a registration problem but note that if a method can return E_FAIL the COM object exists and thus was created correctly which implies it was registered. It's possible some other object which the object uses wasn't registered however.
Steve
|
|
|
|
|
We have been bitten by severe memory leaks in our project.
While having a dry run of one of the components code. I came across the following. This looks like a sure shot memory leak to me. Because of the fact that we are not doing a VariantClear().
Please confirm.
<<
try
{
IXMLDOMSchemaCollection2Ptr m_pSchemaCache;
hr=m_pSchemaCache.CreateInstance(__uuidof(MSXML2::XMLSchemaCache60));
if (SUCCEEDED(hr))
{
hr=m_pSchemaCache->add(szNameSpace_in, szSchemaFilePath_in);
if (SUCCEEDED(hr))
{
VARIANT varValue;
varValue.vt = VT_DISPATCH;
varValue.pdispVal = m_pSchemaCache.GetInterfacePtr();
m_pSchemaCache.AddRef();
m_pDOMDoc->PutRefschemas(varValue);
}
else
{
this->m_errorCode=ERR_XML_DOC_SCHEMA_ADDITION_FAILED;
return FALSE;
}
}
else
{
this->m_errorCode=ERR_XML_DOC_SCHEMA_INSTANCE_CREATION_FAILED;
}
}
>>
Rajdeep
|
|
|
|
|
Off course, its a memory leak. you have to free a variant manually. The other way round is to use CComVariant. This frees a variant automatically and u get spared of calling VariantClear etc.
"Some people believe football is a matter of life and death.
I'm very disappointed with that attitude.
I can assure you it is much, much more important than that. -- Bill Shankly"
|
|
|
|
|
Have you ever tried Google Notebook? After installing the software, it will add a button to the bottom-right corner of IE. Dose anybody know how to implement that ? Any reply is appreciated.
Thanks
R.Y.J
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I am developing a build using Install shield 10.5 , after installing the msi , I could open the application but displaying the below error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
Can any one help me !!! Awaiting any valuable suggestions
Please Healp!!!!!! we are in very Much trouble!!!!!!!!!!
|
|
|
|
|
Are using some COM object in you application? One possibility is that, that component is missing, or thorowing some exception or not registered properly.
|
|
|
|
|
Prasad,
I am using install shield 10.5 , I am puting all the file and creating a msi, I am geting the folloing error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
at CaliperLifeSciences.DKP.SipperControl.SipperCtrlPanel.AsyncUserControlInitialize() in Y:\Core\Devices\PlateHandler\SipperControl.NET\CaliperSipper.vb:line 243
Should we register .exe files , or .net dll , while using regasm or regsvr32 I could not regiser them manually
Please give a answer to this please...
|
|
|
|
|
Jeeva Mary Varghese wrote: I am geting the folloing error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
at CaliperLifeSciences.DKP.SipperControl.SipperCtrlPanel.AsyncUserControlInitialize() in
look for value {18BD938D-208A-406B-9A7C-0FBE72010567} in registry, see if its being registred on target m/c after installation. If not try to register it.
Jeeva Mary Varghese wrote: Should we register .exe files , or .net dll
No.
|
|
|
|
|
Prasad,
After adding new dll's , i could open the application but a popup window is comming say that this application will be closed sent to Microsoft, if we debug the error then it gives like
Unhandled exception at 0x781442d0 (msvcr80.dll) in LabChipHTSMain.exe: 0xC0000005: Access violation reading location 0x00000000.
PLease help
|
|
|
|
|
Jeeva Mary Varghese wrote: i could open the application but a popup window is comming say that this application will be closed sent to Microsoft,
This means that, you aplication is crashing.
Its necessarily because of reasons I mentioned earlier.
Try to create log, and see where its crashing.
And what about question I asked earlier.
Have you searched registry if ID mentioned ?
|
|
|
|
|
I have an object IWebBrowser2. I would like to receive notifications from the object into interface IHttpNegotiate (implemented in my code) – to have information about all HTTP requests that the IWebBrowser2 receives. Is this possible?
|
|
|
|
|
Hi to all.I'm new to XML.Can any one help me ,how to use MSXML in sending and retrieving bulk amounts of data in COM/DCOM.Please also mention some websites for MSXML to learn as a beginner.
Thans in advance.
|
|
|
|
|
Here is where you can find some XML info.[^]
Except that it is a COM component, MSXML has little to do with COM/DCOM, and nothing to do with the mechanics of sending/retrieving data, since XML is only a format, and MSXML is the MS implementation of various bits (DOM, SAX, et al) that deal with XML.
Steve S
Developer for hire
|
|
|
|
|
You can send data via XMLHTTP which is a part of MSXML3 and MSXML4. Web Services send data serialized into a special XML document (SOAP, WSE).
|
|
|
|
|
Hi, I have a problem with a win 2003 server Standard edition.
Sometimes when I'm working in my web application the session hangs
(but not the ASP-application). In the application log I find the
following error:
Event Type: Error
Event Source: COM+
Event Category: Unknown
Event ID: 4689
User: N/A
The run-time environment has detected an inconsistency in its internal
state. This indicates a potential instability in the process that
could be caused by the custom components running in the COM+
application, the components they make use of, or other factors. Error
in d:\nt\com\complus\src\comsvcs\threads\st
awork.cpp(156), hr =
80010108:
Callback failure handled by IAsyncErrorNotify
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
The ASP-application is built in VB and uses four different dll-files
for things like uploading files etc.
When I run the application on a win 2000 server everything worked out
perfect.
Anybody who has a clue, thanks in advance!
Best regards
Manuel
|
|
|
|
|
The function CoGetClassObjectFromURL, which is used to download the object from the web server.
In IE6, IE7 Beta 2 this works.
In IE7 RC1 it returns a status of E_NOTIMPL!!!!
Is there a work around for this in IE7-land?
|
|
|
|
|
|
When I call SetName on my activeX control with some danish character (æøå) as parameter I get some wired text in my Edit control. How can I solved this problem?. Thx in advance.
test.h
afx_msg void SetName(LPCTSTR name);<br />
DECLARE_DISPATCH_MAP()<br />
test.cpp
<br />
BEGIN_DISPATCH_MAP(CMyMFCCtrl, COleControl)<br />
DISP_FUNCTION(CSignScanMFCCtrl, "SetName", SetName, VT_EMPTY, VTS_BSTR) <br />
END_DISPATCH_MAP()<br />
<br />
<br />
void MyCtrl::SetName(LPCTSTR name) <br />
{<br />
std::string myname = name;<br />
}
CMyDialog dlg = new CMyDialog();<br />
dlg.m_name = myname.c_str();
void CMyDialog::OnInitDialog() <br />
{<br />
CString defaultText = m_name;<br />
SYSTEMTIME systemTime;<br />
GetLocalTime(&systemTime);<br />
<br />
char formatDate[20];<br />
memset(formatDate, (char)NULL, sizeof(formatDate));<br />
<br />
sprintf(formatDate," %4.4d%2.2d%2.2d %2.2d%2.2d", <br />
systemTime.wYear, <br />
systemTime.wMonth,<br />
systemTime.wDay,<br />
systemTime.wHour,<br />
systemTime.wMinute);<br />
<br />
defaultText += formatDate;<br />
SetDlgItemText(IDC_DESCRIPTON_EDIT, defaultText);<br />
}
|
|
|
|