<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPReportControl Access Violation</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPReportControl Access Violation]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:08:56 +0000</pubDate>
  <lastBuildDate>Sat, 19 May 2007 09:28:36 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=7118</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi Oleg, thanks for your reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=23066&amp;title=cxtpreportcontrol-access-violation#23066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 19 May 2007 at 9:28am<br /><br />Hi Oleg, <br><br>thanks for your reply. It works now. I used a little different access than it's used in Grep sample but with the same idea. The problem was in collision between AddRecord() and Populate(). After synchronization of these problematic operations it works fine.<br><br>Lajbr<br>]]>
   </description>
   <pubDate>Sat, 19 May 2007 09:28:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=23066&amp;title=cxtpreportcontrol-access-violation#23066</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi, you have call Populate in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22917&amp;title=cxtpreportcontrol-access-violation#22917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 16 May 2007 at 5:45am<br /><br /><DIV>Hi,</DIV><DIV>you have call Populate&nbsp; in main thread.&nbsp; See our Grep sample - it create records in work thread but call Populate in main.</DIV>]]>
   </description>
   <pubDate>Wed, 16 May 2007 05:45:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22917&amp;title=cxtpreportcontrol-access-violation#22917</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi Oleg,  thank for your advice...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22889&amp;title=cxtpreportcontrol-access-violation#22889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 15 May 2007 at 11:06am<br /><br />Hi Oleg,  <br><br>thank for your advice but that's nearly what I'm doing. In the thread I read e-mails from the disk and add them by AddRecord() to the CXTPReportControl or receive &amp; send to the server (add or remove records) in the similar way. When the operation is succesfully done then I call Populate() to the control for ensuring the correct folder content. But I'm doing this Populate in the working thread. I think that doesn't matter if I'm doing the filling and repainting of the CXTPReportControl content in the same thread or in two separate threads. I think the 1st solution is maybe more safety. If the new folder content is required during filling or repaiting of the CXTPReportControl, then I set the sign for skip the previous thread and I'm waiting with WaitForSingleObject() till the first one thread finish. I consult this with my college and I think that it's safe enough for ensure correct thread synchronization and correct thread behaviour. Do you think that there is something wrong?<br><br>Lajbr<br>]]>
   </description>
   <pubDate>Tue, 15 May 2007 11:06:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22889&amp;title=cxtpreportcontrol-access-violation#22889</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hello,  I think you need receive...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22867&amp;title=cxtpreportcontrol-access-violation#22867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 15 May 2007 at 1:11am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I think you need receive emails in thread and then send message to main thread to repopulate report.</DIV>]]>
   </description>
   <pubDate>Tue, 15 May 2007 01:11:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22867&amp;title=cxtpreportcontrol-access-violation#22867</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi,yes you are right, because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22866&amp;title=cxtpreportcontrol-access-violation#22866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 15 May 2007 at 12:59am<br /><br />Hi,<br><br>yes you are right, because if you load an e-mail folder with e.g. 5000 e-mails or more, then you cannot do it in the main thread... So the loading of content is running in the different thread which is started only for load and the other operation works in the main thread. I suppose that you are right that this is the problem and I solve this synchronization, on the other hand I saw yesterday simmilar problem when the load was started and I move with the mouse, it crash in something (i don't know it directly) which is common with ToolTip text in CXTPReportControl or CXTPReportControlRow. But this is type of operation, which I cannot influence...<br><br>Lajbr<br>]]>
   </description>
   <pubDate>Tue, 15 May 2007 00:59:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22866&amp;title=cxtpreportcontrol-access-violation#22866</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi,I will add NULL validation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22857&amp;title=cxtpreportcontrol-access-violation#22857</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 14 May 2007 at 5:31pm<br /><br />Hi,<br><br>I will add NULL validation here, but this is strange and unexpected error.<br>&nbsp;<br>It looks for me like you work with Report control from different threads: while working thread populating control -- the main thread redraws it. Is it correct? If so, note that Report is not a multi-threaded control - there are no locks inside. You have to add a critical section and enter it before and using control. Or add some other thread synchronization mechanism by yourself.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 14 May 2007 17:31:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22857&amp;title=cxtpreportcontrol-access-violation#22857</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : I forgot mentioned that this happend...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22812&amp;title=cxtpreportcontrol-access-violation#22812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 13 May 2007 at 5:49am<br /><br />I forgot mentioned that this happend in CodeJock 10.4.2.<br><br>Lajbr<br><br>]]>
   </description>
   <pubDate>Sun, 13 May 2007 05:49:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22812&amp;title=cxtpreportcontrol-access-violation#22812</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl Access Violation : Hi,I wrote already that I use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22811&amp;title=cxtpreportcontrol-access-violation#22811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7118<br /><strong>Posted:</strong> 13 May 2007 at 5:46am<br /><br />Hi,<br><br>I wrote already that I use CXTPReportControl in my e-mail client to the representation of the e-mail storage. Try to imagine e-mail client similar like example GUI Outlook but with the list of e-mails in this control. I use only one class (because of saving memory space), so when the e-mail folder in the treeview is changed then I clear the previous content, load a new one and draw them by Populate(). The trouble is, that several times I have seen an first-chance exception during loading of the list (after application startup) or during fast switching among directories, when I work with this control very hard (all mentioned operation are done very fast in the sequence).<br>I have a problem with Access violation:<br><i>&nbsp;First-chance exception at 0x00a03763 in ttt.exe: 0xC0000005: Access violation reading location 0x00000000.<br>Unhandled exception at 0x00a03763 in ttt.exe: 0xC0000005: Access violation reading location 0x00000000.<br></i>When I debug this problem in VS2005 the problems occurs in <i>xtpreportcontrol.cpp Line 908</i> because <i>nRowCount</i> (<i>Line 877</i>) has previous not zero value e.g. 1000 (<i>int nRowCount = m_pRows-&gt;GetCount();</i>) but  <br><i>CXTPReportRow* pRow = m_pRows-&gt;GetAt(i);</i> is <b>NULL</b> and there is no check for validity of <i>pRow</i> but it's directly use at this line and the problem is happend... <br><br>Lajbr<br>]]>
   </description>
   <pubDate>Sun, 13 May 2007 05:46:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7118&amp;PID=22811&amp;title=cxtpreportcontrol-access-violation#22811</guid>
  </item> 
 </channel>
</rss>