![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
![]() |
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. Last edited by nlneilson; 08-13-2012 at 10:28 PM. Reason: typo |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
![]() |
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. |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2011
Posts: 39
![]() |
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); |
|
|
|
|
|
#4 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
![]() |
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. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |