+ Reply to Thread
Results 1 to 1 of 1

DLL function crash excel when called from worksheet

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Perth, Australia
    MS-Off Ver
    Office 365
    Posts
    4

    DLL function crash excel when called from worksheet

    Hi Everyone,

    I have an issue with excel at the minute I can't for the life of me figure out.
    Using Excel 2016 32 bit:

    Code:
    Please Login or Register  to view this content.
    As expected this will print the answer of 60 to the immediate window.
    However...

    When the divide function (or a function with the divide function) is called from a cell in a worksheet excel crashes. No errors given it's just "stopped working".
    I suspect this doesn't have anything to do with the DLL function itself. Maybe some security issue with excel?

    Any help is appreciated.

    Thanks,

    Edit: I still didn't solve why it's crashing. But I ended up recompiling the dll in gFortran instead and rewriting the VBA code and now it works.
    Last edited by gibus; 03-12-2017 at 09:44 PM. Reason: no longer have problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Crash when cal API function QueryFullProcessImageName
    By hunPo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2015, 03:21 AM
  2. crash after worksheet calculate
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2014, 12:27 AM
  3. Can a Function( ) called from within worksheet write to another cell?
    By 1Gunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 04:19 PM
  4. Excel crash when workbook.close called from button
    By MsgBox in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-18-2012, 04:07 AM
  5. [SOLVED] How to reference the name of the module in which a function is called in a worksheet
    By candy.chiu.ad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2012, 01:28 PM
  6. save active worksheet in directory called in another worksheet cell
    By chi11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2012, 06:15 PM
  7. UDF working when called from Sub, doesn't work as worksheet function
    By stevenf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-28-2009, 07:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1