- This topic has 13 replies, 2 voices, and was last updated 9 years, 8 months ago by
Ronaldo Souza.
-
AuthorPosts
-
June 16, 2016 at 6:31 am #55060
Thank you for the good demo-app. I see the problem and I will fix it soon.
July 1, 2016 at 6:34 pm #55228'Support' wrote:Thank you for the good demo-app. I see the problem and I will fix it soon.
The problem seems to be fixed with version 11.04 beta, but I'm getting a bunch of unrelated “EInvalidGraphicOperation: Scan line index out of range” in a totally unrelated part of the program which runs fine with 10.30.
I can't pinpoint the cause of the problem, but the exception happens in unit acSBUtils, procedure TacComboBoxWnd.acWndProc, so I added a TRY/EXCEPT and some logging to this procedure and this is is typical of what I got:
Code:30/06/2016 13:33:40: Exception.Message – EInvalidGraphicOperation: Scan line index out of range
TMessage – WParam:00170BFA LParam:00000000 Result:00000001 – WParamLo:0BFA WParamHi:0017 LParamLo:0000 LParamHi:0000 ResultLo:0001 ResultHi:0000
30/06/2016 13:33:57: Exception.Message – EInvalidGraphicOperation: Scan line index out of range
TMessage – WParam:0015019C LParam:00000000 Result:00000001 – WParamLo:019C WParamHi:0015 LParamLo:0000 LParamHi:0000 ResultLo:0001 ResultHi:0000
30/06/2016 13:34:10: Exception.Message – EInvalidGraphicOperation: Scan line index out of range
TMessage – WParam:001A01D4 LParam:00000000 Result:00000001 – WParamLo:01D4 WParamHi:001A LParamLo:0000 LParamHi:0000 ResultLo:0001 ResultHi:0000Hope it helps,
Ronaldo
July 1, 2016 at 6:41 pm #55229Thank you for the message.
What is version number of your Windows?
July 1, 2016 at 7:29 pm #55230'Support' wrote:Thank you for the message.
What is version number of your Windows?
6.1.7601 Service Pack 1 Compilation 7601
Windows 7 Pro 64 bits Service Pack 1
Best regards,
Ronaldo
July 1, 2016 at 7:52 pm #55231When you receives these error messages?
Can I repeat it in your demo?
July 1, 2016 at 8:16 pm #55232'Support' wrote:When you receives these error messages?
Can I repeat it in your demo?
Nope. As I said, it's in a totally unrelated part of the program and has nothing to do with the magnifier. I probably shoud've created a new thread. Sorry. I just mentioned it here because I've never seen this exception before (from version 10.18 to 10.30) and I noticed it while testing my apps with 11.04 beta regarding the magnifier problem.
Best regards,
Ronaldo
July 1, 2016 at 8:22 pm #55233'Support' wrote:When you receives these error messages?
Can I repeat it in your demo?
This is the form that triggers the error:
[attachment=7758:ExceptionForm.jpg]
July 1, 2016 at 8:38 pm #55234If you provide links to beta versions 11.00, 11.01, 11.02 and 11.03, I'd be glad to test them to see if and when this exception starts to happen.
Best regards,
Ronaldo
July 2, 2016 at 6:50 am #55235I think, this error exists in all subversions of version 11.
Can you give me Dfm-file for this form, please?
July 2, 2016 at 3:23 pm #55243'Support' wrote:I think, this error exists in all subversions of version 11.
Can you give me Dfm-file for this form, please?
I've sent it to support@alphaskins.com.
Best regards,
Ronaldo
July 4, 2016 at 7:31 am #55249Thank you. But this form doesn't helps, unfortunately.
Maybe you can catch and show a full callstack for this error?
Also, can you try to replace a combobox on this form to TsComboBox? What result will you have?
July 4, 2016 at 3:16 pm #55259'Support' wrote:Thank you. But this form doesn't helps, unfortunately.
Maybe you can catch and show a full callstack for this error?
Also, can you try to replace a combobox on this form to TsComboBox? What result will you have?
1) If I replace the regular TComboBox by TsComboBoxes, the exception goes away.
2) Just noticed this exception is happening in other forms containing regular combo boxes.
3) If I turn skins off, the problem goes away.
4) Doing a bit of debugging, the exception seems to be happening in unit sAlphaGraph, procedure DrawSkinGlyph, line “CopyTransRect(Bmp, MasterBitmap…”:
Code:CALL STACK:
DrawSkinGlyph($7778F44,(351, 12),???,1,(nil, 'COMBOBOX', 'GLYPHMASK', (32, 63, 59, 68, (32, 63), (59, 68)), 3, 0, 0, 0, itisaGlyph, $26BBFF0, 0, 0, 0, 0, 0, 67, 9, 5),($7778F44, 0, 0, 16711935, (0, 0, 0, 0, (0, 0), (0, 0)), True))
TacComboBoxWnd.PaintButton(???)
TacComboBoxWnd.RepaintButton
TacComboBoxWnd.acWndProc(???)
TsSkinProvider.AC_WMActivate(???)
TsSkinProvider.NewWndProc((6, 1, 657264, 0, 1, 0, 1904, 10, 0, 0))
TacMainWnd.CallPrevWndProc(???,???,1,657264)
TacScrollWnd.acWndProc((6, 1, 657264, 0, 1, 0, 1904, 10, 0, 0))Code:procedure DrawSkinGlyph(Bmp: TBitmap; P: TPoint; State, AddedTransparency: integer; const MaskData: TsMaskData; const CI: TCacheInfo);
var
w, h, cy, cx, dw: integer;
begin
w := MaskData.Width;
h := MaskData.Height;
if State >= MaskData.ImageCount then
State := MaskData.ImageCount – 1;dw := State * w;
cy := iff(p.y < 0, -p.y, 0);
cx := iff(p.x < 0, -p.x, 0);
with MaskData.R do
if MaskData.Bmp = nil then
with TsSkinManager(MaskData.Manager) do begin
if (MaskData.Manager nil) and (MaskData.ImageCount > 0) then
if MaskData.MaskType > 0 then
BlendGlyphByMask(Rect(p.x + cx, p.y + cy, p.x + w – 1 + cx, p.y + h + cy {- 1}),
Rect(dw + cx + Left, cy + Top, dw + w – 1 + cx + Left, h – 1 + cy + Top),
Bmp, MasterBitmap, AddedTransparency, MaskData)
else
if AddedTransparency 1 then
BlendTransRectangle(Bmp, p.x + cx, p.y + cy, MasterBitmap,
Rect(dw + cx + Left, cy + Top, dw + cx + Left + w – 1, cy + Top + h – 1),
127)
else
>>>>>>>>>> CopyTransRect(Bmp, MasterBitmap, p.x + cx, p.y + cy, <<<<<<< EXCEPTION HERE
Rect(dw + cx + Left, cy + Top, dw + cx + Left + w – 1, cy + Top + h – 1),
clFuchsia, CI, True);
end
else
if (Right <= MaskData.Bmp.Width) and (Bottom <= MaskData.Bmp.Height) then
BlendGlyphByMask(Rect(p.x + cx, p.y + cy, p.x + w – 1 + cx, p.y + h + cy – 1),
Rect(dw + cx + Left, cy + Top, dw + w – 1 + cx + Left, h – 1 + cy + Top),
Bmp, MaskData.Bmp, AddedTransparency, MaskData);
end;Hope it helps!
Best regards,
Ronaldo
July 5, 2016 at 1:47 pm #55263Did some quick testing and, as far as I can tell, both the issue with the magnifier and the exception are solved in 11.05beta.
Good job!
Best regards,
Ronaldo
-
AuthorPosts
- You must be logged in to reply to this topic.