View Single Post
  #4 (permalink)  
Old 08-12-2008, 07:08 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,907
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Byak@ View Post
threading.firethreadevent does not work.
You are correct, neither does the firedebugevent work.

The thread is in fact running fine but B4ppc is not processing the events. B4ppc events run on the thread of the the main GUI form so that they can safely manipulate GUI controls. To safely process events the B4ppc code needs to know the Form that owns the GUI. Unfortunately I cannot at the moment tell the B4ppc code that a FormEx is that form as the .NET typing system won't allow it. This is because the B4ppc code expects a form that is higher in the inheritance chain than the normal Form that a FormEx uses. You are allowed to assign down the chain but not up so I cannot assign a FormEx as the main form and so get cross-thread events to work.

There is at least one way to arrange for this necessary cross thread marshalling but I need to think about it to get the most elegant and consistent solution.
Reply With Quote