Results 1 to 7 of 7

Thread: Environment vs. EXE

  1. #1

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510

    Question Environment vs. EXE

    I have a program that is producing a Windows Illegal Operation error in itself when executing a certain line of code.

    When I run the program in the environment, the variables contain the right numbers and the program executes properly.

    Then I compile and run the stand-alone EXE and when it runs this exact operation I get a Windows Illegal Operation Error. The program caused a fault in itself at registers etc. etc.

    Anyone know why it works flawlessly in the environment, but errors when run as a stand alone????

    Any leads or information would be helpful and greatly appreciated...

    thanks!
    "If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Just a thought, but if you unchecked any options in the advanced optomizations in the compile options, check them again. That may be the problem...
    You just proved that sig advertisements work.

  3. #3

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    Thanks for the info. I am not multithreading. There is however and STOP statement in one part of my code, but this code is not executed at anytime when the error occurs.

    Also, it seems that the error is occuring when using the CALL statement. I put a break where it was faulting and stepped over that line... but it crapped out the same way when it hit another CALL statement.


    thanks again...

    any help appreciated!!!
    "If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    What are you CALLing?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    I am calling another public sub.. like so:

    Call Circular

    the other one it crapped out on when I stepped over the above one was this:

    Call frmMain.CleanUp


    thanks again...
    "If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"

  6. #6
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Try erasing CALL and just writing the sub name.

    ex:

    Circular

    or

    frmMain.Whatever
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  7. #7

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    i'll try it... thanks again!!
    "If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"

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