You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Chuck Rolke (JIRA)" <qp...@incubator.apache.org> on 2010/04/29 21:14:57 UTC
[jira] Commented: (QPID-2088) any service on windows vista linking
with c++ qpid client (common & clinet) and calling CoInitializeEx to use
COM fails to start with "Error 1053 ..."
[ https://issues.apache.org/jira/browse/QPID-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862361#action_12862361 ]
Chuck Rolke commented on QPID-2088:
-----------------------------------
Is there any evidence in the System event log? There's probably a great clue there.
The skeleton service works on Vista without the qpid dlls?
Are the qpid DLLs co-located in the same directory as the executable?
> any service on windows vista linking with c++ qpid client (common & clinet) and calling CoInitializeEx to use COM fails to start with "Error 1053 ..."
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-2088
> URL: https://issues.apache.org/jira/browse/QPID-2088
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Affects Versions: 0.5
> Environment: Windows Vista
> Reporter: Nicolae Claudius
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> Steps that reproduce the problem:
> 1. Create an skeleton widows service ( with main() , ServiceMain(int argc, char** argv) , InitService() , ControlHandler(DWORD request) )
> i used the template here: http://www.devx.com/cplus/Article/9857
> 2. Add to the linker the qpid libs (common.lib and client.lib) in Project -> Properties -> Linker ( include path and libs )
> 3. Call CoInitializeEx to initialize windows COM with your desired parameters (any of them for our purpose), anywhere in your program (for example in main or servicemain)
> 4. Register the service with the following console command
> sc create your_service_name binPath= "C:\\path_to_your_compiled_exe\your_service.exe"
> 4. Open services.msc from run or console, and start your service (right click -> start)
> *** At this point the service tries to start but after about 2 seconds fails with the error:
> "Error 1053: The service did not respond to the start or control request in a timeley fashion"
> NOTICE
> The error is *only* on Windows Vista, on Windows XP works as desired
> (Notice that you only have to link the libs not necesarily use qpid functions, strange...)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org