Exception thrown on initialization


#1

Hi all,

I’m utilizing Juce 5.2.0 from the git download…
Windows 10.

I am getting the following exception when running any demo as well as some older code that I first developed in a previous juce version:

Exception thrown at 0x00007FFDB9449D98 (KernelBase.dll) in SurfaceMapper.exe: 0x000006F4: A null reference pointer was passed to the stub.

It looks like the toFront function is causing it when eventually called from the initializeApp.

if (flags.hasHeavyweightPeerFlag)
{
    if (auto* peer = getPeer())
    {
        peer->toFront (setAsForeground);

        if (setAsForeground && ! hasKeyboardFocus (true))
            grabKeyboardFocus();
    }
}

Anybody know what causes this?


#2

Also, I am using Visual Studio 2015 Community