World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 08-13-2012, 09:44 PM   #1
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default WWJ java app in scope/active or ??

Having a problem with a WWJ app losing scope.

With a C++ app feeding GPS data in it works great and updates the WWJ screen as data is fed in even if another app like notepad, browser, etc. is opened.
With a java app feeding the exact same data in through the same socket clicking on anything else the WWJ app will not update the screen position except with a mouse over or clicking it back into scope.

The C++ serial communication code only works with Win XP.
I have a 64 bit Win7 also and recently got a 32 bit Win7 Tablet (I did not want to modify code for Android).

I updated some java GPS code that works with WinXP and Win7 32 and 64 bit but the WWJ scope problem is the same in all even in the XP where the C++ code works OK.

Could the java JVM for the WWJ app interfere with the GPS JVM?
Or is there only one JVM that handles all JVM apps at the same time.
__________________
Neil
http://www.nlneilson.com

Last edited by nlneilson; 08-13-2012 at 10:28 PM. Reason: typo
nlneilson is online now   Reply With Quote
Old 08-22-2012, 06:11 PM   #2
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

This may have something to do with Win7.
I updated a Python app for GPS and the effects are the same as with the Java GPS app.
Until a mouse over or clicking the WWJ screen to have scope it will not update.

As much as I dislike M$VC I will make a C++ app and try that, it has good serial code. Using the Ultimate++ IDE I could not find serial code that works with Win7 32bit or 64bit.
__________________
Neil
http://www.nlneilson.com
nlneilson is online now   Reply With Quote
Old 08-23-2012, 01:29 PM   #3
joen
Member
 
Join Date: Jul 2011
Posts: 39
joen is on a distinguished road
Default

I'm not sure how the different apis compare, but I usually need to fire off an event to get a layer to update in that situation

Code:
    layer.firePropertyChange(AVKey.LAYER, null, this);
joen is offline   Reply With Quote
Old 08-23-2012, 07:06 PM   #4
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

I directly call a redraw. That takes care of any event handling unless I am confused on that.

Bypassing any serial code issues I tried playing back logged data from a file.
Same issue of the WWJ screen not updating but a moving mouse over will cause an update. If the mouse is stationary it will not update.

WinXP works OK it is just Win7 that has a problem.
I have not tried it in Ubuntu 12.04 yet.

I will check the code to see how the mouse over handles the event and call that along with the redraw.

Thanks for the suggestion.
__________________
Neil
http://www.nlneilson.com
nlneilson is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup WWJ Hervé Development Help 96 03-04-2013 03:42 PM
wwj and java 7 workingDog Development Help 6 02-29-2012 02:30 PM
WWJ app run in Ubuntu on USB flash drive. nlneilson Development Help 18 07-04-2011 05:44 PM
Text collisions in Java or WWJ? emaronchi Development Help 11 01-29-2008 05:53 PM


All times are GMT +1. The time now is 06:59 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.