You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Максим Харичкин <mv...@mail.ru> on 2007/10/30 16:10:29 UTC
Running CppCalculator
I ask you about C++ Calculator Sample [SCA Native Milestone release 3].
I downloaded and deployed binary release for Windows. Then I ran binary sample - all was ok.
After that I used Visual C++ 2005 for building source sample and started debugging with parameters. The process was broken with
"Unhandled exception at 0x78180312 (msvcr80.dll) in calculator_client.exe: 0xC0000005: Access violation reading location 0xcccccccc."
on line
"Calculator *calcService = (Calculator*) myContext.locateService("CalculatorComponent/CalculatorService");"
and the end of mylogfile.txt was
"...
...
9204:9232 >> tuscany::sca::cpp::CompositeContextImpl::CompositeContextImpl
9204:9232 << tuscany::sca::cpp::CompositeContextImpl::CompositeContextImpl
9204:9232 >> osoa::sca::CompositeContext::CompositeContext
9204:9232 << osoa::sca::CompositeContext::CompositeContext
9204:9232 << osoa::sca::CompositeContext::getCurrent
9204:9232 >> osoa::sca::CompositeContext::locateService
9204:9232 >> tuscany::sca::cpp::CompositeContextImpl::locateService
9204:9232 >> tuscany::sca::model::Composite::findComponentService"
My questions are:
What cause is in this exception?
Hou to compile the c++ sourse sample files?
P.S. Excuse me for my crude english.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
RE: RE: Running CppCalculator
Posted by Brady Johnson <Br...@roguewave.com>.
See my answers below:
Q: How often do subversion appear?
A: Imp not sure what you're asking here. If you're asking how often is subversion updated, then the subversion branch is the latest version of the code. As we make changes and commit them, they are commit directly to the subversion head. Lately the native code hasn't changed much, but hopefully in the near future I will start making several changes detailed here:
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Native+Next+Release+Contents
The actual changes that will be made for M4 will be a subset of those mentioned on this page.
Q: What kind of modification was since the SCA Native Milestone release 3?
A: There have been no major behavioral changes since M3. The biggest change has been the addition of the ant build infrastructure, which allows cross-platform compilation with just one build infrastructure, as opposed to the current use of both VSExpress projects AND automake. There have been some more changes that open the APIs to allow TuscanySCA to be run in a container other than AXIS. You can look through the bug reports, called JIRA, that have been fixed since M3 here:
https://issues.apache.org/jira/browse/TUSCANY
Q: When will Tuscany SCA Native Release M4 appear?
A: We are preparing for the M4 release now. I'm not sure the timeframe, but it should be released in about a month or so.
Q: Why Unhandled exception with msvcr80.dll may be caused with?
A: Its hard to explain what might be causing this. The exception is Unhandled because the CppCalculator client only catches exceptions of type ServiceRuntimeException. Which makes me think that its not a TuscanySCA exception that's being thrown, but probably a crash of some sort. Unfortunately its hard to tell with C++ since there is no base class exception for all exceptions like there is in Java. The CppCalculator client can be seen here:
<TuscanySCASrcRoot>/samples/CppCalculator/sample.calculator.client/CalculatorClient.cpp.
I compiled the M3 version and ran the CppCalculator on Windows without problems. Have you also tried on Linux in case you have some issues with your Windows environment?
Let me know if this answers your questions.
--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com
-----Original Message-----
From: Максим Харичкин [mailto:mv_harichkin@mail.ru]
Sent: Friday, November 02, 2007 2:15 AM
To: Brady Johnson
Subject: Re: RE: Running CppCalculator
And some more questions:
How often do subversion appear?
What kind of modification was since the SCA Native Milestone release 3?
When will Tuscany SCA Native Release M4 appear?
Why Unhandled exception with msvcr80.dll may be caused with?
Thank you very much for you help.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
RE: Running CppCalculator
Posted by Brady Johnson <Br...@roguewave.com>.
Hello,
That version of the source code and sample should compile and run without problems, since the code has not changed for quite some time now. I will download that version of the source code and try to compile and run it myself to see if there is a problem.
You are compiling the code correctly. Have you tried compiling on Linux?
Another option would be to try the latest version of the code, referred to as subversion head. You can compile that version of the code with apache ant.
You can download the latest as follows:
svn co https://svn.apache.org/repos/asf/incubator/tuscany/cpp/sca <your local sdo dir>
svn co https://svn.apache.org/repos/asf/incubator/tuscany/cpp/sca <your local sca dir>
--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com
-----Original Message-----
From: Максим Харичкин [mailto:mv_harichkin@mail.ru]
Sent: Tuesday, October 30, 2007 9:10 AM
To: tuscany-user@ws.apache.org
Subject: Running CppCalculator
I ask you about C++ Calculator Sample [SCA Native Milestone release 3].
I downloaded and deployed binary release for Windows. Then I ran binary sample - all was ok.
After that I used Visual C++ 2005 for building source sample and started debugging with parameters. The process was broken with
"Unhandled exception at 0x78180312 (msvcr80.dll) in calculator_client.exe: 0xC0000005: Access violation reading location 0xcccccccc."
on line
"Calculator *calcService = (Calculator*) myContext.locateService("CalculatorComponent/CalculatorService");"
and the end of mylogfile.txt was
"...
...
9204:9232 >> tuscany::sca::cpp::CompositeContextImpl::CompositeContextImpl
9204:9232 << tuscany::sca::cpp::CompositeContextImpl::CompositeContextImpl
9204:9232 >> osoa::sca::CompositeContext::CompositeContext
9204:9232 << osoa::sca::CompositeContext::CompositeContext
9204:9232 << osoa::sca::CompositeContext::getCurrent
9204:9232 >> osoa::sca::CompositeContext::locateService
9204:9232 >> tuscany::sca::cpp::CompositeContextImpl::locateService
9204:9232 >> tuscany::sca::model::Composite::findComponentService"
My questions are:
What cause is in this exception?
Hou to compile the c++ sourse sample files?
P.S. Excuse me for my crude english.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org