OK - more information would help!
EDIProcess is a string parameter (1 of 4 parameters) passed in as shown in the code snippet. This is run when the user clicks a button to run the process.
The RunDJClass module has a System.Diagnostic.Process object named djEngineProcess thus
Friend WithEvents djengineProcess As System.Diagnostics.Process
<System.Diagnostics.DebuggerStepThrou gh()> Private Sub InitializeComponent()
Me.djengineProcess = New System.Diagnostics.Process
'
'djengineProcess
'
Me.djengineProcess.StartInfo.FileNam e = "C:\Program Files\Pervasive\Cosmos\Com mon800\dje ngine.exe"
End Sub
The RunDJProcess sub inside the class runs the djengine.exe file
EDIProcess = "-v " & EDIProcess
djengineProcess.StartInfo.Arguments = EDIProcess
djengineProcess.Start()
EDI
C:\Program Files\Pervasive\Cosmos\Com





by: kyodaiPosted on 2009-09-14 at 06:24:09ID: 25325080
Hard to tell without knowing any of the components, but on first glance it looks like you call mRunDJEngine.RunDJProcess and give EDIProcess as a process (hwnd???) which doesnt seem to exist... I would check what EDIProcess resolves into (debug!), for some reason it seem to give an invalid handle to RunDJProcess, look where it gets EDIProcess from, maybe it cant start the process or refers to a process that isnt running (Service stopped? File moved? Drive letter changed???). Cant tell more without seeing the source or knowing the components.