macOS Drag and Drop with sm_embedded is true causes crash

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
KaiHin
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Jun 11, 2008 7:46 am

macOS Drag and Drop with sm_embedded is true causes crash

Post by KaiHin » Thu Mar 04, 2021 12:26 pm

With wxWidgets 3.1.4 drag and drop does not work for me. The dnd sample works after the latest improvements from the wx master branch.
My application crashs in wxDropSource::DoDragDrop (dnd.mm:528). The wxEventLoop::GetActive() (dnd.mm:526) delivers a NULL pointer, because of plugin environment.
Looking at the dnd sample, a valid wxEventLoopBase Ptr is necessary for full dnd.

Thanks for help!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 5156
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: macOS Drag and Drop with sm_embedded is true causes crash

Post by ONEEYEMAN » Thu Mar 04, 2021 2:13 pm

Hi,
So what prevents you from creating the pointer?

Thank you.

KaiHin
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Jun 11, 2008 7:46 am

Re: macOS Drag and Drop with sm_embedded is true causes crash

Post by KaiHin » Mon Mar 08, 2021 9:56 am

I 've done it and it helps!
Thanks for help

Post Reply