The same code which runs great on Linux (64 bit) is failing to run on Windows (64 bit, mingw)
Using the very latest JUCE from git, it is crashing simply when I try to create a subclass of DocumentWindow (and it is crashing within the DocumentWindow constructor)
This is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004369fc in juce::Component::internalRepaintUnchecked (this=0x4633a30, area=..., isEntireComponent=true)
at ../../JuceLibraryCode/modules/juce_gui_basics/components/juce_Component.cpp:1935
1935 {
(gdb) bt
#0 0x00000000004369fc in juce::Component::internalRepaintUnchecked (this=0x4633a30, area=..., isEntireComponent=true)
at ../../JuceLibraryCode/modules/juce_gui_basics/components/juce_Component.cpp:1935
#1 0x0000000000436f7d in juce::Component::repaint (this=0x4633a30)
at ../../JuceLibraryCode/modules/juce_gui_basics/components/juce_Component.cpp:1907
#2 0x000000000043aa20 in juce::Component::setOpaque (this=this@entry=0x4633a30, shouldBeOpaque=shouldBeOpaque@entry=true)
at ../../JuceLibraryCode/modules/juce_gui_basics/components/juce_Component.cpp:795
#3 0x000000000046fc80 in juce::TopLevelWindow::TopLevelWindow (this=this@entry=0x4633a30, name=...,
shouldAddToDesktop=shouldAddToDesktop@entry=true)
at ../../JuceLibraryCode/modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp:142
#4 0x000000000047002b in juce::ResizableWindow::ResizableWindow (this=this@entry=0x4633a30, name=...,
backgroundColour_=backgroundColour_@entry=..., addToDesktop_=addToDesktop_@entry=true)
at ../../JuceLibraryCode/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp:46
#5 0x000000000047019a in juce::DocumentWindow::DocumentWindow (this=0x4633a30, title=..., backgroundColour=...,
requiredButtons_=7, addToDesktop_=true) at ../../JuceLibraryCode/modules/juce_gui_basics/windows/juce_DocumentWindow.cpp:58
#6 0x000000000053ddc1 in MyWindow::MyWindow (this=0x4633a30, g=0x4d400b0, name=..., bg=..., requiredButtons=7)
at src/juce.cpp:498
The code which elicits this response is simple (and works on Linux):
gui->handle = new MyWindow(gui, title, Colour(bg), 7) ;
"title", "bg" and "7" are passed to the DocumentWindow constructor.
The code also worked fine (in prior JUCE) on Windows 32 bit, but I can't currently compile the 32-bit Windows (as mentioned elsewhere)
Any ideas?
