RE: process started by Process.Start crashes when USB device accessed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 12/23/04


Date: Thu, 23 Dec 2004 06:10:10 GMT

Hi Landon,

Thanks for your posting. From your description, you've a .net based NT
service in which you use the
Process.Start to create a new process to run a certain application(exe)
which will acess the sound card and USB device. But you found the that new
process will crash. And if you run the exe app via double clicking , that's
ok ,yes?

As for such problem, I think it is likely concerned with the aft.exe app.
Does this app need to run in a UI context or have interactive processing?
Since the windows service / asp.net service application are all
non-UI/non-interactive based, start interactive applicaitons in them will
cause many unexpected errors.
Also, as for the security you mentioned, is your NT service run under a
powerful account or a restricted account?

In addition, you can also try set the ProcessStartInfo's
CreateNoWindow = true
UseShellExecute = false

to see whether it'll help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Relevant Pages

  • Re: Beratung neuer PC
    ... mein Posting einfach mal, ... Wenn du innerhalb dieser Umgebung (AOL oder eben iTunes App ... deine Beschwerde klingt irgendwie so, als hättest du dir die Bild-App ... Bild-Zeitung bekommst und nicht das "freie Internet". ...
    (de.rec.fotografie)
  • Re: Too much free time...not enough creativity
    ... depending on your opinion of matters) thing to do to this ... but perhaps somehow has found a better app? ... > I couldn't help notice I was still posting from Google. ... I have used pan for the last year or so and found it to be extremely good. ...
    (alt.2600)
  • Too much free time...not enough creativity
    ... depending on your opinion of matters) thing to do to this ... corrected me in the fact that I was posting from a Windows machine at ... but perhaps somehow has found a better app? ... I couldn't help notice I was still posting from Google. ...
    (alt.2600)
  • Re: PHP Utils functions
    ... The .inc filename is just so it can be viewed, I use .php for include files ... for the app I am working on I donot want first or third parties posting to the app. ...
    (comp.lang.php)
  • RE: Problem with Exception Mgt. App Block on W2k Server
    ... If you use a more powerful account, for example, the System account, will ... Microsoft Online Support ... Get Secure! ... (This posting is provided "AS IS", with no warranties, and confers no ...
    (microsoft.public.dotnet.framework.aspnet.security)