Hello can someone please help complete this sample. Maybe it is obvious to everyone out there but me but callback c=createCallback(); does not seem to work. Exactly how do I instantiate my call back. Do I have to static AsyncCallback<MYOBJECT> myCallback=null; private AsyncCallback<MYOBJECT> create_myCallback() AsyncCallback<?> createCallBack(){
if (myCallback==null){ myCallback = new AsyncCallback<Object>() { // implement onSuccess // implement onFailure }; } // end iff return callback; } // end of constructor // Implementation AsyncCallback<MYOBJECT> c=create_myCallback(); I guess so but then why the create mycallback when you meant AsyncCallback<MYOBJECT> ??? Or am I missing something here? because: myCallback c=create_myCallback(); // does not work So I am pretty sure you meant the former: e.g AsyncCallback<MYOBJECT> c=create_myCallback(); and not callback c = createCallback(); On Monday, September 26, 2011 11:36:55 AM UTC-4, Rokesh Jankie wrote: > > No definitely not: This is only with the callback Class (and in > combination with a lot of data). > Somehow the callback is not garbage collected properly in IE. > > The GWT team covered this part (of (new ClickHandler)...) > > See this link > https://groups.google.com/forum/#!searchin/google-web-toolkit/clear$20memory$20IE7/google-web-toolkit/jPOhtj5vZT4/cOnK6MS_EQwJ > > And the last post of Joel Webber was definitely worth the read! > > So in short: Only the callback ( AsyncCallback()) class we changed to a > static class variable and that was it...No other code changes... > > Again: java garbage collection is (apparently) NOT the same as Javascript > garbage collection. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OVNY8WJY3pcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.