Skip to content

Commit 6b18ea4

Browse files
committed
Using CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) to be compatible with Java 17.
1 parent 982f21c commit 6b18ea4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
cmake_minimum_required(VERSION 3.1)
1414
project (openpnp-capture)
15-
set(OPENPNP_CAPTURE_LIB_VERSION "0.0.26" CACHE STRING "openpnp-capture library version")
15+
set(OPENPNP_CAPTURE_LIB_VERSION "0.0.28" CACHE STRING "openpnp-capture library version")
1616
set(OPENPNP_CAPTURE_LIB_SOVERSION "0" CACHE STRING "openpnp-capture library soversion")
1717

1818
# make sure the libjpegturbo is compiled with the

win/platformcontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Context* createPlatformContext()
5050
PlatformContext::PlatformContext() : Context()
5151
{
5252
HRESULT hr;
53-
hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
53+
hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
5454
if (hr != S_OK)
5555
{
5656
// This might happen when another part of the program

0 commit comments

Comments
 (0)