Kirix Support Forums

wxWebConnect 1.1 with new version of wxWidgets 3.0

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

wxWebConnect 1.1 with new version of wxWidgets 3.0

Postby neel5481 on Wed Dec 04, 2013 12:21 am

Hi All,

As we are using wxWebConnect 1.1 and wxWidgets 2.8 which is working fine in both windows and linux.

Now new wxWidgets 3.0 stable release is available so we have upgraded to wxWidgets 3.0.

Below code is getting hanged in linux only and not coming out. In windows below code is working fine.

nsIChannel *channel;

// Now, open the IO channel to an input stream form which we'll get the data
nsIInputStream *is;
rv = channel->Open(&is);


In above code Open() call is blocked and not coming out and application is in hanging state.

I think it is issue with threading functionality which is changed in new wxWidgets 3.0 or something else ?

Is there any idea why in new wxWidgets 3.0 , Open() call is blocked.


Thanks in Advance.
neel5481
Registered User
 
Posts: 5
Joined: Thu Oct 31, 2013 12:42 am

Re: wxWebConnect 1.1 with new version of wxWidgets 3.0

Postby Ben on Wed Dec 04, 2013 6:39 pm

You'll probably need to upgrade to wxWebConnect 1.2. Check out the code here: https://github.com/kirixresearch/wxwebconnect
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Re: wxWebConnect 1.1 with new version of wxWidgets 3.0

Postby neel5481 on Thu Dec 05, 2013 1:49 am

Hi Ben,

Thanks for the reply.

We have checked with new version of wxWebConnect 1.2 with XULRunner version 9.0.1 and wxWIdgets version 3.0.

After using the above version then also we are getting the same issue that "Open" call of nsIChannel gets hanged and program is blocked.

We are suspecting the issue is in wxWidgets 3.0

Because Open call description says below statement.

"Moreover, since this method may block the calling thread, it should not be called on a thread that processes UI events. Like any other nsIChannel method it must not be called on any thread other than the XPCOM main thread."

Please let us know your input.

Thanks in Advance.
neel5481
Registered User
 
Posts: 5
Joined: Thu Oct 31, 2013 12:42 am

Re: wxWebConnect 1.1 with new version of wxWidgets 3.0

Postby neel5481 on Fri Jan 03, 2014 7:14 am

Hi Ben/Jon

We have tried with xulrunner version 9.0.1 and wxWebConnect 1.2 with wxWidgets 3.0 but then also it is hanging in linux.

Please let us know your thoughts on it.

Thanks in Advance
neel5481
Registered User
 
Posts: 5
Joined: Thu Oct 31, 2013 12:42 am

Re: wxWebConnect 1.1 with new version of wxWidgets 3.0

Postby jonmmorgan on Wed Jan 08, 2014 8:33 am

As discussed, I have never tried anything like it and don't have an environment I could test in. So absolutely no idea.
jonmmorgan
Registered User
 
Posts: 94
Joined: Fri May 14, 2010 9:48 am

Return to wxWebConnect Questions, Thoughts & Feedback