Delphi application with TWebBrowser does not leave the list of processes?

0

I made a test program to show colleagues what is happening, I'm using the TWebBrowser component to show a text works in a good, it happens that when I close the application it does not leave the list of processes generating a disorder, because beyond memory which is stuck, I can not open more than one instance in that application, the project I'm going to attach is just an example to show that the problem is TWebBrowser

Link to the example: link

I forgot, if you comment the line that loads the text in WebBrowser will see that the application normally close then the conclusion is that the problem comes from WebBrowser

    
asked by anonymous 21.02.2018 / 19:09

2 answers

1

My friend, good morning! I have Windows 10 100% original and updated here too and your application ran perfectly and after it was finished, it left the list of windows processes. Have you tried another machine? One help I can give you is to download ProcMon from Sysinternals link filter only by your application and check the behavior, see if she is "caught" trying to close some file or something like that. I suggest testing also on a VM. I was able to simulate the crashed application when I threw an exception in the FormClose of your application. See if this can not be happening there in your environment, put try .. except empty just as test.

    
24.02.2018 / 18:07
-1

Place this line in the event FormCloseQuery :

WebBrowser.Navigate("about:blank")
    
19.07.2018 / 16:13