Results 1 to 7 of 7

Thread: Termanate.. NOW

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    Termanate.. NOW

    I am closing a program, the deleting it and its Dir.

    Problem is its still lingering around and I am getting an Access Violation..

    How do I END a program

    I am ..... unload me
    end

    What am I doing wrong?

    Seahag

  2. #2
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    Are you trying to Kill the same program that is killing the program after the unload, end, whatever?
    seoptimizer2001
    VB 6.0, VC++, VI, ASP, JavaScript, HTML,
    Perl, XML, SQL Server 2000

    If God had intended us to drink beer, He would have given us stomachs.


    Please use the [code] and [vbcode] tags in your posts!
    If you don't know how to use them please go HERE!


  3. #3

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Good question..
    I made sure it wasn't and its still happening..

    Do you know what I am going through>?

  4. #4
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    I know there was a thread recently about finding out what programs are currently running. Maybe you can find that thread and use it to your advantage here to make sure the program is not running when you try to kill it. Or just do an on error resume so that it keeps trying to kill the file until it finally can.
    seoptimizer2001
    VB 6.0, VC++, VI, ASP, JavaScript, HTML,
    Perl, XML, SQL Server 2000

    If God had intended us to drink beer, He would have given us stomachs.


    Please use the [code] and [vbcode] tags in your posts!
    If you don't know how to use them please go HERE!


  5. #5

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Sheesh.. on error resum next doesn't work!@!

    Yikes...

    Really starting to bother me.. I hate when I get stumped..

  6. #6
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    Don't use On Error Resume Next use On Error Resume.
    seoptimizer2001
    VB 6.0, VC++, VI, ASP, JavaScript, HTML,
    Perl, XML, SQL Server 2000

    If God had intended us to drink beer, He would have given us stomachs.


    Please use the [code] and [vbcode] tags in your posts!
    If you don't know how to use them please go HERE!


  7. #7
    Member
    Join Date
    Nov 2000
    Location
    Brisbane, Australia
    Posts
    44
    One question, is the "Access Violation" coming from memory violation, or file violation?

    If you were running a program from c:\Root\Parent\Child, you wouldn't be able to delete the Child directory until you'd changed to maybe the Parent directory would you???
    Boring signature included.

    VB6 SP3.

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