realbasic-nug
[Top] [All Lists]

OutOfBounds err on window.show

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: OutOfBounds err on window.show
From: Mike Carter <mikec at aviate dot org>
Date: Wed, 30 Jul 2003 18:32:56 -0700
Hello all.

I'm receiving an OutOfBounds exception when I try to Show a window. It worked until I upgraded to version 5.x.
The error started in the app menuhandler:

if rptWindow.Visible
   rptWindow.Hide
else
   rptWindow.Show
end

I use several other windows with this same type of menuhandler and they work fine. The compiler reports the OOB error when it tries to access the Visible flag for the window (and the Show method as well). The window has a couple panes in it and I create a thread in it's Open method which sorts through some data:

  // run our lookups using threads so as not to
  // impose an untimely wait upon our customers.
  if MyLeft > 0 then
    me.left = MyLeft
    me.Top = MyTop
  end
  thread = new AeroThread
  me.aeroFltsList.columnalignment( 2 ) = 2
  me.aeroFltsList.columnalignment( 3 ) = 3
  me.aeroFltsList.columnalignmentoffset( 3 ) = -10

  me.aeroFLtsList.HeadingIndex = lastSort

There is a ListBox control in the window, along with a couple methods and properties. According to the description of the OutOfBounds error, there would have to be an array somewhere that leaked past it's bounds.

I commented out *all* the methods except for Open and Close, which I simply called me.show and me.hide. I still got the outofbounds error. Might the object have become corrupted?

Any insight would be appreciated.

#mikec

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>