Delphi application with Twebbrowser not out of the process list?

Asked

Viewed 463 times

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 the memory that is stuck, i can not open more than one instance in this application, the project I will attach is just an example to show that the problem is Twebbrowser

Example link: http://mvsoftware.com.br/downloads/TesteWebBrowser.rar

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

  • on which screen gives error? after login? you closed all tables and used Application.Terminate; to finish? it displays some "access Violation? "

  • Because it is Diego, that’s the problem, there is no error, it simply closes the application but it gets in the list of windows processes... I already lost a day trying to figure out the problem and nothing.

  • In the example I sent the link has the compiled executable run will see what I’m talking about.

  • I’m here to test.. =(

  • blz... but it must be some Twebbrowser bug because of the same problem in Delphi XE and XE6

  • what operating system Voce is using there? pq here is not getting in memory no, the application is opening and closing and no staying in memory..

  • Strange, it seems to me that this started a little while ago... will be some windows update? I’m using Windows 10

Show 3 more comments

2 answers

1

My friend good morning! I am with 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 ever tested on another machine? One help I can provide you is to download Procmon from Sysinternals https://docs.microsoft.com/en-us/sysinternals/downloads/procmon filter only by its application and check the behavior, see if it is "grabbed" trying to close some file or something like that. I suggest testing also on a VM. I was able to simulate the locked application when I launched an Exception in your application’s Formclose. See if this cannot be happening there in your environment, put Try .. except empty only as a test.

  • Um, good morning Diegomedeiros, I’ll do the tests to see, thanks for the tip

  • tried every way but unfortunately I could not solve the problem, so I looked for an alternative solution, may not be the most correct, but this working we will see until when, when finalizing the application I am killing the process with this function, follow the link https://answall.com/questions/88611/como-matar-processos-com-o-delphi

-1

Place this line in the event FormCloseQuery:

WebBrowser.Navigate("about:blank")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.