THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/03/2006 at 00:21, xxxxxxxx wrote:
Have you tried calling super() at the end of the method? This may (or may not) make a difference - for the C++ SDK, I call SUPER::xxxx() at the end:
//*---------------------------------------------------------------------------*
Bool IPPMorph::Init(GeListNode* node)
//*---------------------------------------------------------------------------*
{
morphsC = NULL;
BaseContainer* bc = ((BaseTag* )node)->GetDataInstance();
if (!bc) return ErrorException::Throw(GeLoadString(ERROR_MEMORY_TEXT), "IPPMorph.Init.bc");
bc->SetLong(IPPMORPH_DELTACOUNT, 0L);
bc->SetLong(IPPMORPH_SIZECOMPRESS, 0L);
return SUPER::Init(node);
}
You may not even need to call super(), unless there are member variables of the MenuPlugin class that you suspect need initializing - which I doubt. In my code above, the IPPMorph class is derived from my IPPDial class (derived from TagData). Otherwise, IPPDial doesn't call SUPER anything.
Comment out 'super();' and see what happens. Sometimes these things require less 'logic' and more 'methodical illogical consequential circumstances'. In other words, to quote Sherlock Holmes (ala Sir Arthur Conan Doyle), "... when you have excluded the impossible, whatever remains, however improbable, must be the truth."
In other words, sometimes what appears to be completely logical in proceeding, may require exclusion of everything but the most essential to discover the real cause.