Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 415

Problem with AUTOSETPROPERTY for 64-bit Applications

$
0
0

Hello:

I am running Windows 10, Excel 2016, using the 17.0.2.187 Intel compiler.  I am having a problem with Fortran interfacing with Excel, I and see that I can replicate it with the Autodice example (which is much easier than trying to reproduce a simple test case from my original code).  I take the autodice example, and I can run it as is, other than making a tiny tweak to allow it to recognize Excel 2016.  (Specifically, I changed the do-loop on line 69 to start at 16 instead of 15.)

However, when I switch the platform from "Win32" to "x64", it compiles fine but crashes when running.  It gives an access violation error on line 134:

status = AUTOSETPROPERTY (range, "VALUE", cellCounts)

I have noticed that if the range passed in (i.e., via "cellCounts") is a single value, instead of an array, it works fine.  And as long as the platform is set to Win32, even an array works fine.  But when using x64, it crashes.  Any idea why?

Thanks for your help.
Michael


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>