Reply to myself, and as an update
As idotic as I am, I am trying to solve this problem....My idea was simply close these files, if they cause the problem.
Destroying or freeing, or whatever on the TOpendialog does not work.. And more experiments definitely leads me to the standpoint that after opening a filedialog, the VLCPlayer crashes at certain unknown moments....
So, how to find the still remaining open files?
Based on the code of RRUZ (
https://stackoverflow.com/questions/157 ... pplication) I wrote a simple application with an opendialog that can be executed or not.
This is the difference of open handles between:
Situation 1: before opening the openfiledialog
Situation 2: after opening the openfiledialog, and closing by selecting Cancel
Next step will be to try to close some of these handles (at least the file handles) and see if that stabilises the crashing of the VLCPlayer...No time more now, too tired after so many hours behind the screen....
Regards!
Edit: there was more, but did not fit in message...
So here are the results:
Situation 1:
Handle: 320 Name: \Sessions\1\BaseNamedObjects typenum: 3 typename: Directory
Handle: 352 Name: \Sessions\1\Windows\WindowStations\WinSta0 typenum: 24 typename: WindowStation
Handle: 356 Name: \Default typenum: 25 typename: Desktop
Handle: 360 Name: \Sessions\1\Windows\WindowStations\WinSta0 typenum: 24 typename: WindowStation
Handle: 568 Name: \Sessions\1\BaseNamedObjects\SM0
168:WilStaging_02 typenum: 17 typename: Mutant
Handle: 580 Name: \Sessions\1\BaseNamedObjects\SM0
168:WilStaging_02_p0 typenum: 19 typename: Semaphore
Handle: 768 Name: \BaseNamedObjects\[CoreUI]-PID(1344)-TID(13500) 44a697c9-5e40-4b76-b16a-5646c69ca68e typenum: 46 typename: ALPC Port
Handle: 796 Name: \Sessions\1\BaseNamedObjects\SM0
64:WilError_02_p0 typenum: 19 typename: Semaphore
Handle: 800 Name: \Sessions\1\BaseNamedObjects\SM0
64:WilError_02 typenum: 17 typename: Mutant
Situation 2:
Handle: 320 Name: \Sessions\1\BaseNamedObjects typenum: 3 typename: Directory
Handle: 352 Name: \Sessions\1\Windows\WindowStations\WinSta0 typenum: 24 typename: WindowStation
Handle: 356 Name: \Default typenum: 25 typename: Desktop
Handle: 360 Name: \Sessions\1\Windows\WindowStations\WinSta0 typenum: 24 typename: WindowStation
Handle: 568 Name: \Sessions\1\BaseNamedObjects\SM0
168:WilStaging_02 typenum: 17 typename: Mutant
Handle: 580 Name: \Sessions\1\BaseNamedObjects\SM0
168:WilStaging_02_p0 typenum: 19 typename: Semaphore
Handle: 768 Name: \BaseNamedObjects\[CoreUI]-PID(1344)-TID(13500) 44a697c9-5e40-4b76-b16a-5646c69ca68e typenum: 46 typename: ALPC Port
Handle: 796 Name: \Sessions\1\BaseNamedObjects\SM0
64:WilError_02_p0 typenum: 19 typename: Semaphore
Handle: 800 Name: \Sessions\1\BaseNamedObjects\SM0
64:WilError_02 typenum: 17 typename: Mutant
Handle: 1052 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_idx.db!rwWriterMutex typenum: 17 typename: Mutant
Handle: 1056 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_idx.db!rwWriterEvent typenum: 16 typename: Event
Handle: 1060 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_16.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1064 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_32.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1068 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_48.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1072 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_96.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1076 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_256.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1080 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_768.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1084 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_1280.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1088 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_1920.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1092 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_2560.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1096 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_sr.db!dfMaintainer typenum: 17 typename: Mutant
Handle: 1100 Name: \BaseNamedObjects\C::Users:johnz:AppData:Local:Microsoft:Windows:Explorer:iconcache_wide.db!dfMaintainer