Jump to content
Software FX Community

Strange error, anybody know of this?


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...