This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

delay at GetAdvancedGraphics() on some PCs.

KimJongHyouk#33135
As shown below I tried to get a Graphics object from a Bitmap object to draw on my Bitmap with methods such as FillRectangle.


GAurigma.Bitmap bitmap = new GAurigma.Bitmap(
    nWidth,
    nHeight,
    GAurigma.PixelFormat.Format24bppRgb);

GAurigma.AdvancedDrawing.Graphics graphics = bitmap.GetAdvancedGraphics();


However, on some PCs, a delay of about 1 minute occurred at the code point below, and the problem disappeared after a delay. (I think it's because of the caching mechanism.)


GAurigma.AdvancedDrawing.Graphics graphics = bitmap.GetAdvancedGraphics();


However, when my customer exits the application and runs it again, this problem occurs again.

Two of the six PCs have this problem. The specifications of all PCs are as good as CPU I5-4590, 8GB or more of memory, and Windows 10 is used.

Can the 'GetAdvancedGraphics ()' method cause delays depending on the PC environment? If so, what is the solution?

Thanks for your help.
Eugene Kosmin#33136
Hi,

We haven't seen such delays before. A possible reason is getting a font list for the static 'installed' font registry. Please check how they differ. Is it possible to share the content of the windows/fonts directory?
KimJongHyouk#33142
As you mentioned, there were many fonts larger than 1GB installed in the Font directory of some PCs.
First, I solved it by asking my customers to install only the fonts they needed.

However, as you know, this is only a temporary solution and not a good solution to the cause.

Is this a problem with many fonts? Or are some fonts causing problems?

Thanks always for help.
Eugene Kosmin#33152
Hi,

I'm very sorry for the long delay.

Usually, many fonts are not a problem. I guess there are some specific or buggy fonts that cause the delay. I can investigate it only if you send me the content of the font directory from one of the problem machines.