Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:18:12+00:00 2026-05-16T22:18:12+00:00

In VS 2008 when I try to step into the return new Triangles(element, mesh);

  • 0

In VS 2008 when I try to step into the

return new Triangles(element, mesh);

line, I get the following error the first time

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.

After the first time stepping through the code, I do not get any warnings and everything works great.

In 2010 when I get to the same line, the program hangs on the first time through (just like the warning states can happen in 2008)

There are no DirectX calls that I am aware of around this area. How can I better debug this issue and what do I need to do to resolve it?

Thanks

  • Answer –
    Hopefully this will help some other people. I was able to get my solution in VS 2010 to work like the VS 2008 solution by creating an app.config file.

    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
    </startup>
    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:18:12+00:00Added an answer on May 16, 2026 at 10:18 pm
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
    </startup>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to install a new instance of SQL Server 2008 Express on
I want to give Windows Server 2008 a try as a .NET developer and
When I try to build my projects in Visual Studio 2008, web sites won't
When I try to load a solution in Visual Studio 2008, it immediately closes.
When I try to create a Excel 2007 Workbook project, in Visual Studio 2008,
I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional
For some reason, when I try to install SQL Server 2008 Express , I
I'm doing some tests on a Windows Server 2008. When I try to access
I'm trying to step into a method referenced in an external dll from a
VB 2008. I have several text boxes on a form and I want each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.