Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

My main program starts a subroutine which I hide in the taskmanager, so it´s only listed as a process. Most of the time
it works but sometimes it crashes and I get the message:
VC_ReadDigport.exe doesn´t work anymore. (translated from german).

Is it possible to notice that message, so I can kill the process and restart it. I already tried to get the response of the process but because it´s hidden it doesn´t work. Maybe one of you has a solution.

Thanks!
Tom
Posted
Updated 16-Feb-12 22:35pm
v2

1 solution

From what I read, i'd advice you to rewrite your application to a Windows Service. This will also run in the background and only appear in the Process list. It's easier to maintin the status of the Windows service. You can then create a second service (for example) to maintain and check the status of the first service.

Get your kickstart right here[^].

Good Luck!
 
Share this answer
 
Comments
Member 7983150 17-Feb-12 7:08am    
Hi,

to do that with a Windows Service is a good idea, but my subroutine is written in c++. I don´t know how to make a Windows Service out of it.

(fyi: this subroutine gets information of a Hardwaredevice and my mainprogramm written in c# handles the information)

When the c++ program crashes there comes this errormessage. Is it possible to notice that in any other way. Cause I don´t have much knowledge about Windows Services.

Thanks!
Eduard Keilholz 17-Feb-12 7:21am    
You may choose to retrieve the hardware information purely using C#, but that depends on the hardware info you want.
Member 7983150 20-Feb-12 1:03am    
I thought about that but the library works in C only.

I think there is no point of doing it that amateurish way, I have to find
the problem in my subroutine.

Thank you for your help anyway.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900