Jump to content
Software FX Community

Strange error, anybody know of this?


User (Legacy)

Recommended Posts

Can you specify which options you changed or send us a small app that

reproduces this behavior ?

--

Regards,

JC

Software FX Support

"NssOne" <none@none.com> wrote in message

news:Algx733VDHA.1484@WEBSERVER1...

> I have a ChartFX program built in C++. I just started changing around some

> of the displayed options on a right-click pop-up menu. But now that I've

> removed some of these option, I get a weird runtime error

>

> R6025

> - pure virtual function call

>

> Anybody seen this before?

>

>

Link to comment
Share on other sites

Here's a snippet of my code that I rearranged.

ICommandBarPtr pCmdBar;

ICommandItem *pCmdItem;

// Get a reference to the command bar

pCmdBar = m_pChartFX->GetCommands();

// Remove 1st & 2nd commands from the background popup menu

// NOTE: The index will change every time a command is added or removed.

pCmdBar->get_Item(CFX_ID_CM_BACKGROUND, &pCmdItem);

pCmdItem->RemoveSubCommand(9);

pCmdItem->RemoveSubCommand(8);

pCmdItem->RemoveSubCommand(7);

pCmdItem->RemoveSubCommand(6);

pCmdItem->RemoveSubCommand(5);

pCmdItem->RemoveSubCommand(4);

pCmdItem->RemoveSubCommand(3);

pCmdItem->RemoveSubCommand(2);

pCmdItem->RemoveSubCommand(1);

pCmdItem->RemoveSubCommand(0);

pCmdItem->Release();

pCmdBar->Release();

Everything else in my code was the same until I changed those setting

around. The program did not give me any errors before implementing those

settings into the code.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:DDiRzu4VDHA.228@WEBSERVER1...

> Can you specify which options you changed or send us a small app that

> reproduces this behavior ?

>

> --

> Regards,

>

> JC

> Software FX Support

post-2107-13922398000227_thumb.jpg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...