The DialogsDemo seems to be working as it should.
I’ve tried moving the code from there to my own project, and I still throw an exception in the exact same place.
Call stack is as follows: Admittedly I can’t make heads or tails of it.
I don’t think I can use Address Sanitizer, given I’m on Windows.
|>|MainWindowTutorial.exe!std::exchange<juce::FileChooser *,juce::FileChooser * &>(juce::FileChooser * & _Val, juce::FileChooser * & _New_val) Line 616|C++|
|---|---|---|
| |MainWindowTutorial.exe!std::unique_ptr<juce::FileChooser,std::default_delete<juce::FileChooser>>::reset(juce::FileChooser * _Ptr) Line 3263|C++|
| |MainWindowTutorial.exe!FileChooserJSONHandler::readDataFromJSONFile() Line 53|C++|
| |MainWindowTutorial.exe!NodeMCUPatternProgrammer::loadPatternFromFile() Line 280|C++|
| |MainWindowTutorial.exe!NodeMCUPatternProgrammer::{ctor}::__l2::<lambda>() Line 31|C++|
| |[External Code]||
| |MainWindowTutorial.exe!juce::Button::sendClickMessage(const juce::ModifierKeys & modifiers) Line 425|C++|
| |MainWindowTutorial.exe!juce::Button::internalClickCallback(const juce::ModifierKeys & modifiers) Line 369|C++|
| |MainWindowTutorial.exe!juce::Button::mouseUp(const juce::MouseEvent & e) Line 492|C++|
| |MainWindowTutorial.exe!juce::Component::internalMouseUp(juce::MouseInputSource source, const juce::PointerState & relativePointerState, juce::Time time, const juce::ModifierKeys oldModifiers) Line 2577|C++|
| |MainWindowTutorial.exe!juce::MouseInputSourceInternal::sendMouseUp(juce::Component & comp, const juce::PointerState & pointerState, juce::Time time, juce::ModifierKeys oldMods) Line 144|C++|
| |MainWindowTutorial.exe!juce::MouseInputSourceInternal::setButtons(const juce::PointerState & pointerState, juce::Time time, juce::ModifierKeys newButtonState) Line 187|C++|
| |MainWindowTutorial.exe!juce::MouseInputSourceInternal::handleEvent(juce::ComponentPeer & newPeer, juce::Point<float> positionWithinPeer, juce::Time time, const juce::ModifierKeys newMods, float newPressure, float newOrientation, juce::PenDetails pen) Line 312|C++|
| |MainWindowTutorial.exe!juce::MouseInputSource::handleEvent(juce::ComponentPeer & peer, juce::Point<float> pos, __int64 time, juce::ModifierKeys mods, float pressure, float orientation, const juce::PenDetails & penDetails) Line 610|C++|
| |MainWindowTutorial.exe!juce::ComponentPeer::handleMouseEvent(juce::MouseInputSource::InputSourceType type, juce::Point<float> pos, juce::ModifierKeys newMods, float newPressure, float newOrientation, __int64 time, juce::PenDetails pen, int touchIndex) Line 90|C++|
| |MainWindowTutorial.exe!juce::HWNDComponentPeer::doMouseEvent(juce::Point<float> position, float pressure, float orientation, juce::ModifierKeys mods) Line 2886|C++|
| |MainWindowTutorial.exe!juce::HWNDComponentPeer::doMouseUp(juce::Point<float> position, const unsigned __int64 wParam) Line 3063|C++|
| |MainWindowTutorial.exe!juce::HWNDComponentPeer::peerWindowProc(HWND__ * h, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 3967|C++|
| |MainWindowTutorial.exe!juce::HWNDComponentPeer::windowProc(HWND__ * h, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 3862|C++|
| |[External Code]||
| |MainWindowTutorial.exe!juce::InternalMessageQueue::dispatchNextMessage(bool returnIfNoPendingMessages) Line 149|C++|
| |MainWindowTutorial.exe!juce::dispatchNextMessageOnSystemQueue(bool returnIfNoPendingMessages) Line 266|C++|
| |MainWindowTutorial.exe!juce::MessageManager::runDispatchLoop() Line 109|C++|
| |MainWindowTutorial.exe!juce::JUCEApplicationBase::main() Line 266|C++|
| |MainWindowTutorial.exe!WinMain(HINSTANCE__ * __formal, HINSTANCE__ * __formal, char * __formal, int __formal) Line 105|C++|
| |[External Code]||