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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Leak OleControl with Ajax Website 2

Status
Not open for further replies.

WeirdScience

Programmer
Aug 22, 2006
13
NL
All,

I hope there's somebody who can help me out here.

The following happens.

We have a form with an olecontrol in which a .net ajax website is loaded.
When this form is loaded our vfp application consumes ± 29 Mb Memory more than when the form is not loaded (± 15Mb).

After we do a thisform.Release the memory decreases with approx 6 Mb. Next time the form is opened the memory increases again with ± 15 Mb and so on.

So if the form is opened multiple times the memory has been increased until ± 150 Mb.

How can I make sure the memory is release.

The oleControl is included in the form and the (modal) form is loaded with a Do FORM.

Who can help?

Regards,
Guido

--------------------------
Foxpro.. Why-oh-why?
 
What OLE control? Most probably the Webbrowser control? Foxpro does rather not do delayed garbage collection, there is SYS(1104) purges the memory cacche, but rather is for table caching and buffers.

It may be anything within the webbrowser causing this memory leak. See if there is some cleanup code in the ajax framework used you maybe call before destroying the form and it's webbrowser control.

Maybe see, if you have the same memory leak when using the site with IE or any other browser without your application.

Bye, Olaf.
 
Dave,

This solution works..

Thanks

Regards,
Guido

--------------------------
Foxpro.. Why-oh-why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top