<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Print Dialog timer bug in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/print-dialog-timer-bug/m-p/350390#M2246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Desktop 10.2.2(Print Dialog Hang patch didn't work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's about custom ArcMap application(extension), but below you see standard print dialog. The problem is that after opening and closing several documents smth is leaked. GDI objects count grows to ~2 000. Then combo box in the dialog no longer works. It may heal itself after you open another document, or just close this dialog.&lt;/P&gt;&lt;P&gt;simptoms:&lt;/P&gt;&lt;P&gt;1. combo is unable to draw icon(or is it some bitmap?)&lt;/P&gt;&lt;P&gt;2. combo closes itself after 0.5s(there is SetTimer call inside PrintOutUI.DLL). Why would they use a timer?&lt;/P&gt;&lt;P&gt;3. in the 2nd picture you see how it all starts - on every click it adds more duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas? is it possible to make some magic call somewhere to fix this, some workaround(except export to PDF)?&lt;/P&gt;&lt;P&gt;I tried loading PrintOutUI.dll in advance, prior to opening any documents, but it didn't help(by creating some COM class from the DLL)&lt;/P&gt;&lt;P&gt;GC.Collect/WaitForFinalizer() didn't help.&lt;/P&gt;&lt;P&gt;manually creating and leaking GDI objects didn't cause this problem(hundreds of pen/bitmap/dc/brush, emfs, but no more thant 10k limit)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="printer.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/76114_printer.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="printer2.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/76133_printer2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 17:25:51 GMT</pubDate>
    <dc:creator>ADev</dc:creator>
    <dc:date>2015-03-20T17:25:51Z</dc:date>
    <item>
      <title>Print Dialog timer bug</title>
      <link>https://community.esri.com/t5/developers-questions/print-dialog-timer-bug/m-p/350390#M2246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Desktop 10.2.2(Print Dialog Hang patch didn't work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's about custom ArcMap application(extension), but below you see standard print dialog. The problem is that after opening and closing several documents smth is leaked. GDI objects count grows to ~2 000. Then combo box in the dialog no longer works. It may heal itself after you open another document, or just close this dialog.&lt;/P&gt;&lt;P&gt;simptoms:&lt;/P&gt;&lt;P&gt;1. combo is unable to draw icon(or is it some bitmap?)&lt;/P&gt;&lt;P&gt;2. combo closes itself after 0.5s(there is SetTimer call inside PrintOutUI.DLL). Why would they use a timer?&lt;/P&gt;&lt;P&gt;3. in the 2nd picture you see how it all starts - on every click it adds more duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas? is it possible to make some magic call somewhere to fix this, some workaround(except export to PDF)?&lt;/P&gt;&lt;P&gt;I tried loading PrintOutUI.dll in advance, prior to opening any documents, but it didn't help(by creating some COM class from the DLL)&lt;/P&gt;&lt;P&gt;GC.Collect/WaitForFinalizer() didn't help.&lt;/P&gt;&lt;P&gt;manually creating and leaking GDI objects didn't cause this problem(hundreds of pen/bitmap/dc/brush, emfs, but no more thant 10k limit)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="printer.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/76114_printer.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="printer2.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/76133_printer2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/print-dialog-timer-bug/m-p/350390#M2246</guid>
      <dc:creator>ADev</dc:creator>
      <dc:date>2015-03-20T17:25:51Z</dc:date>
    </item>
  </channel>
</rss>

