[SDK-DOC] Callbacks for Self-Installing Plug-ins :-)

Date : Wed, 05 Apr 2006 22:35:28 +0200
To : XSI(at)Softimage.COM
From : Guy Rabiller <guy(at)alamaison.fr>
Subject : [SDK-DOC] Callbacks for Self-Installing Plug-ins :-)

regarding the Execute ( Graphic Sequencer )

void <xgs_plugin-item_name>_Execute( const CRef& in_context, LPVOID *in_pUserData )

n_context



CRef <javascript:cpp_CRef.Click()> &



A reference to a GraphicSequencerContext <javascript:cpp_GraphicSequencerContext.Click()> object.

Wrong.

XSI crashes if you try to get a reference of the context. It should be:

void <xgs_plugin-item_name>_Execute( const CRef in_context, LPVOID *in_pUserData )

and actualy the DX9Display exemple uses the value, not the reference.

I got caught today by this one myself in one of our plugins. It's not an easy one to find, especialy because every other XSI plugin's callbacks use a reference on the context, it's weird that only this one ( and the _Init and _Term ) must use a value. Easy to fall in the trap. Is this by design ?

--
guy rabiller | 3d technical director (at) LaMaison


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.