Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Threads for networking?

Are you testing this in the BlackBerry 10 Dev Alpha simulator, real device or both?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
simon_hain
Posts: 15,846
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Threads for networking?

so far only on the real DevAplha device
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Threads for networking?

We've traced the crash to a call to gethostbyname_r in one of the soap library modules mapped to soap->fresolve.  Strange thing is that when the same code is copied and we perform something similar (with similar buffers but not the same structures exactly) in a NetworkStatus NDK sample project and it worked fine there.

 

This behavior may be due to the soap structure being initialized improperly with respect to its buffer but I we are not 100% sure yet.  

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
simon_hain
Posts: 15,846
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Threads for networking?

[ Edited ]

we did the same trace, but did not have the experts to analyze it in the source code.
strange that it works in the sample, i guess that is some deep c++ mojo...

 

i also got some mails from the KDSoap developers, they are part of the Qt port to BB10 as it seems, but did not get it to run so far, they also found "a network issue". they promised further tests and to keep me posted.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.