Only the PC-DMIS Execution Window is displayed - PC-DMIS User Prompts are essentially unavailable. In this case, closing PC-DMIS via task manager is the only solution.
My open and Execute construct are (essentially) the following:
PCDMISapplication = New PCDLRN.Application PCDprograms = PCDMISapplication.PartPrograms PCDMISapplication.Visible = True PCDpartPrg = PCDMISprograms.Open(pathAndFilename, machineName) Threading.Thread.Sleep(2000) ' Wait while program opens PCDMISapplication.WaitUntilReady(200) PCDpartPrg.Visible = True PCDpartPrg.EXECUTE()
I suspect the solution is to add a variable the Thread.Sleep() and WaitUntilReady() methods and increase the times until this stops. But that doesn't explain the random nature.
Another Thought: Since I'm also handling some PartProgram Object events, I'm tempted to put the PCDpartPrg.Visible = True in a regularly fired event. But this seems like wikkid overkill. Again, I'd just like to understand the nature of this random problem.
Any thoughts?
Thanks,
Dan (in DFW - supposedly)