Hello,
when loading the attached SVG file, for example into an TcxImageList, an error occurs:
Invalid operation in GDI+ (Code 3)
Please see attached SVG
Hello,
when loading the attached SVG file, for example into an TcxImageList, an error occurs:
Invalid operation in GDI+ (Code 3)
Please see attached SVG
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Thank you for sharing your SVG file. I have reproduced this error and forwarded this ticket to our developers for research.
i actually found more trouble with SVG's. I was wondering why the menu opens up so slowly.
Now. by using the debug mode, i saw that when I opened a menu for the first time, lots of exceptions are raised:
The exception happens in "dxSVGCoreParsers":
procedure TryAddValue(ATarget: TdxSVGValues; AStartIndex, AIndex: Integer);
begin
if AIndex > AStartIndex then
try
ATarget.Add(dxStrToFloat(Trim(Copy(S, AStartIndex, AIndex - AStartIndex))));
except
// do nothing
end;
end;
And it says: "EConvertError "e" is not a valid floating point value"
In the Call stack I see this:
dxSVGCoreParsers.TryAddValue($1C27B1A0,4,5)
dxSVGCoreParsers.TdxSVGParserNumbers.AsNumbers('none')
dxSVGCore.TdxSVGAdapterNumbersValue.Load($1F1981D8,$1F309CE0,'none')
dxSVGCore.TdxSVGLoader.ApplyAttribute($1F1981D8,$2D1994B0,$209D07C0)
dxSVGCore.TdxSVGLoader.ApplyAttributes($1F1981D8,$209D00E0)
dxSVGCore.TdxSVGStyle.Apply($1F1981D8)
dxSVGCore.TdxSVGStyles.Apply($1F1981D8)
dxSVGCore.TdxSVGStyles.Apply($2B2AFD18)
dxSVGCore.TdxSVGStyles.Apply($2CCEACA0)
dxSVGCore.TdxSVGLoader.Load($2CCEACA0,$1C17E320)
dxSVGImage.TdxSVGImageCodec.GetSize($31728FA0,(6427989, 633811616))
dxSmartImage.TdxSmartImageCodecsRepository.GetImageInfo($31728FA0,(6427989, 633811616),TdxSmartImageCodecClass($1C207854))
dxSmartImage.TdxSmartImageCodecsRepository.GetImageInfo($31671EF8,(6427989, 633811616),TdxSmartImageCodecClass($1C207854))
dxSmartImage.TdxCustomSmartImage.GetSize
dxSmartImage.TdxCustomSmartImage.GetWidth
cxGraphics.cxGetImageClientRect($3168F0B0)
cxGraphics.cxStretchGraphic($25C30F80,$3168F0B0,True,TdxSkinGeneralColorPalette($1AEC94C4) as IdxColorPalette)
cxImageList.GetBitmap($25C30F80,$3168F0B0,True)
cxImageList.TcxCustomImageList.GetImageInfoCore(171,$25C30F80,nil,TdxSkinGeneralColorPalette($1AEC94C4) as IdxColorPalette,bDefault)
cxImageList.TcxCustomImageList.GetImageInfoCore($2F2E5AF0,171,$25C30F80,nil,TdxSkinGeneralColorPalette($1AEC94C4) as IdxColorPalette,bDefault)
cxGraphics.MakeImage($25C30F80,False)
…
With all exceptions I see this "TdxSVGParserNumbers.AsNumbers('none')"
And indeed, "none" isn't a number.
Can I do something to the SVG files to prevent all these exceptions ?
Hello Thomas,
I've created a separate ticket on your behalf (T714454). It has been placed in our processing queue and will be answered shortly.