End Sub Fatal Error...

Discussion in 'AutoCAD' started by Joldy, Jun 16, 2004.

  1. Joldy

    Joldy Guest

    Hi,

    I've got a VBA project with many routines inside. There is one main routine ("setup") which is the beginning of my pgrm. When I run setup, everything is ok until I am to the end sub's line. Then I get a fatal error from Autocad.

    Why Autocad failes at the end sub line ?
    What has happened ?

    This is my last bug before the end of my work !

    Any help would be really appreciate...
    Regards...
     
    Joldy, Jun 16, 2004
    #1
  2. Joldy

    Joe Sutphin Guest

    Without seeing some code, it's virtually impossible to make any kind of stab
    at what may be causing your situation.

    Joe
    --

    routine ("setup") which is the beginning of my pgrm. When I run setup,
    everything is ok until I am to the end sub's line. Then I get a fatal error
    from Autocad.
     
    Joe Sutphin, Jun 16, 2004
    #2
  3. Joldy

    wivory Guest

    ...however I'll have a stab anyway. ;-)

    The fact that it fails on the End Sub line suggests to me that it's some kind of stack problem. In simple terms if you started a For loop and then the End Sub appeared without any Next statement that would be the type of thing. However this example is simplistic and the compiler would catch something like this. So if it is this it would be something more subtle - something not closed/released/finished??

    HTH

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Jun 17, 2004
    #3
  4. Joldy

    Joldy Guest

    Joe: Unfortunately I can't give you some code 'cause my all project is very big and the routine ,which crashes,works fine if I don't launch other routines from this one. So giving some code won't be helpful. Thanks for your answer :)

    Wivory: 1) I agree, I think It's a stack problem. I've realized this yesterday evening. 2) Actually I know that I've sometimes error 6 when opening some drawings. I'm wondering if the crash could come from this ?? Thanks for your advice.

    Thanks Joe and Wayne for your quickly answer's

    Regards Olivier
     
    Joldy, Jun 17, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.