Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Multi Threading with Omnis

  • Multi Threading with Omnis

    Posted by Silvan Baach on June 30, 2022 at 12:46 pm

    Hi,

    I just wanted to know if it’s possible to implement multi-threading in standalone client based applications. I know there is the possibility for webapplications but I can’t find anything regarding this topic for standalone apps.

    My current use case: I need to generate an Excel report with a runtime of ca. 2 – 3 minutes. A big chunk of this time is used to wait on the response from a PostgreSQL server. I know there are workerobjects to cut wait times but there is no point in using them if I need the data straight afterwards. It would be nice to make one thread with the whole report generation while the user can do other stuff. After the thread finishes a little notification would be nice.

    Thanks for your help.

     

    – Silvan

    Götz Krija replied 1 year, 9 months ago 3 Members · 2 Replies
  • 2 Replies
  • Terence Young

    Member
    June 30, 2022 at 7:38 pm

    Hi,

    i would like to know the same thing.

    I would like to be able to open two instances of a window and be able to push the run button on each wondow and have all the code behind that button run in separate threads. A passed paramter would cusse the run button to run different methods

    In theory, I can open my library in two instances of Omnis (open version 10.1 and version 10.2) and then do that. (two versions of the library; eah opened by a diferent version)

    terry

  • Götz Krija

    Member
    July 8, 2022 at 2:11 pm

    Hi,

    You can probably use the “Do async method” command for this purpose: https://www.omnis.net/developers/resources/technotes/tnwe0014.jsp

    Götz

Log in to reply.