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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:09:16+00:00 2026-05-19T12:09:16+00:00

I have a C++ application where the delete function is slow to run. What

  • 0

I have a C++ application where the “delete” function is slow to run. What might cause this and where should I begin my search for a solution?

Background:

This C++ code is in an ARX file running inside of AutoCAD, which is basically just a DLL.

The specific computer where delete is slow is running AutoCAD 2011, Windows 7, 64-bit. ARX’s for AutoCAD 2011 have to be compiled using Visual Studio 2008 Service Pack 1.

The computer with the problem is a customer’s computer. It does not have any version of Visual Studio installed on it.

On my development computer, the code does not have any problem in AutoCAD 2011.

To test, I have some code that deletes a linked list. On the computer with the problem, it takes 0.7 seconds to delete the list. On the computers and configurations without the problem, the same code takes 0.02 seconds. The specific times are not important–the large different between the two numbers is.

I made sure to be running the same version of the code on both computers, so it is not a release versus debug build problem.

  • 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-19T12:09:17+00:00Added an answer on May 19, 2026 at 12:09 pm

    Roughly in the order I’d check them:

    • Other plugins: could that behavior caused by other ARX files? Can they be disabled on bad system?
    • PerfMon: Check if soft/hard page faults or cache misses peak during your delete (I hope you can set that up on the customers computer).
    • HeapQueryInformation: same values in good/bad environment?
    • Heap Lock: Could some other thread be highly active in the background, holding tight to the heap’s lock? You could test by wrapping the loop in HeapLock / HeapUnlock (and time inside the lock, of course).
    • Hooks: Could the respective code be hooked? (e.g. a 3rd party app hooking into the C++/Win32 Heap functions to do whatever it wants to do)
    • Grasping at straws: Do the respective new‘s take unusually long? How are the individual delete times distributed?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP application, which has a delete function on one of the
In my application I have written the code to delete the directory from drive
I have a delete statement that's going against one of my core application tables.
I have an application which really should be installed, but does work fine when
I have the following Delete confirmation code using jquery. The issue is that it
I have application like where i can create dynamic tabs. and delete cross bar
I have a application with many dialogs and created a function to open a
In my C++ Windows application, I have a function that is supposed to allow
I have an application that sends messages to an external web service. I build
We have an application with a good amount of jQuery JSON calls to server

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.