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

Result Stack Underflow Intermittant Error When Printing PDF Report

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

    Result Stack Underflow Intermittant Error When Printing PDF Report

    I have a report which is printed by clicking on an advancedbutton created in a dialogue. I seem to get this message now and again.

    Error in event handler code for OnClick event for 'Print':
    Amyuni Low Level Print:
    Layout name: Summary@\\Enterprise\Users\steve.reid\Alpha Five V8\jobs.ddd
    Layout type: report
    Result stack underflow

    When I try and run or edit the report in the control panel I get an error information box popping up saying "result stack underflow".

    If I shut down alpha and re-start it sometimes it resolves itself - other times the error continues. It seems completely random.

    Any ideas? Its being stubborn this morning and I cant get any work done!

    #2
    Re: Result Stack Underflow Intermittant Error When Printing PDF Report

    I have seen the same problem. Took me a while to find that restarting Alpha, so far, has always worked for me.

    Interestingly, desktop report preview while in design mode does not give the problem. But running the report from the desktop or web does.

    Bill.

    Comment


      #3
      Re: Result Stack Underflow Intermittant Error When Printing PDF Report

      I've un-installed and re-installed again and its allowing me to get on today but I've done this a few times now.

      Comment


        #4
        Re: Result Stack Underflow Intermittant Error When Printing PDF Report

        I had just installed build 1724_3092. Have gone back to a previous build and I think that solved my problem.

        Bill.

        Comment


          #5
          Re: Result Stack Underflow Intermittant Error When Printing PDF Report

          I had the same prob. Stack underflow means that it is waiting for a command which it can't find. I reinstalled the amyuni printer directly from its program folder. click in the program files where the A5 Server is installed and then on installamyuniprinters.exe. This should install all printers you need to show the pdf files.
          Matthias

          Comment


            #6
            Re: Result Stack Underflow Intermittant Error When Printing PDF Report

            The problem seems to have vanished on my local pc but now that I've uploaded all my content to my server I have the same message on the server, although the path is slightly different.

            Error in event handler code for OnClick event for 'Print':
            Amyuni Low Level Print:
            Layout name: Summary@c:\A5Data\jobs.ddd
            Layout type: report
            Result stack underflow

            I've uninstalled and reinstalled the application server and patch twice. Both printers - Alpha5 printer as default and AmyUni Document Convertor are installed. Spooler service is running.
            I did notice while installing the Amyuni exe an error could be seen in the text box that appears. It reads:

            copying cdintf.dll file
            Error Code:32
            The process cannot access the file because it is being..?

            I cant see the end of the error but im guessing its "being used". Apart from that error the Amyuni printer installation says its succeeded.

            Any ideas what to do now?

            Comment


              #7
              Re: Result Stack Underflow Intermittant Error When Printing PDF Report

              How much memory do you have on your Web server. When things happen randomly (sometimes they work, sometimes they don't) I start thinking about resources...

              Clive
              Affordable Alpha Five, PHP, MySQL Hosting.
              Serving Webmasters since 2000.ZebraHost

              Comment


                #8
                Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                this was a bug that was introduced in a recent patch.

                here is a beta of the next patch that fixes the problem


                http://downloads.alphasoftware.com/a...chdownload.htm

                Comment


                  #9
                  Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                  Thanks for the info.
                  Iinstalled the beta patch on my PC and Virtual Private Server. Reports now print every time on my PC!

                  Im still having problems with my VPS though. When I click print on my website the webpage just waits forever. If I look on the VPS I can see that the Alpha5 printer has tempreport.pdf document waiting to be printed but it says 'error' next to it. (this also happens with the original release of the application server as I rolled back to test)

                  When I cancel the job in the print queue then retry the print I get this message:
                  Error in event handler code for OnClick event for 'Print': File 'C:\A5Webroot\session_folders\54cf1b5cd5bc461f816c9612e2e4aa10\tempreport.pdf' is in use. Cannot overwrite.

                  Heres my report code in case there are any errors in it:

                  IF eval_valid("session.__protected__useridentity") = .f. Then
                  goto skipreport
                  end if
                  dim filter as c
                  dim order as c
                  Filter = "Regno = \""+session.__protected__useridentity+"\""
                  Order = ""
                  Dim filename as c
                  filename = session.session_folder + "tempreport.pdf"
                  filename = report.saveas("Summary@[PathAlias.ADB_Path]\jobs.ddd","pdf",filter,order,filename,.f.)
                  if file.exists(filename)
                  currentform.RedirectTarget = session.session_url + "tempreport.pdf?" + time("hms3")
                  end if
                  skipreport:

                  As I say it works fine locally and filters properly. Once the reports work my application is finished!

                  Thanks
                  Steve

                  p.s Zebra its 1&1 VPS..windows reports a whopping 352mb of ram!!(dual core opteron 2.21ghz). Its a bit slow even with simple pages. I may upgrade to a dedicated. Feel free to contact me with some deals!
                  Last edited by stevemreid; 08-06-2007, 06:49 AM.

                  Comment


                    #10
                    Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                    Selwyn, Lenny and anyone else involved in fixing this:

                    Thank you! Just installed it on my customer's server where we were having continual problems, and now it's working well.

                    - Steve
                    -Steve
                    sigpic

                    Comment


                      #11
                      Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                      Steve,
                      Any chance you could run thru the installation steps you took to get the app server to print? I simply installed the original app server file then installed the beta update but no joy.

                      As above my reports work fine locally now but still no luck on my virtual server. Only difference I can see is in the port settings of the Alpha5 printer on the server..its using a com port as opposed to an RTF port on my local machine and the web server doesn't have the Alpha5 prog installed.

                      Any ideas?

                      **edit**
                      Just thought that the server os is 64bit so may be messing with the application server. I'll try it on a 32 bit os and see if there is any difference.
                      Last edited by stevemreid; 08-07-2007, 05:49 AM.

                      Comment


                        #12
                        Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                        We made sure that the server had the latest version of the stand-alone WAS installed. We also installed the full desktop version of V8 (you can use the trial download if you want -- you don't need to buy a license for this) and then applied the latest patch to that. This assures that the pdf converter files are all present and up-to-date. Finally, I made sure my development machine (my office laptop) also had the latest patch. Voila!
                        -Steve
                        sigpic

                        Comment


                          #13
                          Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                          Steve,
                          Is your sever running a 64bit operating system? Mine still isn't working. It's running MS Windows 2003 server 64bit edition. Can't help but think its causing the problem. :(

                          Comment


                            #14
                            Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                            It's a Windows 2003 server, but I dunno if it's 64 bit -- my customer's hardware guy is in charge of this.

                            I think it's 32 though. The environment details show me things like this, which suggests a 32-bit system:

                            C:\WINDOWS\system32\cmd.exe
                            -Steve
                            sigpic

                            Comment


                              #15
                              Re: Result Stack Underflow Intermittant Error When Printing PDF Report

                              Steve: Did you check in the server Control Panel that all of the required printers are present?

                              Clive
                              Affordable Alpha Five, PHP, MySQL Hosting.
                              Serving Webmasters since 2000.ZebraHost

                              Comment

                              Working...
                              X