Skip to content

Commit

Permalink
Merge pull request #68 from markmaker/fix/com-apartmentthreaded
Browse files Browse the repository at this point in the history
Fix / Use CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)
  • Loading branch information
vonnieda authored May 19, 2023
2 parents 982f21c + 6b18ea4 commit 8badbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

cmake_minimum_required(VERSION 3.1)
project (openpnp-capture)
set(OPENPNP_CAPTURE_LIB_VERSION "0.0.26" CACHE STRING "openpnp-capture library version")
set(OPENPNP_CAPTURE_LIB_VERSION "0.0.28" CACHE STRING "openpnp-capture library version")
set(OPENPNP_CAPTURE_LIB_SOVERSION "0" CACHE STRING "openpnp-capture library soversion")

# make sure the libjpegturbo is compiled with the
Expand Down
2 changes: 1 addition & 1 deletion win/platformcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Context* createPlatformContext()
PlatformContext::PlatformContext() : Context()
{
HRESULT hr;
hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
if (hr != S_OK)
{
// This might happen when another part of the program
Expand Down

0 comments on commit 8badbba

Please sign in to comment.