B4X FEED Manage long operations without blocking main thread

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Manage long operations without blocking main thread است. این موضوع تا کنون 87 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Manage long operations without blocking main thread
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
87
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi all developers,

I wrote a native code wrapper for a library that manages Zip files



This library permit to do some interesting things with Zip files.

The wrapper I wrote seem to work well, but the only problem I had is that it blocks the main thread while do operations on Zip files.
This is not a big problem with small files, but is a real problem with large files where the main thread is blocked, I cannot raise
events on main thread to log the operation progress, change a value of a progressbar etc.

The library has _Progress event, this is fired on the Main thread, the user can print it on the log, set a progressbar value etc...
this currently happen but only when operation on files is done.
Events:

@Events(values={"Progress (Method As String, Percent As Int, Complete As Boolean)", "Error (Method As String, Error As String)"})

On library every...



 

عقب
بالا