OpenCv static build freezes while open by two applications windows 10

asked 2019-03-21 09:25:31 -0600

Hello everyone I'm having trouble while trying to run two dlls that uses opencv in a windows 10 operational system.

  • The problem happens when both dlls run sequentially in windows 10 x64, however it was tested in a windows 7 x64 and they work fine.
  • Both dlls were compiled using staticopencv 3.4.5 lib.
  • I have tested running one dll separated than the other however and both work fine.
  • When I run both dlls sequentially the second application freezes.
  • Both dlls are threadsafe

I have tested simulating the procedure in a python script, where I call both dlls sequentially, the last thing that it is printed on screen is this : [ INFO: 0] Initialize OpenCL runtime... [ INFO: 0] Initialize OpenCL runtime...

Appreciate any help.

edit retag flag offensive close merge delete

Comments

  • I have tested running one dll separated than the other however and both work fine.
  • When I run both dlls sequentially the second application freezes.

where is the difference ? did you mean "parallel", not "sequential" ?

  • Both dlls are threadsafe

how on earth do you know ?

[ INFO: 0] Initialize OpenCL runtime... [ INFO: 0] Initialize OpenCL

great, now you have 2 processes fighting for the same "singleton" openCL resource

berak gravatar imageberak ( 2019-03-22 04:38:44 -0600 )edit