473,804 Members | 3,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

direct x sdk not working like it should in vb 2005

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(.file name)
''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\ass embly\GAC\Micro soft.DirectX\1. 0.2902.0__31bf3 856ad364e35\Mic rosoft.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


Nov 23 '05 #1
1 2119
"iwdu15" <iw****@discuss ions.microsoft. com> schrieb
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(.file name)
''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\ass embly\GAC\Micro soft.DirectX\1. 0.2902.0__31bf3 856ad364e35\Mic rosoft.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



No solution, but:

http://msdn2.microsoft.com/en-us/library/ms172219.aspx

also:
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
(section "Enabling and Disabling MDAs")

also:
microsoft.publi c.win32.program mer.directx.man aged

Armin

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1061
by: jmays | last post by:
Dev Direct June 2005 News Round Up http://www.devdirect.com/content/newsletters/dev200506.htm Dev Direct provides an authoritative and up-to-date catalog of 1000's of developer tools and software components. The products that we list can help you to reduce delivery times, improve quality and cut costs. We are dedicated to mapping the entire market for developer products to ensure that you get the best tools for the job, every time....
0
922
by: jmays | last post by:
Dev Direct July 2005 News Round Up http://www.devdirect.com/content/newsletters/dev200507.htm Dev Direct provides an authoritative and up-to-date catalog of 1000's of developer tools and software components. The products that we list can help you to reduce delivery times, improve quality and cut costs. We are dedicated to mapping the entire market for developer products to ensure that you get the best tools for the job, every time....
0
897
by: jmays | last post by:
Dev Direct September 2005 News Round Up http://www.devdirect.com/content/newsletters/dev200509.htm Dev Direct provides an authoritative and up-to-date catalog of 1000's of developer tools and software components. The products that we list can help you to reduce delivery times, improve quality and cut costs. We are dedicated to mapping the entire market for developer products to ensure that you get the best tools for the job, every...
10
4664
by: Alex Greem | last post by:
Dear all, Our database (DB2 Workgroup 7.2 FP12) is constantly under heavy load. Most time CPU usage (1 Pentium3 1Ghz) is more 50% busy. We have 3GB RAM memory Our normal workload is 200-300 dyn.sql/s. The action question is there way to eliminate direct I/O? By definition direct I/O is I/O that bypass bufferpools and used for LONG VARCHAR and LOBs data.
1
1296
by: Mike | last post by:
Hi We are new to the world of ASP Development and I have a simple question - we are starting a test development in ASP 2.0 Beta and we are building an application using a Direct Connection to our database which obviously is specific to our own network setup server names etc. My question is when we have finally built our app and then want to deploy our final web based solution to our client how do we/they change the "direct connection"...
0
854
by: jmays | last post by:
Dev Direct November 2005 News Round Up http://www.devdirect.com/content/newsletters/dev200511.htm Dev Direct provides an authoritative and up-to-date catalog of 1000's of developer tools and software components. The products that we list can help you to reduce delivery times, improve quality and cut costs. This month we are pleased to bring new news of 139 releases from 56 publishers. You can track the news as it happens with our...
3
1954
by: mike | last post by:
I added a linked server successfully; but the only tables accessible are only the system tables! I do have all the rights on both servers (Windows & SQL server). All the non system tables are designated as DBO. Strange thing is that I was able to access the non system tables only from the query analyzer (not from the SQL Manager tree) by using the following script:
0
1625
by: IT Recruiter | last post by:
*Very Urgent Rek - SQL Server DBA from Direct Client: Full time* @ New Jersey ***Please send your resumes IMMEDIATELY to nslakshmi@eprocorp.com*** Job Title: SQL Server Developer with Financial Industry knowledge Location: NJ
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.