Re: [codenameone-discussions] Re: IOS native code using blocking I/O

2018-10-30 Thread Dave Dyer

Thanks, with _yield everything seems happy.

FWIW, I've got a working UDP framework for android and ios.  Not fully
productized, but if you or some customer wants to run with it I'll
happily pass it on.

On Tuesday, October 30, 2018 at 10:16:39 AM UTC-7, Steve Hannah wrote:
>
> You do need to be careful about locking the GC if you're blocking inside a 
> native interface.  Refer to the CN1Sockets cn1lib to see how you can work 
> around this.
>
>
> https://github.com/shannah/CN1Sockets/blob/master/native/ios/ca_weblite_codename1_net_impl_NativeSocketImpl.m
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e00e134e-a1c3-4c9b-883c-e057a93a041c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Screen distorted after viewing pdf

2018-10-30 Thread Gareth Murfin
Thanks Shai will let you know..

Love the new Android app by the way! will be great when it comes to ios
too.. great for giving to clients.

On Tue, 30 Oct 2018 at 04:48, Shai Almog  wrote:

> Try unlocking the orientation before launching the PDF then locking it
> back after start is invoked again. See if that resolves this issue.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/KdhYtshd6qY/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/3aedc7cf-1584-40ec-a58b-d9fcf7f1d754%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6nNUmVBHpCXU2Qxj6-%3Dr3%3DLX-1K9D4e9Qf8-2P7LiSaog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: IOS native code using blocking I/O

2018-10-30 Thread Steve Hannah
You do need to be careful about locking the GC if you're blocking inside a
native interface.  Refer to the CN1Sockets cn1lib to see how you can work
around this.

https://github.com/shannah/CN1Sockets/blob/master/native/ios/ca_weblite_codename1_net_impl_NativeSocketImpl.m

Notice the comments about GC blocking and the use of the _yield() .function.

Steve

On Tue, Oct 30, 2018 at 10:05 AM Dave Dyer 
wrote:

> One more bit about this;   I noticed when running under xcode that memory
> usage keeps going
> up.  I pauses the app and found the GC thread stuck at line 426 of
> codenameonegcmark.  The
> comment near there says "wait for the thread to pause..."
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/49e77bef-3269-4541-b8c6-d84c32034ec9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXiExfWKfeXwh6d5xbfxaQauCqGYsU29nXzxuUaSry3VA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: IOS native code using blocking I/O

2018-10-30 Thread Dave Dyer
One more bit about this;   I noticed when running under xcode that memory 
usage keeps going
up.  I pauses the app and found the GC thread stuck at line 426 of 
codenameonegcmark.  The
comment near there says "wait for the thread to pause..."


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/49e77bef-3269-4541-b8c6-d84c32034ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Button or Image to an Table

2018-10-30 Thread tobias.semmet via CodenameOne Discussions
OK, thanks, got a solution, is it possible ;-)

On Tuesday, October 30, 2018 at 4:31:37 PM UTC+1, tobias...@googlemail.com 
wrote:
>
> Hi,
>
> is it possible to add an image (instead of an text) to an Label on a Table 
> Cell, or better is it possible to add an button to a Table Cell ?
>
> Thanks for helping.
>
> Tobias
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fc88f3aa-fa0a-45da-bfab-6946437e016a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Button or Image to an Table

2018-10-30 Thread tobias.semmet via CodenameOne Discussions
Hi,

is it possible to add an image (instead of an text) to an Label on a Table 
Cell, or better is it possible to add an button to a Table Cell ?

Thanks for helping.

Tobias

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eb08f448-fd13-4bac-8351-65a0c59d0775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: IOS native code using blocking I/O

2018-10-30 Thread Dave Dyer
I ran a thread that did nothing else except recv from a socket and store 
the results in a NSMutableArray,
and the edt still got stuck somehow.  Usually immediately.

On Monday, October 29, 2018 at 9:53:56 PM UTC-7, Shai Almog wrote:
>
> That's not true. 
> What isn't allowed is blocking the EDT. If you invoke native code from the 
> EDT and block then this will fail. If you open a thread and invoke blocking 
> IO it will work just fine.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f3271fa0-a741-4dd2-8ca9-e4d025ca7235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.