 |
 |
OS X Java Problem... any help?
|
 |
|
 |
|
Forum Regular
Join Date: Apr 1999
Location: Edmonton, AB, Canada
Status:
Offline
|
|
First off, I'm not really a developer, but I have some knowleadge of programming and of the code for the particular app that is affected.
We have written a Java app that works properly on Windows, Linux and Solaris, but fails on OS X. The problematic part of the app is a section where the program reads in a set of approx. 60,000 data points (X-Y coords, where the X coord increases by one everytime) and is supposed to draw lines between them all in order (creating essentially a line graph). When the app tries to do this, it seems to go into an infinite loop of some sort, where it maxes out the CPU, and never finishes the process. The app compiles properly and launches properly, but fails here.
Does anyone know why this might be happening? Is there a known bug in a class that's likely being called that might be the culprit? Can anyone suggest a workaround?
I realize that I'm not providing a whole lot of information, and I'll try to gather more and post it, but in the meantime, any help will be really appreciated.
Cheers!
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Oct 2000
Location: Pasadena, CA, USA
Status:
Offline
|
|
Can we look at the source code? It would help tremendously.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status:
Offline
|
|
Your first goal should be to track down the infinte loop. You can do that pretty easily be adding System.out.println()'s all over the place. Then you can figure out what code is being reached correctly and what code is never reached, and by process of elimination and multiple trials figure out why an infinite loop is occuring.
HTH,
F-bacher
P.S. Source code would help
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2001
Status:
Offline
|
|
On what IDE did you develop it? If it's one that is available on the Mac (like NetBeans or JBuilder), just fire up the debugger and debug with breakpoints.
|
Stink different.
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Apr 1999
Location: Edmonton, AB, Canada
Status:
Offline
|
|
Thanks for the suggestions, guys.
It's on the to-do list to create a JBuilder project for this app using the OSX beta version of JB. I managed to track the problem down to the point I have by using log.debug(breakpoint)-type calls all over the place, running the app and seeing what the last breakpoint listed in the log file is.
I'll see about maybe posting the relevant portion of the source code here, but I'd have to ask people much higher up first.
I'll post back when I've got the problem narrowed down a bit more.
Thanks again. Cheers!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|