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

Runs twice after refresh

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

    #16
    RE: Runs twice after refresh

    I hate it when I hit the wrong key!

    Anyway, the process, as I recall, goes like this:

    1. The Refresh Box appears and the user says OK.
    2. The startup form opens and then closes.
    3. The control panel opens and then closes.
    4. The refresh process continues.
    5. The control panel opens again momentarilty and then closes.
    6. The startup form appears.
    7. A second instance of the startup form opens on tops of the first.

    In the status bar at the bottom the first instance of the startup form is called MAINMENU (the correct form name). The second instance is called MAINMENU0.

    Comment


      #17
      RE: Runs twice after refresh

      Bruce,

      I am seeing what you describe.

      What operating system are you using.

      Bill
      Bill Hanigsberg

      Comment


        #18
        RE: Runs twice after refresh

        Bruce,

        That is interesting. I get the same steps 1 to 6 in varying order, but instead of the startup form opening twice, the controlpanel sometimes reopens. I will test a little more and see what happening in a different operation systems and processor speed.

        Jerry

        Comment


          #19
          RE: Runs twice after refresh

          Ok, here are the results of another test. The test database is very small with one table and one form. In this test the server is 700 mhz Celeron running WinME, the terminal is a 2.4 ghz running WinXP Home.

          I get Bruce's steps 1 to 6 with the result being only one instance of the form open, and no control panel, which seems correct. I ran this about 6 times. The first instance of the form and contolpanel opening (steps 1 & 2) was very fast, almost a flash. So far so good. I don't care for the controlpanel being visible momentarily, but I know some processes require it to be open so that doesn't bother me.

          However, in another instance, I got an unhandled exception and A5 shut down. The difference in this case was that I opening the server copy directly from the terminal and changed the network version. I then opened the shadow copy on the terminal without closing down the server copy (a5 should have shut it down when it loaded the shadow)

          Ed mentioned in another thread about the controlpanel staying open on the form tab with a no forms showing. This seems to be the normal state of the control panel after the terminal refreshes (Bruce's step 5). A controlpanel refresh shows all of the forms. This is not an issue in my mind.

          However, I found another interesting anomoly. If I opened the server directly on the terminal, and then ran network optimization to create the shadow, the process would seem to complete, but the startup form on the newly created shadow didn't opened. Only the control panel was open. I was able to repeat this 3 times in succession. The process seemed to stop at step 5.

          All of this seems to me to be some issue of more than one process running concurrently, since different processors seem to give different results. I have seen a similar issue in an old A5V4 application where I rapidly open one form and then use an OnTimer event on that form to open another (don't ask why, it is a clunky workaround for another problem). The second form then closed the first form. If the OnTimer was too fast, the forms wouldn't open in the correct sequence or close correctly, but only on some computers. The faster the processor, the more often the problems occurred.

          Jerry

          Comment


            #20
            RE: Runs twice after refresh

            Hello Jerry,

            As it appears that you have this 'test bed' up and running, how about inserting Xbasic_wait_for_Idle() commands everywhere you can and see what happens. You might not be able to find may places to do his as Alpha processes most of this internally, but you could put the startup form in the autoexec script and preceed the form.view() command with an Xbasic_wait_for_idle(). Just a thought.

            I had a situation were a routine was working differently (basically not working) on a clients systemm but worked fine on my system. The xbasic_wait_for_idle() settled things right down, and now it works fine on both systems.

            Jim

            Comment


              #21
              RE: Runs twice after refresh

              I am using a mix of NT 4.0 (sp6) and Win 2000Pro with 1 XP Pro machine. The machines themselves range from an old Pentium Pro to a brand new Pentium 4 machine.

              Comment


                #22
                RE: Runs twice after refresh

                Yes, there is definitely a gremlin at work here somewhere. As I sad, I began to see this behavior several builds ago. As I recall, the particular build where I first saw the problem was one where there were changes noted to the Network Optimize routines.

                My only comment on your testing is one relative to machine speed. I am running apps on machines of varing age/speed. The oldest uses a Pentium Pro processor (not sure of the speed but it is slow) while the newest is a Pentium 4 2.4 ghz. The problem exists on every machine.
                It also seems to be independent of Win versions.

                I sent Selwyn one of my apps and he was unable to duplicate the problem. All of my apps are relatively simple with no autoexec. All hide the control panel and display a startup form as a main menu.

                Comment


                  #23
                  RE: Runs twice after refresh

                  Hi Jim,

                  If you look back to the 2nd message in this long thread you will see that I have already tried xbasic_wait_for_idle() to no effect.

                  Bill
                  Bill Hanigsberg

                  Comment


                    #24
                    RE: Runs twice after refresh

                    Just wanted to chime in that I've been having the problem with the control panel ending up showing after a refresh also.

                    Of course I immediately want my users to get out of control panel so I have them shut A5 down and restart. Usually I just do it for them, therefore killing one real advantage of A5 over Access.

                    I sent it to Selwyn and he couldn't duplicate. Maybe now that others are reporting the same thing they can find something.

                    Comment


                      #25
                      RE: Runs twice after refresh

                      Jim

                      My test doesn't use an autoexxc to load the form or hide the controlpanel. These are selected in database properties and are controlled by the Alpha internal code. I do suspect you are on to something as there appears to be a timing issue present.

                      Jerry

                      Comment


                        #26
                        RE: Runs twice after refresh

                        Bruce

                        I think the biggest problem here is that everyone seems to be getting slightly different results in different combinations of systems. In all of my testing, I have never seem the form open twice at the end. However, I have seen the sequence of opening and closing the form and control panel vary, which seems a unique problem.

                        The other problem I am seeing with the initial network optimize not opening the startup form on the shadow when the shadow opens at the end of the process also seems unique. Further testing today brought up a new twist to that issue. If I closed the shadow after it was created, but don't close A5, when I reopen the shadow, the startup form still doesn't load. If I close A5 and reopen and start the shadow, now the form does open on startup. This did not happen on the other test network I tested with the same test database.

                        Jerry

                        Comment


                          #27
                          This continues to be a big problem for all the computers on our network. Everytime the shadow databases are automatically refreshed two copies of the startup form are opened. Was this ever fixed? If not, how can this be fixed?

                          Comment


                            #28
                            If you are using A5V5 it will not be fixed as Version 5 is no longer being updated.
                            Bill Hanigsberg

                            Comment

                            Working...
                            X