PaslibVLC crash by open iconcache files?
Posted: 15 Nov 2020 02:09
Strange hanging problem with VLC player
In short: Executing a Fileopendialog, and closing it, seems to leave about 8 iconcache files open in a Windows application, and this causes hanging of VLCPlayer in that application.
I am using the VLCPlayer in an application written in Lazarus. Love the VLC player, but I get hanging and access violations now and then. I have already spent many many hours to circumvent these errors, and today I dived into this problem again.
I noticed more errors with a particular set of GoPro files and I examined if I could play them without error in \PasLibVlc_3.0.7\DemoPasLibVlcMediaListPlayer. This worked fine. You can switch and scroll through the files easily without crashing. Then I ported this exct code to my own application but still got hanging...But then, I found out that it only happened after a Fileopendialog had been executed...
After placing an Opendialog in \PasLibVlc_3.0.7\DemoPasLibVlcMediaListPlayer the effect can be noticed. After just opening the dialog, and just pressing cancel, you can see with the Nirsoft tool 'OpenedFilesView'* that several files are still opened by the demoapplication. When now scrolling through the MP4 files, a crash is imminent.
By the way: I have also checked if a standard application leaves these iconcache files opened, and yes Notepad also show this behavior.
Questions are: where to go with this question, does this sound logical and how to solve the problem...
*Tool used to see opened files: https://www.nirsoft.net/utils/opened_files_view.html
Regards
In short: Executing a Fileopendialog, and closing it, seems to leave about 8 iconcache files open in a Windows application, and this causes hanging of VLCPlayer in that application.
I am using the VLCPlayer in an application written in Lazarus. Love the VLC player, but I get hanging and access violations now and then. I have already spent many many hours to circumvent these errors, and today I dived into this problem again.
I noticed more errors with a particular set of GoPro files and I examined if I could play them without error in \PasLibVlc_3.0.7\DemoPasLibVlcMediaListPlayer. This worked fine. You can switch and scroll through the files easily without crashing. Then I ported this exct code to my own application but still got hanging...But then, I found out that it only happened after a Fileopendialog had been executed...
After placing an Opendialog in \PasLibVlc_3.0.7\DemoPasLibVlcMediaListPlayer the effect can be noticed. After just opening the dialog, and just pressing cancel, you can see with the Nirsoft tool 'OpenedFilesView'* that several files are still opened by the demoapplication. When now scrolling through the MP4 files, a crash is imminent.
By the way: I have also checked if a standard application leaves these iconcache files opened, and yes Notepad also show this behavior.
Questions are: where to go with this question, does this sound logical and how to solve the problem...
*Tool used to see opened files: https://www.nirsoft.net/utils/opened_files_view.html
Regards