06-01-2012 05:56 AM
Just to be on the safe side:
I think Cascades is executed on an own thread, does that mean you can do blocking code, like networking etc, om the main application?
Or would i need to use a thread, maybe wrapped with QThread?
My webservice application compiles and executes, but after a short time it terminates:
Process 14819517 (hellocascades) terminated SIGSEGV code=1 fltno=11 ip=79056eb4(/base/usr/lib/libQtCascades.so@+0x4e9d
06-01-2012 06:05 AM - edited 06-01-2012 06:06 AM
Cascades works in main Qt's event loop, like everything in Qt applications. Regarding network requests, QNetworkAccessManager works asynchronously emitting a signal at the end, so in simple cases you can omit using threading.
06-01-2012 06:53 AM
06-01-2012 07:49 AM
06-01-2012 07:52 AM
actually it does (at least the FAQ states it), but it looks kind of complicated, at least for a java developer
I have successfully implemented QThread following this example:
Now i'll put the soap call into the thread and will see if it helps.
06-01-2012 11:28 AM
06-01-2012 11:56 AM
Looks like your library is passing invalid parameters to the gethostbyaddr function of libsocket.
What are you trying to accomplish using SOAP? I'm quite certain that something would likely exist in the Qt framework already.
06-04-2012 02:46 AM
06-04-2012 05:26 AM
06-04-2012 10:08 AM
I have created a sample project, if somebody wants to take a look.
I tried following some guidelines from
the attached file contains the gsoap_test project with the stockquote webservice found here:
(i tried to find a simple to use public webservice).
this application also fails with a segfault in libsocket.so.3