Share

WTextView, PowerPlant wrapper for WASTE

Tracker: Bugs

5 Demo Nav dialogs crashing in OS X - ID: 905535
Last Update: Tracker Item Submitted ( jwwalker )

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;
}


James W. Walker ( jwwalker ) - 2004-02-27 01:38

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.