Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

FastMM has detected an attempt to use an interface of a freed object

Post Reply
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: FastMM has detected an attempt to use an interface of a freed object

Post by salvadordf »

Thanks Dima!

I'll take a look as soon as I can.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: FastMM has detected an attempt to use an interface of a freed object

Post by salvadordf »

Hi,

I just took a quick look at your code. I haven't tested it but I can see that you use TChromium in OSR mode.

If you want to have several tabs with browsers in OSR mode in the same application you need to enable a timer with a 1 or 2 seconds delay in the OnBeforeClose event before destroying the tab.

If you use TChromium in normal mode you don't need that timer, that's why the MDIBrowser and ToolBoxBrowser use the normal TChromium mode.

I would suggest you to use the MDIBrowser or ToolBoxBrowser demos as a base to create your application.
Post Reply