I'm calling a 3rd party COM+ component from a C# program via the COM interop library. To accomplish this, I've added a reference to the 3rd party library to my C# project. The code looks something like this:
ThirdPartyClass myObj = new ThirdPartyClass();
myObj.ThirdPartyMethod ("myFile.JPG"); // call 3rd party method
The 3rd party component is an image processing library. Every now and then the call to ThirdPartyMethod "hangs" if I call it with a corrupt JPEG file. (I know the file is corrupt because both Picture Viewer and Paint display an error when they try to open it). I'm processing a ton of images and every now and then one of them will cause this problem. I'm working with the vendor to get the problem fixed.
In the meantime.... is there any way I can safely timeout and abort the ThirtdPartyMethod call? The obvious thing to do is to wrap the ThirdPartyMethod call in a separate thread, set a timer and abort the thread when the timer pops. But I wonder how that affects the process which is hosting the COM object? I would think that it would continue to process the method call which means that I've just moved the problem rather than solved it.
Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
This article introduced a TextBox that supports transparent background.
TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download.
This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease.
The following video show how to bind OSX Mavericks to …