Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 56338 invoked from network); 11 Jul 2007 03:39:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 03:39:27 -0000 Received: (qmail 38176 invoked by uid 500); 11 Jul 2007 03:39:29 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 38163 invoked by uid 500); 11 Jul 2007 03:39:28 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 38152 invoked by uid 99); 11 Jul 2007 03:39:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 20:39:28 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Jul 2007 20:39:24 -0700 Received: (qmail 60803 invoked from network); 11 Jul 2007 03:38:59 -0000 Received: from 124.43.220.121 (HELO ?10.100.1.241?) (124.43.220.121) by relay00.pair.com with SMTP; 11 Jul 2007 03:38:59 -0000 X-pair-Authenticated: 124.43.220.121 Subject: Re: Multithreading again From: manjula To: Apache AXIS C User List In-Reply-To: <46939911.1070507@users.sourceforge.net> References: <46925A9A.7010106@users.sourceforge.net> <1184046635.6574.11.camel@manjula-laptop> <4693206F.8050804@wso2.com> <4693937E.70601@9elements.com> <46939911.1070507@users.sourceforge.net> Content-Type: multipart/mixed; boundary="=-nP+3uiLGWOtaYlcYGA7P" Date: Wed, 11 Jul 2007 09:08:55 +0530 Message-Id: <1184125135.6215.21.camel@manjula-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 X-Virus-Checked: Checked by ClamAV on apache.org --=-nP+3uiLGWOtaYlcYGA7P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Stefano, I have attached the make file I used to build the sample. I have not used VC, instead used cl.exe for compile and link.exe to link. Following are the steps I followed to build and run your sample. 1. Build Axis2/C using nmake all . 2. Add the .cpp file and test.mk to a directory as same level as echo sample. You can see this if you look at AXIS2C_DIR\samples\client directory. 3. Go to the new directory you add and execute the following command. nmake -f test.mk 4. Make sure you have run vcvars32.bat before running nmake. I think Some of the settings in your VC project may be causing problems. so please try the above procedure. And please send us the typical errors(I mean the output) and the exceptions. Otherwise it is very difficult find the problem, Since it is working well on my machine. Thanks, -Manjula On Tue, 2007-07-10 at 16:34 +0200, Stefano Pettini wrote: > Thank you for your contribution. I don't use libcurl. The typical errors > I get are random unhandled exception, access violation, null pointer > exceptions ... > > I've discovered that a key point is using the correct C Runtime > (Multithreading, of course, options /MD, /MDd, /MT or /MTd). Apart from > that, I think the options you're using are correct. > > Cheers, > Stefano > > Mark Nüßler wrote: > > hello users, > > > > i have taken the modified sample to test it with the > > normal echo-service in my enviroment : > > > > winXP > > vs2005cpp > > axis2_c (svn 28.06.07) build with > > ENABLE_LIBCURL = 1 > > LIBCURL_BIN_DIR = mypath\libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3 > > > > when i start more then one thread, i have different kinds of errors > > and the program crashes. > > > > i am not sure, if i have done something wrong with the parameters > > of the studio ... > > > > C/C++ : > > /Od /I "X:\ws\axis2_c\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D > > "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" > > /Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt > > > > Linker : > > /OUT:"X:\_tmp_axis\multi_echo_client\Debug\multi_echo_client.exe" > > /INCREMENTAL /NOLOGO /LIBPATH:"X:\ws\axis2_c\lib" /MANIFEST > > /MANIFESTFILE:"Debug\multi_echo_client.exe.intermediate.manifest" > > /DEBUG > > /PDB:"x:\_tmp_axis\multi_echo_client\debug\multi_echo_client.pdb" > > /SUBSYSTEM:CONSOLE /MACHINE:X86 /ERRORREPORT:PROMPT axiom.lib > > axis2_engine.lib axis2_parser.lib axutil.lib kernel32.lib > > > > ... or if there is an issue around libcurl.dll. one of the errors that > > occurs is, that the program breaks at axis2_libcurl.c in line 305 > > "curl_easy_perform (handler);" > > > > at the moment this is not critical for me, i just want to give my > > feedback in "testing client multithreading on Windows" > > > > thx derMark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > --=-nP+3uiLGWOtaYlcYGA7P Content-Disposition: attachment; filename=test.mk Content-Type: text/plain; name=test.mk; charset=utf-8 Content-Transfer-Encoding: 7bit echo: @cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "AXIS2_DECLARE_EXPORT" /D "_MBCS" *.cpp /I ..\..\..\build\deploy\include /c @link.exe /nologo *.obj /LIBPATH:..\..\..\build\deploy\lib axiom.lib axutil.lib axis2_engine.lib axis2_parser.lib /OUT:test.exe --=-nP+3uiLGWOtaYlcYGA7P Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org --=-nP+3uiLGWOtaYlcYGA7P--