on 09-07-2009 2:51 PM
Hi there,
I have created 2 custom controls(SAP mobile 7.1), one for rendering images(actually map images) and another for capturing user's signature. Both are integrated into the main application and works fine when alone. But when present together, certainly on different screens in the main app, still it works but with rendering problems. Say when navigating from the screen that displays the map custom control to the screen that has the signature capuring custom control, the map image is still getting displayed over the signature custom control view.
I wonder , if the problem is with disposing of the custom control. Can anyone suggest how to do that. Or something else has to be done?
Regards,
Aravind
Hopefully someone more knowledgeable about custom controls \ SWT can add some input
I do know disposing the SWT controls is important but not sure if it would solve your problem
from our application that uses a few simple custom controls together, we definitely needed to use dispose or it would cause memory consumption issues and slow performance
within the constructor
[Text object].addDisposeListener(this);
method to dispose color and fonts used
public void widgetDisposed(DisposeEvent event)
{
font.dispose();
amber.dispose();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aravind
You can try with swt Dispose event listener. You can add this listener to the custom control constructor...
Regards
Vidyadhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.