[jira] Created: (QPID-2558) client connection.open to a non-broker on qpid 0.6 windows segfaults with: access violation

2010-04-29 Thread Nicolae Claudius (JIRA)
client connection.open to a non-broker on qpid 0.6 windows segfaults with: 
access violation
---

 Key: QPID-2558
 URL: https://issues.apache.org/jira/browse/QPID-2558
 Project: Qpid
  Issue Type: Bug
  Components: C++ Client
Affects Versions: 0.6
 Environment: Microsoft Visual C++ Compiler, Windows Vista
Reporter: Nicolae Claudius


In windows environment, visual studio compiler, make a client like:

Connection c;
try {
// there is no broker running at 10.10.5.51 so an exception should be 
thrown
c.open("10.10.5.51",5672,"my_user","my_password");
} catch (...) {
std::cout << "error" << std::endl;
}

on qpid 0.5 an exception is thrown and catched. ALL OK HERE
on qpid 0.6 the program segfaults with the message:
"Unhandled exception at 0x692eccb9 in testqpid06.exe: 0xC005: Access 
violation reading location 0x."
This error is thrown just after executing the "c.open" line.
On Linux all is OK, the problem is only on Windows.

-- 
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-subscr...@qpid.apache.org



[jira] Updated: (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 ..."

2010-04-29 Thread Nicolae Claudius (JIRA)

 [ 
https://issues.apache.org/jira/browse/QPID-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolae Claudius updated QPID-2088:
---

Description: 
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...)


  was:
Steps that reproduce the problem:
1. Create an skelet widows service ( with main() , ServiceMain(int argc, char** 
argv) , InitService() , ControlHandler(DWORD request) )
i used the themplate 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...)



> 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-subscr...@qpid.apache.org



[jira] Created: (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 ..."

2009-09-09 Thread Nicolae Claudius (JIRA)
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


Steps that reproduce the problem:
1. Create an skelet widows service ( with main() , ServiceMain(int argc, char** 
argv) , InitService() , ControlHandler(DWORD request) )
i used the themplate 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-subscr...@qpid.apache.org