Asio digidesign driver load problem


#1

Hi Jules and Juce people!
I’m totaly new JUCE user and I’m learning it.
Now I’m trying to make small VST host based on Juce audio plugin host demo and found one problem:
when I try setting Audio Setings/Device (in AudioDeviceSelectorComponent window ) to ASIO Digidesign Driver,
aplication has exited with code 16 (0x10) in Debug and Release configuration.
info from debug window:
[color=#0000FF]
opening ASIO device: ASIO Digidesign Driver
’Plugin Host.exe’: Loaded ‘C:\Windows\SysWOW64\digiasio.dll’
‘Plugin Host.exe’: Loaded ‘C:\Program Files (x86)\Digidesign\Pro Tools\DirectIO.dll’, Binary was not built with debug information.
‘Plugin Host.exe’: Loaded ‘C:\Program Files (x86)\Digidesign\Pro Tools\DSI.dll’
‘Plugin Host.exe’: Loaded ‘C:\Windows\SysWOW64\IPHLPAPI.DLL’
‘Plugin Host.exe’: Loaded ‘C:\Windows\SysWOW64\winnsi.dll’
‘Plugin Host.exe’: Loaded ‘C:\Program Files (x86)\Digidesign\Pro Tools\DigiPlatformSupport.dll’
‘Plugin Host.exe’: Loaded ‘C:\Users\BoNkiE\AppData\Local\Temp\PILE10E.tmp’, Binary was not built with debug information.
The thread ‘Win32 Thread’ (0x680) has exited with code 16 (0x10).
The thread ‘Win32 Thread’ (0xf74) has exited with code 16 (0x10).
The thread ‘Win32 Thread’ (0x2f4) has exited with code 16 (0x10).
The thread ‘Win32 Thread’ (0xda8) has exited with code 16 (0x10).
The thread ‘Juce Timer’ (0xd24) has exited with code 16 (0x10).
‘Plugin Host.exe’: Loaded 'C:\Windows\SysWOW64\netutils.dll’
The program ‘[3488] Plugin Host.exe: Native’ has exited with code 16 (0x10).
[/color]
This happend in initDriver() metod when asioObject->init is call.

 String initDriver()
    {
        if (asioObject != nullptr)
        {
            char buffer [256] = { 0 };

            if (! asioObject->init (windowHandle))
            {
                asioObject->getErrorMessage (buffer);
                return String (buffer, sizeof (buffer) - 1);
            }

            // just in case any daft drivers expect this to be called..
            asioObject->getDriverName (buffer);

            return String::empty;
        }

        return "No Driver";
    }

I found some information about it:
http://www.rawmaterialsoftware.com/viewtopic.php?f=8&t=7261
http://www.rawmaterialsoftware.com/viewtopic.php?f=2&t=4941&hilit=digidesign
but without solution.
Could you help with this problem?

I use JUCE 1.53.107
VS2008 + SP1 and VS2010
MS Windows 7 Ultimate x64 SP1


#2

Hi, Bonkie

The latest version of JUCE is 2.0.18, maybe help you solved this problems.
You can use Git get it:

git clone git://juce.git.sourceforge.net/gitroot/juce/juce


#3

Thank SwingCoder for your response.
I installed Juce 2.0.18 and the same situation occur:
aplication has exited with code 16 (0x10).


#4

I think that like it says in the other thread about this, this is a deliberate crash caused by anti-piracy stuff in their driver. Have you tried running it outside the debugger?


#5

Yes Juels, I have tried, and the same problem occurs.


#6

Ok, but if it’s crashing inside the driver’s code as soon as we call init(), then I’m not sure what you think I could possibly do about that…?