View Single Post
  #20 (permalink)  
Old 02-29-2008, 05:32 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,881
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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.
Attached Files
File Type: sbp 11.sbp (1.1 KB, 12 views)

Last edited by agraham : 02-29-2008 at 05:43 PM.
Reply With Quote