Skip to content

Commit 8badbba

Browse files
authored
Merge pull request #68 from markmaker/fix/com-apartmentthreaded
Fix / Use CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)
2 parents 982f21c + 6b18ea4 commit 8badbba

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)