<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : System.Runtime.InteropServices.SEHException</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : System.Runtime.InteropServices.SEHException]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 15:42:37 +0000</pubDate>
  <lastBuildDate>Mon, 30 Apr 2018 20:24:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3556</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Hi,if TFrost is right regarding...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14185.html#14185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 30 Apr 18 at 8:24PM<br /><br />Hi,<br><br>if TFrost is right regarding the memory consumption it could be good to calculate the sizes of your pdf-documents...<br>make a break from time to time with a Free...<br>keep the actual page number in mind...<br>and start new with the last page number?<br><br>]]>
   </description>
   <pubDate>Mon, 30 Apr 2018 20:24:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14185.html#14185</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : You have not said anything about...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14183.html#14183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 30 Apr 18 at 11:30AM<br /><br />You have not said anything about the size of your PDFs or the size of the images, or how uniform their sizes are. The images may need to pass through an intermediate (uncompressed) BMP on the way to their save format, and multiple copies may also be in memory. The fact that freeing the image list improves matters implies that the lack of memory is genuine. 500MB of free memory is by no means a huge amount, and your problem may be caused by memory fragmentation even when the total shown by Task Manager appears to be large enough (Process Explorer might show more detail).&nbsp; I would recommend increasing your virtual memory space to a few GB to see of this solves the problem.&nbsp; I do not use .Net so I have no idea how to deal with memory fragmentation in this environment, but it is a common problem when dealing with large bitmaps in a limited memory pool.]]>
   </description>
   <pubDate>Mon, 30 Apr 2018 11:30:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14183.html#14183</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : I tried the DA-functions, still...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14182.html#14182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3019">imsudheer</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 30 Apr 18 at 6:28AM<br /><br /><span style=": rgb251, 251, 253;">I tried the DA-functions, still the same issue.&nbsp;</span><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">My question is, even though I have released the image and imagelist after the use and removing the document from the Library, why I am getting the "Out of memory" exception.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Release resources is not working? Am I missing anything?</span></div>]]>
   </description>
   <pubDate>Mon, 30 Apr 2018 06:28:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14182.html#14182</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Thanks for the reply.My code is...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14181.html#14181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3019">imsudheer</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 30 Apr 18 at 4:10AM<br /><br />Thanks for the reply.<div><br></div><div>My code is referred from the same kb-sample you mentioned.</div><div><br></div><div>I have added the code to remove the each image file from memory after saving as</div><div><br></div><div><div>&nbsp;pdfLibrary.SaveImageListItemDataToFile(il, k, 0, Path.Combine(path, filename));</div><div>&nbsp;pdfLibrary.ReleaseImage(imageIndex);</div></div><div><br></div><div><br></div><div>I see there is some improvement in the process, as I am able to extract around 45 files without "Outofmemory" exception, earlier I used to get the same exception only for 10 files. So it got better after the above change.&nbsp;</div><div><br></div><div>I haven't tried the DA-functions yet, will try and post the result.</div>]]>
   </description>
   <pubDate>Mon, 30 Apr 2018 04:10:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14181.html#14181</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Perhaps this kb-sample can hel...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14180.html#14180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 29 Apr 18 at 8:52PM<br /><br />Perhaps this kb-sample can help?<br>http://www.debenu.com/kb/extract-images-from-pdf-files-as-the-appropriate-image-type/<br>What about trying the DA-functions for your needs using less memory?<br>http://www.debenu.com/docs/pdf_library_reference/ImageHandling.php<br><br><br>]]>
   </description>
   <pubDate>Sun, 29 Apr 2018 20:52:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14180.html#14180</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Yes, what you mentioned about...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14179.html#14179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3019">imsudheer</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 29 Apr 18 at 5:17PM<br /><br />Yes, what you mentioned about the page count part. I will take care of that.<div><br></div><div>And I have tried the "ReleaseImageList" option, but im still getting the Out of memory exception.</div>]]>
   </description>
   <pubDate>Sun, 29 Apr 2018 17:17:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14179.html#14179</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : I think you need to add ReleaseImageList....]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14178.html#14178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 28 Apr 18 at 5:03PM<br /><br />I think you need to add ReleaseImageList.&nbsp; Also your main loop is described in the comments as iterating through the pages, but in this case you should first find the page count, not the image count.&nbsp; Unless you already know that there is guaranteed to be one and only one image per page.]]>
   </description>
   <pubDate>Sat, 28 Apr 2018 17:03:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14178.html#14178</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : I just tried the same code with...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14177.html#14177</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3019">imsudheer</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 28 Apr 18 at 3:47PM<br /><br />I just tried the same code with ActiveX DLL, here it is throwing "Out of memory" exception as below<div><br></div><div><div>&nbsp; &nbsp;at FileProcessor.ImageExtractor.ExtractImages(String fileName, String outPath) in C:\FileProcessor\ImageExtractor.cs:line 51</div><div>1506700 &#091;1&#093; ERROR FileProcessor.ImageExtractor (null) - Error Message: Out of memory</div><div>System.Runtime.InteropServices.COMException (0x8000FFFF): Out of memory</div><div>&nbsp; &nbsp;at DebenuPDFLibraryAX1511.IPDFLibrary.FindImages()</div></div><div><br></div><div>But I am removing the document after the use in loop...Im not sure what is missing here</div><div><br></div><div>And what is the advantages of Active X DLL compared to "DLL" Version?</div>]]>
   </description>
   <pubDate>Sat, 28 Apr 2018 15:47:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14177.html#14177</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Hi Ingo,Thanks for the reply.Files...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14176.html#14176</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3019">imsudheer</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 28 Apr 18 at 4:43AM<br /><br />Hi Ingo,<div><br></div><div>Thanks for the reply.</div><div><br></div><div>Files are not encrypted. See my code below.</div><div><br></div><div><br></div><div>&nbsp;foreach (var filename in Directory.GetFiles(searchPath, "*.pdf", SearchOption.TopDirectoryOnly))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine("Extracting images from {0}", System.IO.Path.GetFileName(filename));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ImageExtractor.ExtractImages(filename, outputPath);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine("Extracting images from {0} is completed.", System.IO.Path.GetFileName(filename));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</div><div><br></div><div><br></div><div><div>&nbsp;public static void ExtractImages(string fileName, string outPath)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log4net.Config.BasicConfigurator.Configure();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log4net.ILog log = log4net.LogManager.GetLogger(typeof(ImageExtractor));</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Check to see if the library has been successfully unlocked</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pdfLibrary.Unlocked() == 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int DocumentID = pdfLibrary.LoadFromFile(fileName, "");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdfLibrary.SelectDocument(DocumentID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int images = pdfLibrary.FindImages();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string numberOfImages = Convert.ToString(images);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string filename = "";</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Iterate through each page</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt;= images; i++)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Select current page</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdfLibrary.SelectPage(i);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get list of images on the page</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int il = pdfLibrary.GetPageImageList(0);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Count number of images in the list</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int ic = pdfLibrary.GetImageListCount(il);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int k = 1; k &lt;= ic; k++)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Iterate through each image and get the</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // image type and image ID</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int it = pdfLibrary.GetImageListItemIntProperty(il, k, 400);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int gid = pdfLibrary.GetImageListItemIntProperty(il, k, 405);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Choose the approrpriate file extenion based on</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // the returned image type</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (it)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename = "image-" + Convert.ToString(gid) + "-" + k + ".jpg";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename = "image-" + Convert.ToString(gid) + "-" + k + ".bmp";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename = "image-" + Convert.ToString(gid) + "-" + k + ".tif";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename = "image-" + Convert.ToString(gid) + "-" + k + ".png";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine("Unknown image type" + it);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Creating an image directory</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string path = outPath + @"\" + Path.GetFileNameWithoutExtension(fileName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Directory.Exists(path) == false)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Directory.CreateDirectory(path);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Save the selected image to disk</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdfLibrary.SaveImageListItemDataToFile(il, k, 0, Path.Combine(path, filename));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine("Images of the file " + fileName + " saved successfully");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Remove the document from memory</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdfLibrary.RemoveDocument(DocumentID);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File.Delete(fileName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception ex)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log.Error("Error Message: " + ex.Message.ToString(), ex);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine("Error occured in file " + fileName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(ex);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div><br></div><div>Thanks in Advance</div><div><br></div>]]>
   </description>
   <pubDate>Sat, 28 Apr 2018 04:43:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14176.html#14176</guid>
  </item> 
  <item>
   <title><![CDATA[System.Runtime.InteropServices.SEHException : Hi Imsudheer,you should better...]]></title>
   <link>http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14175.html#14175</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3556<br /><strong>Posted:</strong> 27 Apr 18 at 6:00PM<br /><br />Hi Imsudheer,<br><br>you should better post a longer code snippet.<br>Perhaps the error raises while using the mentioned function but the reason of the error is another one?<br>I think you're reading the pdf-content of a directory in a list and then you're working in a loop. Loading each file and do the extractions.<br>Perhaps some files are encrypted? You should do a decryption before working on a pdf.<br>Did you do a free after each pdf?<br>There could be many reasons for such a common error...<br>So better posting a code snippet ;-)<br><br>Cheers and welcome here,<br>Ingo<br><br><br>]]>
   </description>
   <pubDate>Fri, 27 Apr 2018 18:00:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/systemruntimeinteropservicessehexception_topic3556_post14175.html#14175</guid>
  </item> 
 </channel>
</rss>