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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:28:55+00:00 2026-05-16T07:28:55+00:00

I have written a small program using Borland’s C++ builder, and along the way,

  • 0

I have written a small program using Borland’s C++ builder, and along the way, everything seemed fine. My program has a map window and a table window, and when a user presses a button, a long process is started that reads in all the map and table information and then displays that. Every time i ran it through the debugger, I had no issues. Then today, I decided to test it without running it through the debugger. To my horror, The program reads in the map information and then displays it on the paintbox canvas without a problem, but when it loads the information for the grid, the map gets erased!!! It appears to happen during the load phase for the table. this takes about 4 seconds, and during which time, the window tells me that it isnt responding. This is when the map gets erased. Anyone have any ideas on why this is happening? Its driving me nuts, and I dont really understand whats going on under the hood here.

UPDATE:
I have fixed the problem to some degree. I was poking around and found this: Avoiding "(Not Responding)" label in windows while processing lots of data in one lump
I added the code to run once in the middle of the data read in for the table. this fixed my problems. however, I was wondering if anyone knows why this is the case? why does my program going unresponsive cause my canvases to be erased?

  • 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-16T07:28:56+00:00Added an answer on May 16, 2026 at 7:28 am

    Marcus Junglas wrote a detailed explanation of the problem, which affects both Delphi and C++Builder.

    When programming an event handler in
    Delphi (like the OnClick event of a
    TButton), there comes the time when
    your application needs to be busy for
    a while, e.g. the code needs to write
    a big file or compress some data.

    If you do that you’ll notice that your
    application seems to be locked. Your
    form cannot be moved anymore and the
    buttons are showing no sign of life.
    It seems to be crashed.

    The reason is that a Delpi application
    is single threaded. The code you are
    writing represents just a bunch of
    procedures which are called by
    Delphi’s main thread whenever an event
    occured. The rest of the time the main
    thread is handling system messages and
    other things like form and component
    handling functions.

    So, if you don’t finish your event
    handling by doing some lengthy work,
    you will prevent the application to
    handle those messages.

    You can reduce the problem by calling Application->ProcessMessages(), while loading your map data, however I recomend using a separate thread to load the data.

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

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 498k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When are you doing that? is it in a module… May 16, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer It's hard to tell where the bug is with only… May 16, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer This should work without throwing an error. if (typeof getDataSource… May 16, 2026 at 12:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have written a small HTTP server and everything is working fine locally, but
I have written a small program and compiled it under Solaris/Linux platform to measure
I have written a small program , to understand how futures work in c++0x.
Why it is not allowed to overload = using friend function? I have written
Source of the problem -Accelerated C++, problem 8-5 I've written a small program that
I have written a C program to get all the possible combinations of a
I'm using Visual Studio 2008. I'm aware that std::vector has bounds checking with the
I created a small program, as follows: #include <math.h> #include <stdio.h> #include <unistd.h> int
I have a simple programs for socket client and server its not working over
I'm just starting to learn how network programming in C works, and I've written

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.