[vwnc] WinProcess

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] WinProcess

Bany, Michel
WinProcess

Hi all,
I am using this code to execute a program using the command line interface

result := WinProcess new executeSingleCommand: aString

For some reason, this program crashes, so Microsoft offers me a chance to send an error report with the "Please tell Microsoft about this problem" dialog.

While the dialog is being displayed, the VW process is blocked.
Eventually, I press the "Don't Send" button in the dialog, then the VW process resumes and an empty string is assigned to the result variable.

I see two issues here.
1) This is for a headless server, and I would like to disable the display of the Microsoft dialog. Is this possible?
2) When I received an empty string, how do I know that the program has crashed?

Any idea?
Michel Bany


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] WinProcess

Jan Lukeš
Bany, Michel napsal(a):

1) This is for a headless server, and I would like to disable the display of the Microsoft dialog. Is this possible?

My computer - properties - advanced - error reporting - disable


hth
Jan L.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] WinProcess

Georg Heeg
In reply to this post by Bany, Michel
WinProcess

Michel,

 

When you look into the implementation of WinProcess you will see that VisualWorks and the called command is very loosely coupled. The way this is done is by calling a windows shell like cmd.exe with the /C parameter and pipes with input and output.

 

Your program which crashes is called the same way as it would be called from an interactive shell.

 

Certainly there are other communication options from VisualWorks (e.g. DLLCC, …).

 

Georg

 

Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812

Tel. +49-3496-214328, Fax +49-3496-214712


Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Bany, Michel
Gesendet: Dienstag, 8. Juli 2008 16:04
An: [hidden email]
Betreff: [vwnc] WinProcess

 

Hi all,
I am using this code to execute a program using the command line interface

result := WinProcess new executeSingleCommand: aString

For some reason, this program crashes, so Microsoft offers me a chance to send an error report with the "Please tell Microsoft about this problem" dialog.

While the dialog is being displayed, the VW process is blocked.
Eventually, I press the "Don't Send" button in the dialog, then the VW process resumes and an empty string is assigned to the result variable.

I see two issues here.
1) This is for a headless server, and I would like to disable the display of the Microsoft dialog. Is this possible?
2) When I received an empty string, how do I know that the program has crashed?
Any idea?
Michel Bany


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc