I assume you mean that an error occurs when you run the modified 11.sbp code I posted. Next time please be more exact in describing exactly what you see happens rather than just saying an error occurred.
There is no error trapping in the thread in that code. In production code a thread subroutine should always have an errorlabel statement to trap errors otherwise B4PPC error handling will try to put up a message box from the thread which will itself cause an error as it is running on the threads' thread, not the GUI thread. Please try the attached code which should run without error in all situations - at least it does on my device.
Last edited by agraham : 02-29-2008 at 05:43 PM.
|