Question : Delphi 7 SpeedButton causes crash

We have a system which has been using the same TSpeedButtons for the last 5 years.

In testing an update we find that opening and closing (TSpeedButton)  the program has a fatl crash, we have two error logging systems and neither of them catches the issue.

We have tracked it down to the use of TSpeedButton, all the code has been commented out and even just having fmForm.Close in the OnClick event the system still crashes.

Changing to a TBitBtn and we can go in and out of the form 100 times and still no crash.

Any suggestions as what the issue might be, the system has worked fine for a number of years.

We load programatically the glyph but again this code has been OK for a long time.

Answer : Delphi 7 SpeedButton causes crash

a)   did you change the Windows version ?  

b) guess you are using already madshi (ww.madshi.org) ??

c)    can you provide a min.code fragment to test it here at EE  ??

Random Solutions  
 
programming4us programming4us