Board index » delphi » A Win32 API function failed

A Win32 API function failed

I have a TPageControl with dynamically generated TTabSheets.  Each tab
sheet can contain a lot of stuff.  The page control always gets
constructed OK.  But sometimes an error message stating "A Win32 API
function failed" pops up when switching to another tab in the page
control.

I developed and tested this app with 80MB RAM in NT with no problems;
but when deployed on 24MB Win 95, this error occurs when resources are
low.  But I don't understand why resources get so low (I only get this
problem when switching to another tab in the page control) when dealing
with this control.

Why is this control so resource-intensive?  Any suggestions?

 

Re:A Win32 API function failed


In article <345FC0EF.42FA4...@gt.com>, "Christopher R. Heinrich" <cheinr...@gt.com> wrote:

Quote
>Why is this control so resource-intensive?  Any suggestions?

Have you checked to make sure you don't have a memory leak? Is it possible the
previous tab is not being freed so that as the user selects different tabs all
dynamically created tabs are remaining in memory?

Cheers,

gerald

----------------------------------------------
Gerald Nunn, Toronto, Canada
GExperts, 15 free add-in experts for Delphi
http://www.amano-blick.com/~gnunn/GExperts.htm
----------------------------------------------

Other Threads