🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #135

When might a frm.Hide NOT work ?

#135
From: Tim R
Date: Fri, 16 Jun 2006 00:30
22 lines
1821 bytes
we have an application where a parent form calls a non-modal child form (ie: 
childform.show; ). In this childform, the user can scan forms which may be 
viewed.
The OK button will then save this image (by calling an appserver method via 
Tsocketconnection), then do a self.hide( );

Sometimes, the child form does NOT hide, which is very irritating for our 
client. Of course, this does not happen in run-time, so I added an audit log 
text file with a msg before and after the hide. Both msgs get printed --  
according to Delphi, this form is invisible.
As well, the only way to close it, is to close the parent form (where the 
Close method has a child.close; child.free calls), the parent still has a 
pointer at this child form !

The question is, what might cause this child form to intermittently NOT hide 
!? Could the window handle of this form be 'lost' while running the 
appserver method ?

If anyone has any ideas at all, I'd love to hear it

Regards
Tim 
Technical Details
Message-ID: <4491fb96$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,c37afbab50f078d7,start
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tim R" <treekie@telus.net>
Newsgroups: borland.public.delphi.winforms.controls.using
Subject: When might a frm.Hide NOT work ?
Date: Thu, 15 Jun 2006 17:30:11 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 154.5.134.241
Message-ID: <4491fb96$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1150417814 154.5.134.241 (15 Jun 2006 17:30:14 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail