Results 1 to 3 of 3

Thread: Help requested to solve crash problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Question Help requested to solve crash problem

    Hello!

    Since years I am facing the problem that during backup Windows reports that a file is locked.
    Most often it occurs with Visual Studio files.
    It causes an error that I need to inspect to see if it is serious or not.

    Also I often use an app named LockHunter, but I don't like using closed source software.

    While I was searching information on how to implement my own "LockHunter" and also to be able to copy a locked file, I found a code on a website that seems to provide some information about how to do that and even provided some VB6 source code for a start. Using archive.org, I was able to get the accompanying VB6 files.
    I tried to enhance it with comments and to implement a functionality that would allow to copy a locked file.

    However, I experience a crash, and my knowledge about this is still too limited to see what exactely I am doing wrong.

    I have attached the project.

    Thank you very much for any help.
    Attached Files Attached Files

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Re: Help requested to solve crash problem

    Sorry to ask, but would be anybody experienced enough with these APIs to make it work?

  3. #3
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: Help requested to solve crash problem

    Well using runtime dependent functions and non-typelib API calls in multithreading is pretty much guaranteed to crash, for starters. Need something like The trick's modMultithreading2.bas ..Not even sure why you'd start a new thread there then just wait on it.

Tags for this Thread

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