Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How can I manage/encapsulate failures of an Active X control

Reply
 
Old 07-31-2008   #1 (permalink)
Arthernan


 
 

How can I manage/encapsulate failures of an Active X control


I have an Active-X control provided by a vendor that will inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.

My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.

My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in the
middle of the process. I would normally want to call the process using
a regular procedure call instead of a command line call. But it may be
that the command line islates the processes better.

I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.


Thanks in advance for any help.

Arturo Hernandez

My System SpecsSystem Spec
Old 07-31-2008   #2 (permalink)
Arthernan


 
 

How can I manage/encapsulate failures of an Active X control

I have an Active-X control provided by a vendor that will
inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.

My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.

My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The
problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in
the
middle of the process. I would normally want to call the process
using
a regular procedure call instead of a command line call. But it may
be
that the command line islates the processes better.

I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.

Thanks in advance for any help.

Arturo Hernandez
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Service Pack 1 and Control Panel Applet Failures Vista performance & maintenance
Re: Service Pack 1 and Control Panel Applet Failures Vista General
Re: Service Pack 1 and Control Panel Applet Failures Vista General
Active X control Vista installation & setup
Active X control Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46