Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

The process cannot access the file because it is b

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    The process cannot access the file because it is b

    Hello everybody,

    It's a really nice day but I can't get out into my garden because this problem is DRIVING ME MAD!

    The message, "The process cannot access the file because it is being used by another process" is familiar to many, judging by a search of the message board. Try as I might, though, I can't track down what is causing it in part of a payroll system I am working on. I would be very, very grateful for any help you can give me, probably by telling me what a stupid and obvious mistake I have made.

    I've zipped up a small subset of the application. Please open the database called "database". This should ask you for a password. Type "test" (no quotes).

    You now have an empty screen, with File, Utilities and Help as drop-down menus.

    Click File and then click Employees. This will take you to a form for maintaining employee records. Don't do anything for now.

    Click the Close button (bottom right). Now, from the drop-down File menu, select Weekly processing, then View pay records (there are no other options as I've removed them). In the dialog-type box, accept the default date and click Continue. This will take you to a form called Pay records. Just click the Close button (bottom right) as before, then Close the dialog box.

    OK. Now repeat the above, but when you are in the first (employee maintenance) form, click the little arrow graphic which is at the very top-right of the form, next to where it says Displaying current. Pressing this displays All employee records, including those who have now left this employment.

    Now go back to the drop-down and select Weekly processing then View pay records and then the Continue button. It is here that I get the error. The difference is that, in the Employee maintenance form clicking the little arrow graphic re-indexes and filters the EMPLOYEE table. Everything else works perfectly. A second attempt to access the Pay records form usually works.

    If you click the Help drop-down you can click Debug to go to the Control Panel. The employee maintenance form is called empMaint. You can look at my code attached to the "little arrow" there. The dialog-type box (where you input the date) and the Pay records form are called weeklyGetDate and weeklyCalc, respectively.

    I'd be really grateful for any suggestions.

    Thanks in advance,

    Martin.

    #2
    RE: The process cannot access the file because it

    Martin,

    Are you using A5V4.5 (Build 266) ?

    -- tom

    Comment


      #3
      RE: The process cannot access the file because it

      Using Build 266 I cannot run any of the key scripts through the debugger. Sorry, can't help you.

      -- tom

      Comment


        #4
        RE: The process cannot access the file because it

        Martin,

        I am sorry for the multiple posts. Your button that toggles between Display Current and Display All runs a script that does something I would never ever do. It creates a new filtered index. In the same situation I would simply run or release a query.

        I suggest you verify that this portion of your script is working correctly. To do this kind of thing I believe the script has to get exclusive read/write privileges on the table being indexed. If it's open anywhere (the current form?) the script will fail, but may still be hanging...

        Can't verify these ideas here, but thought I'd mention them.

        -- tom

        Comment


          #5
          RE: The process cannot access the file because it

          Thanks, Tom. The reindex actually replaced a query, which had an identical error (and, originally, used the file exclusively). I've tried various things to overcome this, the app. as posted was after many changes. Perhaps I'd better go back to basics and start over again. (This app. will only ever be single-user so exclusive, or otherwise, use is not a problem.)

          Maybe I'll leave it 'till Monday...

          Best wishes, and thanks for your time,

          Martin.

          Comment


            #6
            RE: The process cannot access the file because it

            What build or version of Alpha Five v4 are you using?

            -- tom

            Comment


              #7
              RE: The process cannot access the file because it

              Relaxing weekend seemed to cure it! I went back, refreshed, and stripped out all the changes, etc., and found that I had a conflict between an index and a query. I should have learnt by now that too much code causes more problems than not enough. But it was you mentioning queries and indexes which led me straight to it.

              Apologies for taking up your time, and, once again, very many thanks, Tom.

              Martin.
              (4.5 build 266, by the way.)

              Comment


                #8
                RE: The process cannot access the file because it

                Great! I'm glad you have it sorted.

                -- tom

                Comment

                Working...
                X