|
-
May 22nd, 2001, 04:10 PM
#1
Thread Starter
Junior Member
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???
-
May 22nd, 2001, 06:10 PM
#2
Addicted Member
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!"
-
May 23rd, 2001, 11:01 AM
#3
Thread Starter
Junior Member
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.
-
May 23rd, 2001, 11:04 AM
#4
-
May 24th, 2001, 09:11 AM
#5
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|