Whilst running the MapsDemo on the simulator after building on Eclipse and running in the simulator for iPhone I get an EDT Violation on creation of a PointsLayer object. It still processes the response correctly, is this something to be concerned about? I'm a complete newbie here, to codenameone and iPhone development.PointsLayer pl = new PointsLayer();
--
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-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/7a723a77-9212-4f6f-92b2-8893fa4c9e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Image im = Image.createImage("/red_pin.png");
PointsLayer pl = new PointsLayer();
pl.setPointIcon(im);
At what point are you instantiating the PointsLayer in your code?
On Thu, Jan 29, 2015 at 1:00 PM, Pete Knight <petec...@gmail.com> wrote:
Whilst running the MapsDemo on the simulator after building on Eclipse and running in the simulator for iPhone I get an EDT Violation on creation of a PointsLayer object. It still processes the response correctly, is this something to be concerned about? I'm a complete newbie here, to codenameone and iPhone development.PointsLayer pl = new PointsLayer();
--
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+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/25ee381b-c527-403e-bd51-2f020bae8005%40googlegroups.com.
com.codename1.impl.javase.JavaSEPort$EDTViolation: EDT Vi
olation Stack!
at com.codename1.impl.javase.JavaSEPort.checkEDT(JavaSEPort.java:385)
at com.codename1.impl.javase.JavaSEPort.createFont(JavaSEPort.java:3976)
at com.codename1.ui.Font.<init>(Font.java:139)
at com.codename1.ui.Font.createSystemFont(Font.java:303)
at com.codename1.maps.layers.PointsLayer.<init>(PointsLayer.java:45)
at com.codename1.demos.maps.MapsDemo$3.readResponse(MapsDemo.java:161)
at com.codename1.io.ConnectionRequest.performOperation(ConnectionRequest.java:4
29)
at com.codename1.io.NetworkManager$NetworkThread.run(NetworkManager.java:261)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
Interesting coz i have executed the demo successfully on my end without getting the EDT Violation error.Maybe shai and Chen can assist
On Thu, Jan 29, 2015 at 1:25 PM, Pete Knight <petec...@gmail.com> wrote:
Running the (unaltered) MapsDemo, its in the readResponse() its after the response has been parsed and read into a map
Image im = Image.createImage("/red_pin.png");
PointsLayer pl = new PointsLayer();
pl.setPointIcon(im);
On Thursday, January 29, 2015 at 10:17:41 AM UTC, ngosti2000 wrote:
At what point are you instantiating the PointsLayer in your code?
On Thu, Jan 29, 2015 at 1:00 PM, Pete Knight <petec...@gmail.com> wrote:
Whilst running the MapsDemo on the simulator after building on Eclipse and running in the simulator for iPhone I get an EDT Violation on creation of a PointsLayer object. It still processes the response correctly, is this something to be concerned about? I'm a complete newbie here, to codenameone and iPhone development.PointsLayer pl = new PointsLayer();
--
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 http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/7a723a77-9212-4f6f-92b2-8893fa4c9e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsub...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
Display.getInstance().callSerially(new Runnable() {
public void run() {
doTheEDTUIStuff(im, list, map, mc, progress);
}
});
@Override
protected void postResponse() {
doTheEDTUIStuff(im, list, map, mc, progress);
}