d2lmirrors / anolis

Anolis is the underlying project for the XPize and Vize resource switchers for Windows XP and Vista respectivly. The codebase allows for the easy swapping around of resources within Win32 executables and other files. (just adding some missing data)
GNU General Public License v2.0
1 stars 0 forks source link

ResourceListView - Threading issues again #38

Closed Dobby233Liu closed 1 year ago

Dobby233Liu commented 1 year ago

creation date: 2009-05-02T16:46:36.807-07:00

I redid ResourceListView's population methods to make things consistent, simpler, and faster (by not re-adding ImageList items for resource types when they're identical, for example), however I appear to have screwed up the threading. If you try to open a new resource source after another it freezes: __bg.IsBusy returns true, even when the method has ended.

Dobby233Liu commented 1 year ago

closed date = 2009-05-02T19:22:24.013-07:00

Fixed. I needed to add Application.DoEvents() so it pumps the messages that tell it it was cancelled successfully. Silly me.