Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot change visible in onshow or onhide

Status
Not open for further replies.

geoclock

Programmer
Feb 22, 2005
6
US
My large delphi 1 program occasionally gets the fatal error "cannot change visible in onshow or onhide" soon after startup. I do not directly manipulate the visible property, nor do I override the onshow or onhide event handlers. I have eliminated this problem on my own HW (just by rearranging code) but others still report the problem. I do not have a clue as to what causes this or what I am doing wrong! Any suggestions (based on knowledge, please)?
 
How soon after startup?

One thing you can do is to override the OnAppException Code, and add a breakpoint in this procedure.
Then you can check, by using Call Stack, the procedure who led you there.

See my answer in this thread:
Note, all autocreated form's constructor is fired upon application start. The error might be in one of theese.


KungTure-RX.jpg

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top