Bug in IconFileName()

A

Axel Luessow

Our application uses a lot of menu items with different .ico files.
The Problem is that every item takes 1-2 seconds to load, thus the
whole application stalls. We are using Visio 2007 (SP1), but the
problem occurred in Visio 2003 (SP3), too.

We guess that this might be a bug in connection with different graphic
drivers, since the extent of the problem varies on different machines.
Using Vista with its new graphic driver model, the situation worsened
even further and we had to switch to the inbuilt icons. It seems that
Visio takes ages to convert the icons to some internal format?

We are using absolute Paths to the .ico files using the code below:

void CXVMenuItem::Set(CVMenuItemSet *pVMenuItemSet)
{
[...]
strIconFileName=m_strIconsPath+pVMenuItemSet->m_IconFileName;
IconFileName(strIconFileName);
[...]
}

Does anyone have an idea on how to accelerate the icon load time?

Thanks, Axel
 
P

Paul Herber

Our application uses a lot of menu items with different .ico files.
The Problem is that every item takes 1-2 seconds to load, thus the
whole application stalls. We are using Visio 2007 (SP1), but the
problem occurred in Visio 2003 (SP3), too.

We guess that this might be a bug in connection with different graphic
drivers, since the extent of the problem varies on different machines.
Using Vista with its new graphic driver model, the situation worsened
even further and we had to switch to the inbuilt icons. It seems that
Visio takes ages to convert the icons to some internal format?

I found this as well last year, I didn't find a solution but just
decided not to use icons.
 
A

Axel Luessow

We opened Microsoft break/fix support incident with this problem, and
here's the solution from Microsoft:

--

We have analyzed the dumps that you uploaded, and found that the path
specified in the Add-ons path (under Visio > Tools > Options >
Advanced > File Paths > Add-ons) has a leading semi-colon (;) which is
causing the delay. I was also able to reproduce the issue at my side,
by specifying a leading semi-color (;).

For e.g.:
Instead of ";C:\VSL;C:\PROGRAMME\X-VISUAL\VISUAL PLANTENGINEER\BIN\"
Please specify "C:\VSL;C:\PROGRAMME\X-VISUAL\VISUAL
PLANTENGINEER\BIN\"

Removing this semi-colon should make the icon file load without the
delay. However, the delay caused by this semi-colon seems to be a bug
in Visio, and I will be reporting it to the product team.

Thanks,
Visual Studio Office Development Team
 
P

Paul Herber

We opened Microsoft break/fix support incident with this problem, and
here's the solution from Microsoft:

Wonderful. I suppose an obvious thing to have asked was the value that
your m_strIconsPath was being set to. Good old hindsight.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top