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 7428959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:53:37+00:00 2026-05-29T08:53:37+00:00

In beta testing a new release of my software, several users reported exceptions when

  • 0

In beta testing a new release of my software, several users reported exceptions when running the app. In both cases it’s: “The application was unable to start correctly (0xc0000142)”. I’ve also seen it as 0xc0000005. I found a local system with this error as well and found when running it under a debugger, “datamngr.dll” had an access violation and failed allocating on the heap. I quickly discovered “datamngr.dll” is spyware and is being loaded as it was in the system’s AppInit.

Once I cleared the AppInit reg key, this problem went away. I checked it out via Process Monitor, and any time this DLL was being injected, my application crashed. I thought it was just badly written spyware, but I’ve since found other DLLs doing the same thing (such as acaptuser32.dll, which is legitimate software). What’s odd to me is the previous version of my software does not crash. There’s been many, many changes between the two versions so it’s hard to say what it is.

Where do I start here? Some online exploring shows apps like Firefox replace LoadLibrary to blacklist DLLs from being injected. But I’d like to start from the more basic — why is the application now crashing when it didn’t before?

I realize this is very vague, but that’s pretty much unavoidable. I’m hoping there’s something obvious in the properties for the project I’m doing incorrectly. I’ve tried with ASLR on and off, DEP on and off…I’ve tried delay-loading user32.dll and manually loading it via LoadLibrary (with SetErrorMode set to ignore errors), and nothing is working for me. We’ve seen this happen on Windows XP and Windows 7 (32 and 64-bit).

Any pointers on where to start would be greatly appreciated. I’ll provide as much information as I can if anyone needs other details.

Cheers

  • 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-29T08:53:38+00:00Added an answer on May 29, 2026 at 8:53 am

    I did find a fix. I used Process Monitor to compare the order of DLL loading in versions with and without DLL injectors. One thing that then struck me is the C++ DLL I have which loads .NET (via LoadLibrary) was being included first. Because the CLR is such a large beast, I decided to try delay-loading that DLL and all .NET DLLs. That’s all it took – my problem has gone away.

    So it’s as Raymond Chen said — the ordering is fragile. If other people encounter this issue, I suggest just tweaking your DLL loading order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iPhone app and doing ad-hoc distribution for beta testing. My users
I'm planning to distribute an application ad hoc for beta testing. I have created
I'm currently beta testing an application I'm working on. I've entered data into this
I'm testing the new ApiController in asp.net mvc 4 beta but when I try
I'd like to start doing limited beta testing of an iOS app. I know
My app is in beta, and I've been doing limited testing of a feature
I was beta-testing my iPhone App (not through xcode), and the app crashed. I
I am beta testing an application that includes a Firefox extension as one component.
I submitted a WP7 app for beta testing, I added some live ids and
After adding the application in the Marketplace for beta testing, when I try to

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.