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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:15:28+00:00 2026-05-26T06:15:28+00:00

I solved a bug today after almost five weeks of effort. What was happening

  • 0

I solved a bug today after almost five weeks of effort. What was happening was the CPU on the client machine was spiking (at 50 to 100 percent) after I disposed of a JDialog box twice in a row.

I actually disposed of it in the object and then in the method that created the object, a stupid bug. It took me a while to find it because instead of causing a null pointer exception, I would see in process explorer lots of CSWITCH Deltas associated with MSVCR71.dll.

Using a profiler led me to the right solution.
My questions:

  1. Why didn’t I get a null pointer exception?

  2. What was the connection between the high CPU and the CSWITCH Deltas?

  3. Why would trying to dispose a dialog box twice cause this?

Thanks,

Elliott

  • 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-26T06:15:28+00:00Added an answer on May 26, 2026 at 6:15 am

    The heavyweight peer Window that is the parent of the JDialog is managed by the host operating system.

    1. There is no null pointer exception because that is in Java, not the host OS.

    2. The connection lies in dispose(), which communicates with the host OS via JNI.

    3. I suspect, but cannot prove, that the affected .dll is to blame.

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

Sidebar

Related Questions

SOLVED: Crap... why is it always you figure something out right AFTER you finally
[ Solved , it seems that there was some bug affecting Alfresco 3.3.0, which
UPDATE (5/21/2010) SUCCESS! So after MUCH $head->desk()'ing, I've solved it. Remember kids, be wary
Since my other bug got solved, I'm posting a new question for this bug.
SOLVED (I think): Set ASIHTTPRequest delegate/NSOperationQueue delegate to nil after the vc is popped
I have stumbled upon an interesting problem/bug that I eventually solved, but the solution
I have almost solved a huge problem with png files and transparency in IE
Solved Hi currently im using SimpleXLSX to parse the xlsx (excel file), all the
[SOLVED] See my answer below. I am trying to use stringstream (named ss) to
Solved I actually found out what is going on here. Turns out it was

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.