<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=utf-8"><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:12.0pt;
        font-family:"Times New Roman","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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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-family:"Calibri","sans-serif";color:#1F497D'>Thanks for your help </span><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>Jolyon.</span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>It appears to be TNT version 2.3.0. I don’t think it has been updated since 2007 and I installed it last year I think.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Here is the entire CNNotify procedure. I hope this helps.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>procedure TTntCustomListView.CNNotify(var Message: TWMNotify);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>var<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> Item: TTntListItem;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if (not Win32PlatformIsUnicode) then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> else begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> with Message do<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> case NMHdr^.code of<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> HDN_TRACKW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := HDN_TRACKA;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := HDN_TRACKW;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> LVN_GETDISPINFOW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> // call inherited without the LVIF_TEXT flag<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> CurrentDispInfo := PLVDispInfoW(NMHdr);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> OriginalDispInfoMask := PLVDispInfoW(NMHdr)^.item.mask;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> PLVDispInfoW(NMHdr)^.item.mask := PLVDispInfoW(NMHdr)^.item.mask and (not LVIF_TEXT);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_GETDISPINFOA;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_GETDISPINFOW;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if (OriginalDispInfoMask and LVIF_TEXT <> 0) then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> PLVDispInfoW(NMHdr)^.item.mask := PLVDispInfoW(NMHdr)^.item.mask or LVIF_TEXT;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> CurrentDispInfo := nil;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> // handle any text info<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> with PLVDispInfoW(NMHdr)^.item do<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if (mask and LVIF_TEXT) <> 0 then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> Item := GetItemW(PLVDispInfoW(NMHdr)^.item);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if iSubItem = 0 then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> WStrLCopy(pszText, PWideChar(Item.Caption), cchTextMax - 1)<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> else begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> with Item.SubItems do begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if iSubItem <= Count then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> WStrLCopy(pszText, PWideChar(Strings[iSubItem - 1]), cchTextMax - 1)<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> else pszText[0] := #0;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> LVN_ODFINDITEMW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> with PNMLVFindItem(NMHdr)^ do<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if ((lvfi.flags and LVFI_PARTIAL) <> 0) or ((lvfi.flags and LVFI_STRING) <> 0) then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> PWideFindString := TLVFindInfoW(lvfi).psz<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> else<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> PWideFindString := nil;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> lvfi.psz := nil;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_ODFINDITEMA;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited; {will Result in call to OwnerDataFind}<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> TLVFindInfoW(lvfi).psz := PWideFindString;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_ODFINDITEMW;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> PWideFindString := nil;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> LVN_BEGINLABELEDITW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> Item := GetItemW(PLVDispInfoW(NMHdr)^.item);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if not CanEdit(Item) then Result := 1;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if Result = 0 then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> FEditHandle := ListView_GetEditControl(Handle);<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> FDefEditProc := Pointer(GetWindowLongW(FEditHandle, GWL_WNDPROC));<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> SetWindowLongW(FEditHandle, GWL_WNDPROC, LongInt(FEditInstance));<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> LVN_ENDLABELEDITW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> with PLVDispInfoW(NMHdr)^ do<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> if (item.pszText <> nil) and (item.IItem <> -1) then<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> Edit(TLVItemA(item));<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> LVN_GETINFOTIPW:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> begin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_GETINFOTIPA;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> try<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> finally<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> NMHdr^.code := LVN_GETINFOTIPW;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> else<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> inherited;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>end;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Many thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Ross.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> delphi-bounces@listserver.123.net.nz [mailto:delphi-bounces@listserver.123.net.nz] <b>On Behalf Of </b>Jolyon Smith<br><b>Sent:</b> Tuesday, 4 November 2014 9:10 a.m.<br><b>To:</b> NZ Borland Developers Group - Delphi List<br><b>Subject:</b> Re: [DUG] Access violation in TTntCustomListView (Delphi 7)<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>What version of TNT are you using ?<br><br>There is nothing intrinsically wrong with the line on which the error is occurring, which suggests that the problem is with the parameters involved. Given that it is a write op to a NIL address, this points the finger at the destination of the WStrLCopy()... the pszText member of the item data.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>There is potential for the pszText parameter to be invalid, if the LVIF_TEXT flag is not set in the notification mask. According to the community additions on the MSDN ref for the LVN_DISPINFO notification (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb774818(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/bb774818(v=vs.85).aspx</a>), this is specifically the case on Windows 8 when list selection changes, as would occur when keying up/down through the list, for example.<br><br>So far, everything seems to point in the same direction....<br><br><br>However, the code you have quoted above is conditional on the LVIF_TEXT flag being set, but there is code that precedes this in TNT which invokes the inherited implementation of the CNNotify handler, removing and re-instating the LVIF_TEXT flag in the process.<br><br>The reason I ask about the version you are using is that in the version I am looking at (2.3.0) this preceding code appears to handle the LVIF_TEXT flag correctly, only re-applying the LVIF_TEXT flag if it was originally set. But I wonder if you have some version of the TNT code which perhaps contains a flaw in this area and is adding this flag when it shouldn't ?<br><br>Or is it possible that your copy of the source has been modified from the TNT original in a way that might have introduced such a flaw ?<br><br><br>It might be helpful to post the entire LVN_GETDISPINFOW handler from the CNNotify() method, to be sure.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 3 November 2014 20:06, Ross Levis <<a href="mailto:ross@stationplaylist.com" target="_blank">ross@stationplaylist.com</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='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.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>It is a virtual listview using OnData. Here is a portion of a MadExcept log. Can provide more if required.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>exception message : Access violation at address 0050DA73 in module 'SPLStudio.exe'. Write of address 00000000.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>main thread ($d88):</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>0050da73 SPLStudio.exe TntWideStrUtils 180 +10 WStrLCopy</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>0053e20e SPLStudio.exe TntComCtrls 2104 +46 TTntCustomListView.CNNotify</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004f304f SPLStudio.exe Controls 4645 +53 TControl.WndProc</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004f6d5e SPLStudio.exe Controls 6342 +33 TWinControl.WndProc</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004c04a5 SPLStudio.exe ComCtrls 14815 +12 TCustomListView.WndProc</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>0053dee4 SPLStudio.exe TntComCtrls 2023 +98 TTntCustomListView.WndProc</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>00539335 SPLStudio.exe TntControls 666 +19 TWinControlTrap.WindowProc</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004f2d5a SPLStudio.exe Controls 4552 +5 TControl.Perform</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004f6f20 SPLStudio.exe Controls 6388 +6 DoControlMsg</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>004f772f SPLStudio.exe Controls 6579 +1 TWinControl.WMNotify</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>...</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>Code in TntComCtrls.pas where it crashes updating a list item caption...</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> // handle any text info</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> with PLVDispInfoW(NMHdr)^.item do</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> begin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> if (mask and LVIF_TEXT) <> 0 then</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> begin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> Item := GetItemW(PLVDispInfoW(NMHdr)^.item);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> if iSubItem = 0 then</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>>>>>> WStrLCopy(pszText, PWideChar(Item.Caption), cchTextMax - 1)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> else begin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> with Item.SubItems do begin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> if iSubItem <= Count then</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> WStrLCopy(pszText, PWideChar(Strings[iSubItem - 1]), cchTextMax - 1)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> else pszText[0] := #0;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> end;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> end;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> end;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'> end;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>Any ideas appreciated.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>Thanks,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>Ross,</span><o:p></o:p></p></div></div><p class=MsoNormal><br>_______________________________________________<br>NZ Borland Developers Group - Delphi mailing list<br>Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>