Topic profile page for COM object.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: COM object.
Topic "Com object" was discussed 0 times on 0 sites in last 3 months
Started 5 days, 3 hours ago (2009-12-24 05:47:00)
by Dharamvir
Hi: I'm getting an error while reading the excel sheets. Error which I'm getting is: {"COM object that has been separated from its underlying RCW cannot be used."} Actually in a sheet, I'm having various sheets & I've to read all the sheets one by one. I'm able to read a sheet successfully but as soon as I try to take the reference of next sheet, I faces this problem. Code is like ...
Started 1 week ago (2009-12-21 19:52:00)
by Garios
Hi! I have a com object and what it does is upload content into a database and returns the id of the generated content passing to a variable by reference. So the scripts looks something like this: ----------------- $ArticleId = 0 $impObj = New-Object âcom mycomobject ; $impObj.ImportContent($content, ([ref]$ArticleId)) ---------------- I can see the content is generated in the ...
Started 1 week, 3 days ago (2009-12-18 13:30:00)
by matvdl
Hello, I have a large VB6 dll application that I want to start to use in dot net. The application is very large and cannot be easily re-written - but I have a few questions. What I need to do is create a number of these com objects in the dot net application - and each object needs to be on its own thread. So far my investigations have shown that all com objects appear to be created on the ...
Started 1 week, 6 days ago (2009-12-16 03:32:00)
by Gend
I have a vb project that was created in 2003 visual studio .net. It uses a com object that is provided by Telechart as part of a SDK to obtain stock data. I converted the program to visual studio express 2010 beta 2 and it hangs when the object is created. No error messages, just a hang. I abstracted the code to the following snippet which runs and creates a message in the 2003 version but ...
Started 1 week, 6 days ago (2009-12-15 17:51:00)
by Pat McLaughlin
I have recently started getting this error "COM object that has been separated from its underlying RCW cannot be used." on closing a debug session of an app I am building. It is simply calling Crystal Reports to create a report and save it to a disk file in html4.0 and quitting. I only have this problem when I call the Crystal Reports app in the program. I have closed literally everything ...
Started 1 week, 6 days ago (2009-12-15 10:04:00)
by kcmwang
Hi, I have an old DCOM service that is built by ATL 3.0 and recently just migrated to ATL 8.0 (VS2008). After the migration, the client cannot create com object from the server service (error - Access denied), even both server and client are running in the same machine. However, if I start the service as a process (double click on it), it works fine. There is nothing change in on the machine ...
Started 4 days, 8 hours ago (2009-12-25 00:32:00)
by Garios
Thanks Bob for your help, But how should I attribute $ArticleId with retval in Powershell? I can't find the right sintax "Bob Landau" wrote: Quote: > [ref] is used by COM or RPC to declare pointer attributes. [ref] in .NET is > used for parameter direction. These are in no way compatible. > > Do you have the return parameter which I assume is ArticleId attributed with > "...
Started 3 days, 23 hours ago (2009-12-25 09:51:00)
by Bin-ze Zhao
Hi, The reference counter is managed by a corresponding RCW. And the RCW isn’t involved when you assign one .NET variable to another. For that reason, you can pass a .NET variable referencing a COM object to any method and release the COM object there. Note however, that all .NET variables that refer to that COM object will produce an error if you use them after releasing one of them. The ...
Started 1 week, 1 day ago (2009-12-21 07:34:00)
by Jialiang Ge [MSFT]
Hello Matthew On the .NET side, you need to new a Thread object to begin a new thread, and in that threadproc, create the COM object. Please pay attention to the thread apartment required by your COM component. If the COM object is STA, please initialize your .NET thread as STA, otherwise, initiliaize the thread as MTA. (see the Thread.Apartment property) Regards, Jialiang Ge MSDN ...