Re: Application Hang (Cocoa-Java)
Re: Application Hang (Cocoa-Java)
- Subject: Re: Application Hang (Cocoa-Java)
- From: Graham <email@hidden>
- Date: Sun, 15 May 2005 21:07:07 -0400
Yes, I am developing on Tiger, though not targeting it. I do see the
same hang on my 10.3 machine too.
regards,
Graham
On May 15, 2005, at 7:09 PM, Craig Hunter wrote:
Message: 13
Date: Sun, 15 May 2005 10:56:51 -0400
From: Graham <email@hidden>
Subject: Application Hang (Cocoa-Java)
To: Cocoa List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi,
I realize I am probably the only person out here programming Cocoa in
Java ;-), but here goes:
I have an app with an NSTabView. Each view on the NSTabView has a
Java Thread that is used to populate the view with data from a remote
site. I am encountering a deadlock of some kind whereby when I click
a tab to change the tabview, the tab partially highlights (gray) but
does not go blue and the app is unresponsive at his point. The app
only ever locks at this point, when a tab is clicked and only
sometimes, so it's clearly a race/deadlock. I realize it may well be
my logic relating to synchronized methods etc, but after 2 days of
pulling out my hair I wondered if there are any Cocoa-Java specific
gotchas I should be aware of?
Is anyone aware of issues regarding Cocoa and Java threads that cause
repeated view updates and tabviews?
You're not developing in 10.4 by any chance, are you?? I had a
Java applet
in my app, running inside a Web View that was inside a tab view.
Worked
great under 10.3. Under Tiger, the applet would launch and run
fine, but
switching to any other tabs would cause the application to hang
(and throw
error messages in the console indicating the problem was in frameworks
somewhere). The only way I was able to get around this was to put the
applet in a separate window away from the tab view, where it works
OK. Not
the greatest workaround, but it was the only way I could get my app
running
on Tiger. I filed a bug report on the problem initially, and need
to update
it with the workaround. Problem happens in 10.4 and the current
10.4.1
seed.
Craig
--
Dr. Craig A. Hunter
NASA Langley Research Center
AAAC / Configuration Aerodynamics Branch
(757) 864-3020
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden