G
Guest
does anyone knpo why this code throws a runtime error saying unable to do
this managed code in this sense becayuse iot could hang
''Global Variable
Dim song as Audio ''direct x dll already imported
''inside of a button click event and "with openfiledialog1" statement
song.open(.filename)
''that doesnt work so i tried this
song = Audio.FromFile(.filename)
''Also doesnt work, throws same error
song = New Audio(.filename) ''also doesnt work....heres the error it throws
at runtime
LoaderLock was detected
Message: DLL
'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll'
is attempting managed execution inside OS Loader lock. Do not attempt to run
managed code inside a DllMain or image initialization function since doing so
can cause the application to hang.
any help would be awsome because it worked fine in VB2003
-iwdu
this managed code in this sense becayuse iot could hang
''Global Variable
Dim song as Audio ''direct x dll already imported
''inside of a button click event and "with openfiledialog1" statement
song.open(.filename)
''that doesnt work so i tried this
song = Audio.FromFile(.filename)
''Also doesnt work, throws same error
song = New Audio(.filename) ''also doesnt work....heres the error it throws
at runtime
LoaderLock was detected
Message: DLL
'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll'
is attempting managed execution inside OS Loader lock. Do not attempt to run
managed code inside a DllMain or image initialization function since doing so
can cause the application to hang.
any help would be awsome because it worked fine in VB2003
-iwdu