Results 1 to 5 of 5

Thread: Annoying runtime error :(

  1. #1

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267

    Annoying runtime error :(

    Because I have to close an app with the sendmessage API (with WM_DESTROY) I kill all instances and now the problem is that I want to delete the file I just killed... But my code keeps getting the runtime error 70: Permission denied when I do the Kill command!
    Anyone got a solution for this? I can't just quit the application normally with the Killapp API... But I do need to kill it...

    Greetz Pieter

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    It sounds like you are not closing the file before you are attempting to delete it.

  3. #3

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267
    Well... Like I just explained. I did! But I stopped it unusual! I have to do it like that! Or maybe an extension or something is using the prog's API's?

    Greetz Pieter
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  4. #4
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    u may try to use WM_CLOSE rather than WM_DESTROY.. to close the application. WM_DESTROY doesn't do the necessary cleanup

  5. #5
    Addicted Member
    Join Date
    Oct 2001
    Location
    Bangalore ,India
    Posts
    240
    hi
    the error no: 70 appears when yu select a folder which DOES NOT HAVE THE WRITE OPTION ,AND YU TRY TO WRITE......
    "No Write Access for the selected folder"
    well, try to give the access rights for teh particular folder and then try ,
    yu can check with FSO object .......
    ,,,,
    SenthilVelan

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