Skip to main content

0.9.2 and pdata null

4 replies [Last post]
tdanecito
Offline
Joined: 2005-10-10

I am getting the error null pdata when addNotify() is used in 0.9.2. This happens when the peer is dropped (removeNotify) then added (addNotify) when a child window is added to the JDeskTopPane or when the z-order changes when using WebBrowser.
I noticed code in 0.9.2 for the addNotify() removeNotify() that was not in 0.9.1. I use the default dispose on removal of the peer and am running in Windows 200 & XP where I see this exeception occur.

Any ideas what can do to work around the problem?

I stopped using 0.9.2 and am going back to 0.9.1 because of this error and the being able to select the default error. Seems as if 0.9.2 was a giant leap backward with the missing functionality previously avialable and the new pdata null issues. Hopefully I am wrong.

Regards,
-Tony

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cpesch
Offline
Joined: 2005-11-11

I've just seen this with 0.9.3, too

taylanes2
Offline
Joined: 2007-07-24

i got the problem when i put the jdic browser onto a awt panel. when i put onto swing panel the problem disappeared. i think it is because of the add/remove notifiers on containers.

tdanecito
Offline
Joined: 2005-10-10

I did narrow down the issue. Seems there is a race condition in the 0.9.2 code. The addNotify() is being called when removeNotify() is being called.
The reason that can happen is the removeNotify() is called during destroy() for the webbrowser via a independant thread for a canvas. I have not changed and tried to compile the 0.9.2 code but that is what I suspect the problem is.

Regards,
-Tony

taylanes2
Offline
Joined: 2007-07-24

hi

i got the same problem. did you find a solution?