Results 1 to 2 of 2

Thread: Out of Stack Space : what can I do?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Angry

    Hi all,
    I am using crystal reports for my VB app.

    I have a reports menu where i have buttons for my two reports

    cm1_click
    dim x
    x = crep1.printReport
    end sub

    cmd2_click
    dim x
    x = crep2.printreport
    end sub

    cmdMainMenu_click
    unload me
    frmmainmnu.show
    end sub
    i.e. I have two crystal report controls.
    If I click on one report and then click my main menu button there is no problem.

    if however i click the one report, and then i click the other report, close both reports of course, and then click the main menu button to take me back to the main menu, the program crashes and an "out of stack space error is given.

    please help
    thanks is advance
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Out of stack space is almost always caused by a loop in the program. Place a break point on the first line of code cmdMainMenu_Click and step through the program flow. I'm sure you'll find that it's looping.

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