Results 1 to 5 of 5

Thread: An error in EXE which doesn't happen in Design Environment

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    Puyallup, Wa
    Posts
    25

    Unhappy An error in EXE which doesn't happen in Design Environment

    Okay. As a preface, I've been doing this for over 5 years, and this has got me stumped.

    I'm getting an error: Run-time error '5': Illegal Function Call when I'm running the .exe . I do not get this when running in the design environment (Start with Full Compile). I cannot track down what or where the error is caused.

    As a given, all 'on error resume next' statements are commented out. I'm using Option Explicit.

    In order to attempt to trap it the old fashioned way, I have msgbox's in certain places, but the oddest thing happens. No matter where I put my msgbox's I still get the error, but the msgbox is behind the error dialog box. I can still click on 'OK' on my msgbox and the program terminates.

    Kind of a tough one to explain, but even tougher to figure out. Anyone???
    dvc

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    Could you post a snippet of the code so we can better understand the problem? Illegal Function could be from a few reasons.
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    Puyallup, Wa
    Posts
    25

    Posting the code

    Actually, that's the deal... I can't isolate which piece of code is causing the issue. I have done error trapping in every sub or function (not resume next) and it won't trigger. Stepping through shows no errors anywhere. But, as I said, running the standalone exe generates the error when attempting a particular function.
    dvc

  4. #4
    jim mcnamara
    Guest
    Any function or just a
    particular function
    ?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    Puyallup, Wa
    Posts
    25
    It all had to do with showing msgbox or other vbModal forms within the context of a current vbModal... Still wierd, but at least I figured it out. I don't understand why it wasn't happening when running in my ie.
    dvc

Posting Permissions

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



Click Here to Expand Forum to Full Width