| |
 |
Thursday, August 22, 2002 |
Hold a strong reference to the tool and/or telespace, not just the data model delegate(DMD)
When writing tools that subscribe to DMD events provided by other tools in the same telespace, you (currently) must hold a strong reference to the tool in which the DMD lives to ensure that the tool does not get unloaded.
When writing tools that subscribe to DMD events provided by other tools in other telespaces, you (currently) must hold a strong reference to the tool in which the DMD lives and the telespace in which that tool lives, to ensure that the both the tool and telespace do not get unloaded.
Groove has caching algorithms that periodically unload tools and telespaces to help efficiently manage memory usage - but any tools and/or telespaces that have strong references held on them will prevent such unloading. Obviously this means that the memory usage will not go down until the strong references on the tools and/or telespaces are released.
8:48:49 AM
|
|
© Copyright 2005 Paresh Suthar.
|
|
|
|
| August 2002 |
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
| |
|
|
|
1 |
2 |
3 |
| 4 |
5 |
6 |
7 |
8 |
9 |
10 |
| 11 |
12 |
13 |
14 |
15 |
16 |
17 |
| 18 |
19 |
20 |
21 |
22 |
23 |
24 |
| 25 |
26 |
27 |
28 |
29 |
30 |
31 |
| Jul Sep |
|
|