|
Groove Programming Tips & Tricks
Hold a strong reference to the tool and/or telespace, not just the data model delegate(DMD)
Use CreateDelta instead of OpenTransaction(false) for write operations
Use shared object tables to hold sets of data with GrooveRunTimeData
Sprinkle ASSERTs in your code when debugging free-threaded script code instead of breakpoints
Explicitly ask for an interface after getting it from PropertyList
Use the "GrooveTelespace" object as reference to a tool's telespace
Use Groove tracing to help debug tools
Use Javascript and the "My Templates" directory to rapidly prototype
Watch out for redundant event subscriptions when using Groove's ScriptHost components
Use the existence of properties/attributes as a boolean value rather than the actual value
Use globals in script sparingly, as it affects performance
Return HRESULTs from script languages that implement COM interfaces
Don't use JavaScript classes/objects for storage in ScriptFreeThreadedComponents
Implement COM objects in script
Release objects cached in GrooveRunTimeData when they are no longer needed
© Copyright 2005 Paresh Suthar.
Last update: 1/21/2005; 10:20:57 AM.
|