On Sat, 21 Nov 2020 21:59:28 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> The report of this bug quite outdated so can be closed but I found that in 
> the documentation:
> https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea
> 
>> Because ShellExecute can delegate execution to Shell extensions (data 
>> sources, context menu handlers, verb implementations) that are activated 
>> using Component Object Model (COM), COM should be initialized before 
>> ShellExecute is called. Some Shell extensions require the COM 
>> single-threaded apartment (STA) type. In that case, COM should be 
>> initialized as shown here: CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | 
>> COINIT_DISABLE_OLE1DDE)
> 
> But this CoInitializeEx is missed in the Desktop class. Absent of this 
> initialization caused some other crashes in past, see JDK-6950553 for example:
> https://bugs.openjdk.java.net/browse/JDK-6950553

This pull request has now been integrated.

Changeset: 85269470
Author:    Sergey Bylokhov <s...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/85269470
Stats:     14 lines in 1 file changed: 11 ins; 0 del; 3 mod

6508941: java.awt.Desktop.open causes VM to crash with video files sporadically

Reviewed-by: kizune, aivanov

-------------

PR: https://git.openjdk.java.net/jdk/pull/1369

Reply via email to