<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>I hope someone can help. I’m using the freeware TNT controls with D7 for a TTntListView component. This is working fine for many users but one user experiences a crash when simply using the keyboard to move up and down the listview. He is using Win8 64-bit as I do here, but I can’t duplicate it.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>It is a virtual listview using OnData. Here is a portion of a MadExcept log. Can provide more if required.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>exception message : Access violation at address 0050DA73 in module 'SPLStudio.exe'. Write of address 00000000.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>main thread ($d88):<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>0050da73 SPLStudio.exe TntWideStrUtils 180 +10 WStrLCopy<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>0053e20e SPLStudio.exe TntComCtrls 2104 +46 TTntCustomListView.CNNotify<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004f304f SPLStudio.exe Controls 4645 +53 TControl.WndProc<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004f6d5e SPLStudio.exe Controls 6342 +33 TWinControl.WndProc<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004c04a5 SPLStudio.exe ComCtrls 14815 +12 TCustomListView.WndProc<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>0053dee4 SPLStudio.exe TntComCtrls 2023 +98 TTntCustomListView.WndProc<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>00539335 SPLStudio.exe TntControls 666 +19 TWinControlTrap.WindowProc<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004f2d5a SPLStudio.exe Controls 4552 +5 TControl.Perform<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004f6f20 SPLStudio.exe Controls 6388 +6 DoControlMsg<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>004f772f SPLStudio.exe Controls 6579 +1 TWinControl.WMNotify<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Code in TntComCtrls.pas where it crashes updating a list item caption...</span><span style='font-size:10.0pt'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> // handle any text info<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> with PLVDispInfoW(NMHdr)^.item do<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> if (mask and LVIF_TEXT) <> 0 then<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> Item := GetItemW(PLVDispInfoW(NMHdr)^.item);<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> if iSubItem = 0 then<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>>>>>> WStrLCopy(pszText, PWideChar(Item.Caption), cchTextMax - 1)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> else begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> with Item.SubItems do begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> if iSubItem <= Count then<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> WStrLCopy(pszText, PWideChar(Strings[iSubItem - 1]), cchTextMax - 1)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> else pszText[0] := #0;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Any ideas appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Ross,<o:p></o:p></span></p></div></body></html>