Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a window service in c++ that runs fine until I use functions from a library I received from a friend. It will install, but refuses to start giving me a error 1067. I'm not sure if it's me or the library. I'm new to c++, visual studio and mfc so it could be anything. Any ideas?

What I have tried:

I made sure I was including the library correctly and it appears to be include as it doesn't give me any errors when building. When I comment out the code with the library functions, it runs. I also made sure it was the x64 as I'm making this on a x64 platform. I've also messed around with the properties of the project, but nothing seems to work.
Posted
Updated 23-Jun-17 5:06am
Comments
F-ES Sitecore 23-Jun-17 10:56am    
Have you googled the error message and tried some of the suggestions?

1 solution

This can't be answered without more details.

But it looks like there is some problem with the library code which lets your service terminate (error 1067 is ERROR_PROCESS_ABORTED). That means it is not a build problem but a code problem (runtime failure).

You can try to use the library within a normal (command line) application calling the same methods to see if it fails there too. If so, you can debug that application to find out what happens. For such debugging it would be good to have the library sources or at least a debug version of the DLL.

If there are no failures when using the library from a command line application, the problem may be sourced by calling functions from within the library that require resources that are not present with services like a desktop / GUI, or a logged in user.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900