Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System.Diagnostics.Process.Start
Message
De
16/04/2012 13:47:10
 
 
À
16/04/2012 07:07:42
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01541444
Message ID:
01541704
Vues:
20
>Just a guess: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.synchronizingobject.aspx
>
>I must have taken my strupid pills today :)

Maybe I did too :-}

>How am I supposed to set the synchronizing object when the reference to my process is null?

You could try without the using{} but if it is not being instantiated at all then there's no point. My guess is that the process is instantiating then immediately crashing - maybe down to attempting something for which it has no permissions ?
I haven't got any documentation in front of me right now but, IIRC, you can hook into errors which are raised by the process - if you do that temporarily then that may shed some light on what's going wrong.

Personally I think I'd try to handle this using my own code (tho maybe with a background worker) - grabbing a screen area to a bitmap and printing (or saving to a file) should be pretty simple......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform