Link to home
Start Free TrialLog in
Avatar of bberdel
bberdel

asked on

'System.StackOverflowException'

I am in the process of upgrading a VB6 Application I did not write...

I am running into a problem on pretty much every form I call from the Main Form.

If I call a form by clicking a command once it is fine, however, if I call the form then close it and call it again I get an error.

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

it breaks  in the windows form designer code at the line

 <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  BREAKS HERE =>      Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMunQuarter))

Any help greatly appreciated.

Thanks!!
Avatar of gtvingo14
gtvingo14
Flag of Afghanistan image

are you using SQL?
Avatar of bberdel
bberdel

ASKER

It is a Database Application but it is running off an access database.

There are some SQL Queries...
by the error you are getting i think you have a cyclically executed method/function.
provide us with the code of that command you are clicking
it is code that is recursing beyond allowed stack ...
oops sorry EB you said that
Avatar of bberdel

ASKER

This is the code after teh upgrade to open the form  

Private Sub Command18_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command18.Click
        'Open_Report Command18.Caption
        VB6.ShowForm(frmMunQuarter.DefInstance, 0, frmMain.DefInstance)
    End Sub
ASKER CERTIFIED SOLUTION
Avatar of EBatista
EBatista

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bberdel

ASKER

Thanks, I actually figured it out earlier today (using the same solution)

I got it from a microsoft article, but I will award you the points.

Thanks again!
thanks bberdel :)