I'm using a BackgroungWorker component in VB.net, through this thread I'm calling a DLL file(created by FORTRAN) and passing arrays between the interface/main program and the DLL filewhich is working without any problem. But, the mean problem I have with controlling this thread , where if the engine/DLL has been stopped after the end of the calculation I expected the backgroundwroker only should be stop as aresult. But this not the case, as when the engine/DLL stops all the interface will be closed not the thread(BackGroundWorker) only. So My question how can I manage that the if the engine stops the thread only should be affected (stops) not all the interface.
any help will be do appreciated