Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception at WinNativeHelper under Windows



> > This has the disadvantage of blocking any QT objects from being freed
> > up in that block so you may need to take care if you're allocating
> > lots of things. I can't know 100% for sure but I haven't had any
> > random crashes since then :-)
>
> this is interesting - but how the hell do you implement it? - are you
> blocking in main() waiting on something in your app finishing?

I think he means something like:

public void finalize(){
synchronized(QTSession.terminationLock())
{
super.finalize();
}
}

in all your classes that have a QTJava class as an ancestor

looks strange to me though, you may have instantiated QTJava classes directly (which you haven't extended with a subclass to fix finalize there)

plus this may be block the garbage collector, depending on what is "QTSession.terminationLock()", not sure what this function is supposed to return (maybe just a dummy object used globally in QT as a lock when doing termination stuff)

Better solution would be to patch "QTObject" (or wasn't there such a common ancestor in QTJava - it's been some months since I last played with QTJ). Maybe Java1.3 or 1.4 allows you to change a class method implementation at runtime (or something similar). Else you could patch that class in QTJava.zip using JAD (but it's deployed by Apple, not you, so it's not an option)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <email@hidden>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls
http://members.fortunecity.com/birbilis/QT4Delphi/
+ Plugs VCL and ActiveX controls
http://members.fortunecity.com/birbilis/Plugs/
+ Robotics club
http://www.mech.upatras.gr/~robgroup
....................................................................................
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.