View Single Post
  #6  
Old 10-27-2003, 04:52 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
It will work, but in order to use the async version in this scenario, you will need to do some extra work:

1) implement logic to wait until the build has completed.
2) ensure that the builder/app objects remain in existence until they have completed or aborted.
3) (optionally) provide a mechanism for the build to be canceled and take the appropriate steps.
4) ensure that messages continue to get pumped so that events will fire. This could also entail extra work to synchronize multiple threads of execution.

You will still receive build events when using the sync version, so unless you're trying to do separate processing from your component while the build is progressing, that will be the simpler way to go.
Reply With Quote