2024-02-12
02:04 PM
- last edited on
2024-09-17
11:25 AM
by
Doreena Deng
Hello,
I am experiencing random crashes in the destructor of my class, which extends the DG::Browser class. The weird thing is that I do not override the destructor. So I think this might be an issue of ArchiCAD 26.
Can somebody relate or has a solution for this? Thanks.
2024-07-05 03:17 PM
Hi André,
The race condition looks promising; some garbage collection may have destroyed the browser control.
Let me know if this works.
Best, Akos
13 hours ago
@andrewille - Hi, were you able to solve this?
10 hours ago
Hello @dushyant ,
yes, indeed. I found a workaround that works for me in all tested versions of ArchiCad. You need to manually destroy the DG::Browser instance earlier. I hooked the method when a project is closed to do it. Maybe it would also work with the shutdown hook. Just do it early enough so the rest of Archicad is still initialized and then you won't get any race conditions anymore.
9 hours ago
Okay, great that you were able to fix it!
Could you please share where exactly you destroy the DG::Browser instance so that is early enough to avoid the crash?
Just to confirm - in your case, did you explicitly call ~OAuthBrowser() or used some other way to destroy it?
Thanks.