<?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 Trying to catch overflow/divide zero errors in .dll in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Trying-to-catch-overflow-divide-zero-errors-in-dll/m-p/970808#M23874</link>
    <description>Version 6.6, Win2000 Professional SP2, Excel 2000 &lt;BR /&gt; &lt;BR /&gt;I've read the four posts regarding the topic of 'overflow' and dlls, my problem is somewhat related, but not covered by them. &lt;BR /&gt; &lt;BR /&gt;We have been getting Overflow errors when using an Excel VBA spreadsheet using a CVF compiled dll.  The errors occur in sections of the mathematics where an unreasonably large number (&amp;gt; 1e300) may come from iteration.   &lt;BR /&gt; &lt;BR /&gt;I've tried 'Stop Always' in the Exceptions, as well as setting the Floating Point Exception handling to zero, in neither case does it interrupt at an infinite value. &lt;BR /&gt; &lt;BR /&gt;I then made some test code like below: &lt;BR /&gt; &lt;BR /&gt;subroutine tst3 &lt;BR /&gt;real*8 a(10) &lt;BR /&gt;integer i,j,k &lt;BR /&gt; &lt;BR /&gt;do i = 100,1000,100 &lt;BR /&gt;   a(1) = 10**(real(i)) &lt;BR /&gt;enddo &lt;BR /&gt; &lt;BR /&gt;END subroutine tst3 &lt;BR /&gt; &lt;BR /&gt;and compiled both as .exe and .dll  The .exe breaks when a(1) &amp;gt; 1e300.  I wrote a quick VB driver for the .dll, it doesn't break, it simply gives 'Infinity' in the debugger.   &lt;BR /&gt; &lt;BR /&gt;Are there any other compiler options to check so we can trap the error before it hangs VB?   &lt;BR /&gt; &lt;BR /&gt;Any advice appreciated, &lt;BR /&gt;dfh</description>
    <pubDate>Thu, 25 Oct 2001 07:10:21 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-10-25T07:10:21Z</dc:date>
    <item>
      <title>Trying to catch overflow/divide zero errors in .dll</title>
      <link>https://community.intel.com/t5/Software-Archive/Trying-to-catch-overflow-divide-zero-errors-in-dll/m-p/970808#M23874</link>
      <description>Version 6.6, Win2000 Professional SP2, Excel 2000 &lt;BR /&gt; &lt;BR /&gt;I've read the four posts regarding the topic of 'overflow' and dlls, my problem is somewhat related, but not covered by them. &lt;BR /&gt; &lt;BR /&gt;We have been getting Overflow errors when using an Excel VBA spreadsheet using a CVF compiled dll.  The errors occur in sections of the mathematics where an unreasonably large number (&amp;gt; 1e300) may come from iteration.   &lt;BR /&gt; &lt;BR /&gt;I've tried 'Stop Always' in the Exceptions, as well as setting the Floating Point Exception handling to zero, in neither case does it interrupt at an infinite value. &lt;BR /&gt; &lt;BR /&gt;I then made some test code like below: &lt;BR /&gt; &lt;BR /&gt;subroutine tst3 &lt;BR /&gt;real*8 a(10) &lt;BR /&gt;integer i,j,k &lt;BR /&gt; &lt;BR /&gt;do i = 100,1000,100 &lt;BR /&gt;   a(1) = 10**(real(i)) &lt;BR /&gt;enddo &lt;BR /&gt; &lt;BR /&gt;END subroutine tst3 &lt;BR /&gt; &lt;BR /&gt;and compiled both as .exe and .dll  The .exe breaks when a(1) &amp;gt; 1e300.  I wrote a quick VB driver for the .dll, it doesn't break, it simply gives 'Infinity' in the debugger.   &lt;BR /&gt; &lt;BR /&gt;Are there any other compiler options to check so we can trap the error before it hangs VB?   &lt;BR /&gt; &lt;BR /&gt;Any advice appreciated, &lt;BR /&gt;dfh</description>
      <pubDate>Thu, 25 Oct 2001 07:10:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Trying-to-catch-overflow-divide-zero-errors-in-dll/m-p/970808#M23874</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-25T07:10:21Z</dc:date>
    </item>
  </channel>
</rss>

