From: Edward H. <edw...@ya...> - 2005-09-25 01:06:01
|
Hi, I was looking through other documentation and I saw the function java_reset() and I tried using that everytime I make a call to my Java class ande everything seems to be working fine now. I appreciate all the help you have given me and I think this Java-Bridge application is very helpful. Once again thanks, Ed Jost Boekemeier <jos...@ya...> wrote: Hi Edward, > This class and all variables/properties belonging to > that class will never get destroyed? the class is garbage collected when your VM has a class GC and this GC is called. In the standard configuration (64MB heap) the tests.php4/binaryData.php test triggers such a GC. This caching behaviour is intentional. Everything else (instance variables etc.) is destroyed after script execution. > This is because I have a class and when I run > JavaBridge.jar and execute the class for the first > time it always works. But subsequent calls to that > class will fail It is certainly possible to write a counter using a static variable so that a method call fails after some time. But I don't think this is a good programming practice. :) Can you please be more specific? If possible please set the java.log_level=4, create a bug report and attach the log up to the point where the problem occurs. (please see http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. |