In the demo app, whenever I tried to save a file, the demo was
crashing with an access violation. The crash goes away if you
remove the DisposeNavEventUPP calls. To avoid a leak, instead of
allocating a new UPP each time you use one, just allocate the UPP
once and keep it in a static variable, for instance:
static NavEventUPP GetEventFilterUPP()
{
static NavEventUPP sFilterUPP = NULL;
if (sFilterUPP == NULL)
{
sFilterUPP = NewNavEventUPP( NavEventFilter );
}
return sFilterUPP;
}
Nobody/Anonymous
None
None
Public