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
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.
Independent Software Vendors: 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 124
Create a path if not exists 7 106
Firemonkey webbrowser scrollbars ? 1 57
Delphi Seattle StructureView color 1 21
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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