Simple OpenCV applicaton hangs after exe copied [closed]

asked 2015-11-16 12:31:56 -0600

_AdT_ gravatar image

updated 2015-11-18 07:26:18 -0600

I am running simple tutorial application compiled under Visual Studio 2013. It runs fine run from the command line. Unfortunately, when I copy the exe file to another location application hangs. There are problems even with the killing process with task manager. Since it is strange that I question whether anyone encountered a similar problem and managed to solve it.

Thank you for your suggestions . The problem solved itself the next day. Copying the application is working properly and I was not able to repeat this error. The behavior was strange because I did everything including copying DLLs to the application folder .

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2015-11-18 08:19:49.792911

Comments

2

have you copied openCV's DLL with you application ? messages from the console ? are all expected inputs accessible from the new localtion ?

pklab gravatar imagepklab ( 2015-11-17 06:09:27 -0600 )edit

If you want to share around your executable, you will need to build your application and library statically so that it becomes independent of application resources.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-17 09:31:18 -0600 )edit
1

The dependecy walker is a great tool for Windows to identify what dlls you're missing

LorenaGdL gravatar imageLorenaGdL ( 2015-11-17 09:44:58 -0600 )edit

Just closing topics seems not a good way to solve it. Since this helped, could @_AdT_ accept this answer as the correct one?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-18 07:57:44 -0600 )edit

@StevenPuttemans Sorry. I closed it because he updated saying he solved the issue by himself. It didn't seem this needed an answer anymore. I mean, I don't think my answer is the one to accept, it is just that he needs no answer :)

LorenaGdL gravatar imageLorenaGdL ( 2015-11-18 08:13:05 -0600 )edit

Ow I misunderstood it :D Sorry for that!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-18 08:19:23 -0600 )edit

Fixed it :D

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-18 08:20:11 -0600 )edit