problem with threading and formexdesctop

Discussion in 'Questions (Windows Mobile)' started by Byak@, Dec 14, 2008.

  1. Byak@

    Byak@ Active Member Licensed User

    i don't understand...
    this code return error when i compil it to exe!why???
    Code:
    Sub App_Start
    FormEx.New1(
    "mainf")
    Thread1.New1(B4PObject(
    1))
    Msgbox(1)
    FormEx.EnableThreading(
    "Main.thread1", B4PObject(1))
    Msgbox(2)
    formex.Run
    End Sub
    version of threading.dll is 1.3?formexdesctop.dll is 1.6...
     
  2. agraham

    agraham Expert Licensed User

    Because EnableThreading expects there to be some thread events to actually enable. Perhaps the help does not make this clear enough :( Sorry!
    As you have no thread events delared there is an error. Add two events as below and all is well.

    Code:
    Sub Thread1_ThreadEvent
    End Sub

    Sub Thread1_DebugEvent
    End Sub
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice