RCW Exception

ajeeshco

Well-known member
Joined
Sep 19, 2006
Messages
257
Location
Cochin, India
Programming Experience
3-5
Hi,
I'm working with WMI and in my application I'm getting an exception like this "An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss." Is there any way to avoid this? I'm using ThreadPool for managing threads. Thanks in Advance:).
 
Don't do whatever you're doing that is causing the RCW to be freed while it's in use on another thread. If you want anything more specific than that then you're going to have to tell us what you're actually doing. Giving us the error without any indication of what caused it is only so much use.
 
Hi

Hi,
I was trying to read all the system information using WqlObjectQuery and when i quit my application it shows this exception:confused:.
 
Back
Top