473,606 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DirectX animation warning when running inside visual studio

I was wondering if someone could tell me why I get this message and how
to prevent it. If I hit continue, it runs fine, but want to know what I
am doing wrong so I won't get this error in the future. also what is
the file Clock.vshost.ex e; my application is Clock.exe.

Z.K.
'Clock.vshost.e xe' (Managed): Loaded 'C:\Documents and
Settings\Super_ Wizard\My Documents\Visua l Studio
2005\Projects\C lock\bin\Releas e\Clock.exe', Symbols loaded.
Managed Debugging Assistant 'LoaderLock' has detected a problem in
'C:\Documents and Settings\ssssss s\My Documents\Visua l Studio
2005\Projects\C lock\bin\Releas e\Clock.vshost. exe'.
Additional Information: 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.


Here is the code:

private void EnableBtn_Click (object sender, EventArgs e)
{
//create the video object
Microsoft.Direc tX.AudioVideoPl ayback.Video video;

//load alarm avi file
video = new
microsoft.Direc tX.AudioVideoPl ayback.Video("C :\\Documents and
Settings\\Super _Wizard\\My Documents\\Visu al Studio
2005\\Projects\ \Clock\\bin\\De bug\\bell_t.avi ");

//set the System.Windows. Forms.Control to play it in (e.g a
panel)
video.Owner = alarmAnimatePan el;

//Play the video (put this in a buttons click event)
video.Play();

}
Aug 24 '08 #1
2 2305
On Sun, 24 Aug 2008 16:51:07 -0700, Z.K. <no****@nospam. netwrote:
I was wondering if someone could tell me why I get this message and how
to prevent it. If I hit continue, it runs fine, but want to know what I
am doing wrong so I won't get this error in the future. also what is
the file Clock.vshost.ex e; my application is Clock.exe.
When you run in the debugger, VS actually hosts your real program in a
sort of wrapper .exe.

As far as the exception goes, if you Google for the exception and DirectX,
you'll see that others have had the same issue (including myself). As far
as I can tell, it's a benign error. Probably a bug in the DirectX/managed
wrapper but I haven't had it cause any trouble and saw at least one person
who heard from the actual DirectX team that it's not a problem.

Note that the exception is actually a "Managed Debugging Assistant" thing,
so you'll only ever see it when you run the program in the debugger. I
just wound up turning the LoaderLock MDA off under the Debug settings for
Visual Studio. I figure that if I ever violate the LoaderLock MDA rules
in a situation when it matters, I'll know soon enough because my program
will deadlock. :)

Pete
Aug 25 '08 #2
Peter Duniho wrote:
On Sun, 24 Aug 2008 16:51:07 -0700, Z.K. <no****@nospam. netwrote:
>I was wondering if someone could tell me why I get this message and
how to prevent it. If I hit continue, it runs fine, but want to know
what I am doing wrong so I won't get this error in the future. also
what is the file Clock.vshost.ex e; my application is Clock.exe.

When you run in the debugger, VS actually hosts your real program in a
sort of wrapper .exe.

As far as the exception goes, if you Google for the exception and
DirectX, you'll see that others have had the same issue (including
myself). As far as I can tell, it's a benign error. Probably a bug in
the DirectX/managed wrapper but I haven't had it cause any trouble and
saw at least one person who heard from the actual DirectX team that it's
not a problem.

Note that the exception is actually a "Managed Debugging Assistant"
thing, so you'll only ever see it when you run the program in the
debugger. I just wound up turning the LoaderLock MDA off under the
Debug settings for Visual Studio. I figure that if I ever violate the
LoaderLock MDA rules in a situation when it matters, I'll know soon
enough because my program will deadlock. :)

Pete

That's good to know.

Thanks,

Z.K.
Aug 25 '08 #3

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

Similar topics

1
1150
by: Leon | last post by:
How to listen to user's interaction with visual studio.Net IDE? For example, how do I know when user has clicked on the compile button. I would like to interact with visual studio IDE (the editor for VB, C++ .Net, C#.Net...etc)
2
1320
by: Andreas Klemt | last post by:
Hello, for what is the label good when programming in visual studio like this: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1: If Page.IsPostBack Then DoThis() End If
4
1516
by: Richard Bell | last post by:
I'm new to visual studio. Is there an easy way to 'snap shot' a copy of a project from inside visual studio? Thanks
3
2764
by: Rob Nicholson | last post by:
How do you determine if a program is running in the Visual Studio IDE/debugger as opposed to standalone? We often include support files in the same folder as the executable and would so something like: Dim SupportFile As String SupportFile = Application.StartupPath & "\SupportFile.txt" But of course this fails when running in the IDE as the executable is in the BIN folder so we need to do something like this:
1
1553
by: uncah91 | last post by:
I am runnning some very simple performance tests using a vb.net winform to invoke a vb.net webservice. The webservice simply returns a string literal. I invoke the service 1000 times in a row and note some timestamps for reporting at the end of the test. When I run this using play in VS, the test takes ~16 seconds. When I build the exe and run it, it takes ~4 minutes.
9
7777
by: Michael.Suarez | last post by:
Suppose I have a program that prompts you with a dialogbox to enter a password. If you get the password correct, it allows you into the program, else it kills the program. Suppose that when I am in Visual Studio, running the program in debug mode, i want to bypass the password prompt because if i am the developer, i am definately allowed to use the program. I assumed that I could use the this.DesignMode property while in my main...
1
2258
by: mjobbe | last post by:
Hi, I'm creating an MSI for a client app using a Visual Studio Setup Project. I'm trying to detect if Internet Explorer is running on the target computer before I start the installation. How do I go about detecting this? Thanks.
4
5618
by: linda.chen | last post by:
Greeting. We have a 6 year old application, which contains both managed (C#) and unmanaged code (C++). For all the new components we try to create them in C#. We build all projects (both C++ and C# code) into a solution from visual studio .net 2003. In out solution we have a project implementing a pretty complicated math algorithm. This component usally work very well. But in a couple weeks ago, a user found a case that our...
2
1936
by: Microsoft Newsserver | last post by:
Hi, we have a progress bar which is revealsed before the postback occurs. basically, we add an onclick attribute to the submit button which reveals the progress.gif. This has the effect of showing progress while we are waiting for the back to come page from the server. Now, when we lanch the application from within visual studio this works fine, when deployed however, either locally on IIS or remotely on IIS, the anigif freezes on...
0
8036
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
8448
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8126
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8317
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...
0
6796
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5470
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3948
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
4010
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1313
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.