win  32 - 1400 invalid windows Handle

Posted on 2001-08-05
Last Modified: 2010-04-06

When i"m exit my application i got strange error

win  32 - 1400 invalid windows Handle

why ?
Question by:asi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Expert Comment

ID: 6353922
Hi Asi!

Is it an exception or an error box? Try to go through your program step by step with the IDE debugger.

Regards, Madshi.

Author Comment

ID: 6353940
error box after the FormDestroy finished
LVL 20

Accepted Solution

Madshi earned 50 total points
ID: 6354011
Difficult thing. The only thing I can suggest is this: Compile your project with debug units (see project options) on. This case the debugger can also go through Borland's units (e.g. forms.pas etc) step by step. You'll have to dig and fine the location, where the box is shown. Then you can look at the callstack (see debug menu). Perhaps you'll then find the reason for the error box. You'll have to play Sherlock Holmes...   :-(

Regards, Madshi.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 11

Expert Comment

ID: 6355454
This sounds as if you mess around with window handles inside Delphi components.
Concentrate on the changed handles.

Expert Comment

ID: 6362842
Hi Madhsi,

I have the same problem when I handle with threads and there's something wrong in the thread. Somehow the resource interfere - I think - and this happens a lot when I access a TTreeView in my thread.

Good luck,
LVL 20

Expert Comment

ID: 6362854
Hi Martin!

>> and this happens a lot when I access a TTreeView in my thread

Fact is that the VCL is not thread safe (shame on Borland). That means you should not access VCL components from other threads than the main thread. You can go around this problem by using pure win32 APIs for updating your tree view.

Regards, Madshi.

Expert Comment

ID: 6844656
Question(s) below appears to have been abandoned. ADMINISTRATION HAS BEEN ADVISED AND WILL BE CONTACTING YOU SHORTLY.  There are a total of 57 open questions for you, any not shown here have ZERO comments added, so you can delete them directly.

Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.

To view your locked questions, please click the following link(s) and evaluate the proposed answer.

------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.
Thank you everyone.
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.

Expert Comment

ID: 6887781
Admin notified of User neglect. Force-accepted by
Community Support Moderator
Experts Exchange

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question