C
casey chesnut
i've got a test WinForm executable that instantiates a DirectSound object in
the Forms constructor,
so it gives me the LoaderLock MDA exception.
following the instructions here :
http://msdn2.microsoft.com/en-us/library/d21c150d(en-US,VS.80).aspx
i've run the registry script to disable all MDAs and also created the
AppName.exe.mda.config file with loaderLock enable="false"
.... but i'm still getting the MDA warning when in VS 2005 and doing
debug-start debugging.
the only thing that works for me is if i have run the disable script and
turn on the 'enable unmanaged code debugging' checkbox.
first question, why do i have to run the registry script and 'enable
unmanaged code debugging' to get it to go away.
second question, why is the AppName.exe.mda.config not working?
i tried doing this logic in another thread that was created in the
constructor, but i get the same error.
third question, what is the proper way to get around this problem in code,
without having to change the environment?
Thanks,
casey
http://www.brains-N-brawn.com
the Forms constructor,
so it gives me the LoaderLock MDA exception.
following the instructions here :
http://msdn2.microsoft.com/en-us/library/d21c150d(en-US,VS.80).aspx
i've run the registry script to disable all MDAs and also created the
AppName.exe.mda.config file with loaderLock enable="false"
.... but i'm still getting the MDA warning when in VS 2005 and doing
debug-start debugging.
the only thing that works for me is if i have run the disable script and
turn on the 'enable unmanaged code debugging' checkbox.
first question, why do i have to run the registry script and 'enable
unmanaged code debugging' to get it to go away.
second question, why is the AppName.exe.mda.config not working?
i tried doing this logic in another thread that was created in the
constructor, but i get the same error.
third question, what is the proper way to get around this problem in code,
without having to change the environment?
Thanks,
casey
http://www.brains-N-brawn.com