Matrix Causing Lockup...

I am using the UI-API to react to a user entering an Item ID on a Sales order.  For testing purposes, I'm just trying to return a message box with the value of the Item ID entered.  My code works fine until I set a reference to a new Matrix object.  At that point, the application freezes and won't let go until I shut down the VB.NET app.
Here's the code:
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        If pVal.FormType = 139 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD Then
            '// get the event sending form
            oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
            Dim objItem As SAPbouiCOM.Item
            Dim objMatrix As SAPbouiCOM.Matrix
            Dim ItemID As String
    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.ItemUID = 38 And pVal.ColUID = "1" Then
                objMatrix = New SAPbouiCOM.Matrix
                objMatrix = SBO_Application.Foms.Item(pVal.ForumUID).Items.Item(pVal.ItemUID).Specific
                ItemID = objMatrix.Columns.Item("1").Cells.Item(pVal.Row).Specific.String
                SBO_Application.MessageBox(ItemID)
            End If
        End If
    End Sub
Any ideas on this??  Thanks!

ItemID = objMatrix.Columns.Item("1").Cells.Item(pVal.Row).Specific.String
instead of casting into "Item" cast the cell into "edittext"
Dim mobjEditText As SAPbouiCOM.EditText
mobjEditText =objMatrix.Columns.Item("1").Cells.Item(pVal.Row).Specific.
I think it will help.
Message was edited by: Amit Verma

Similar Messages

  • JRE 1.5.0_11-b03 causes lockups, due to "activate control fix" ?

    We have a web application consisting of a varying number of Java applets. We are using a separate JavaScript file to load the applet into the HTML code, as a workaround for the "Click to activate control" issue. This seems to be causing problems:
    With the upgrade to JRE 1.5.0_11-b03, we began to recieve this error message:
    java.lang.NullPointerException
    at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    This message will appear in about 1 out of 3 reloads of a given applet, and applet loading appears to be very slow. The applet will then run as normal, most of the times. But once in a while, maybe 1 out of 20-50 times, the JRE locks up and IE has to be shut down using Task Manager.
    The behaviour has been reproduced on all computers we have tested which have 1.5.0_11-b03 installed (more than 5 computers with different hardware and operating systems), and with two different applets (both use JavaScript to communicate with the user interface)
    When we remove the "Click to activate control" javascript workaround, everything seems to be running as normal, but we really don't want our customers to be forced to click to activate each of the maybe 5-10 applets that can be in a single web page.
    Error and lockup reproduced on five computers having:
    Hardware: Misc. computers, both laptops and desktop computers.
    IE 7.0.5730.11
    Java 1.5.0_11-b03
    Using the previous Java 1.5.0_10-b03, everything ran smooth with no errors or lockups, even with the "Click to activate control" workaround enabled. (also IE 7-0-5730.11)
    This is becoming a real problem for us, as our customers are upgrading to the latest Java version and our application might hang randomly.

    I'm having the exact same problem!
    I've uninstalled JRE 1.5.0_11-b03 and I'm currently running 1.5.0_10-b03, which seems to work okay. But the problem is off course that our customers are upgrading to the latest JRE, which will cause the applet to randomly crash and the whole IE freezes up. Unfortunately, apart from the �uninstall-fix�, we haven�t been able to find any work-around for this issue�
    Would be great if anyone could verify that this is a �known bug�, or at least give us a hint that more developers are struggling with this strange behavior.

  • Express34 eSata card causing lockups

    I have a 2.53 MBP and an eSata express34 card that when I insert the card it will sometimes cause the system to lockup as in the message comes up on the screen telling to restart the computer. Is there a known problem with Express34 cards?
    -gl

    Download the new drivers from site..99.9% chances are you have this card.
    http://www.griffintechnology.com/articles/600-my-computer-keeps-locking-up-durin g-file-transfers-mac

  • Mail preferences cause lockup

    I have a new Mac Pro (2 x 2.4 GHz Quad Xeon) with 24GB RAM and a 512 SSD, and have been having problems ever since getting it.
    Current Problem:
    If I try to view Preferences in Mail.app, I get the beachball of death. Force quit is the only solution at that point. The mail functions work fine, but I cannot change any settings, add or update any accounts, modify rules or any of it.
    I've done the permissions repair, disk repair, PRAM reset, and LIbrary stuff of removing preferences and mail folders. This has not solved the inability to access mail preferences, though.
    Background:
    This is the second SSD after having hte first one replaced. Why? Because of cascading app crashes, and Lion would not reinstall. The Genius Bar restored my account on the new disk using a Time Machine backup from another disk on the machine. All seemed good for a while.
    A second visit to the Genius Bar was to try to fix more crashes. Now there were secret permissions problems (that seem to override the normal chmod permissions on files and folders) preventing apps from starting up properly. It stumped him, and he was looking up arcane system-level commands to try to clean these issues up. The Genius spend 2 hours creating new users, migrating apps over, etc. I left with things seemingly fixed.
    Also I have the same problem with Safari preferences when trying to set default browser. That gives me the beachball of death, too and the only solutio is to force-quit Safari.
    Perhaps related: iCal randomly crashes. No spinner, just suddenly it's gone and a crash report is in its place.
    Question:
    Is there any way I can totally reset Mail.app to at least test if there's a permissions problem causing this? Or must I resort to wiping the SSD and reinstalling Lion from a DVD?

    First, restore your Mail data. That's apparently not where the problem lies.
    Please read this whole message before doing anything.
    Boot in safe mode and log in as yourself. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you will see "Safe Boot" on the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all, possibly including wireless networking.
    Launch Mail, and test again. Same problem now?
    After testing, reboot as usual (i.e., not in safe mode.)

  • CoreCell causing lockups on a AMD64 Via K8T800

    Hi
    I was getting occasional lockups in games and I have isolated the problem to CoreCell.
    I do not overclock anything in my system and when I simply don't have Corecell running the PC's uptime is as long as I want it. However with CoreCell running the background Battlefield1942 will eventually lock up and hard lock the PC forcing a reboot.
    Thought I should let MSI know about this issue.
    Simon

    Hei guyz.
    yeah I have the latest verstion of CoreCell 1550 from this site, never used any other verstion.
    As to the Audigy 2 I have no problems with it, I have it in the last PCI slot. I have however noticed when loading a game of Battlefield1942 that I get very subtle and low frequency disturbances in the sound while the game loads. This is however very very low and hardly audible but it's there. I had a similar problem with my P4 3GHz and Abit IC7 board and that was fixed with a driver update from Creative. Lets just cross our fingers
    NOTE BIOS bug. If I have "Unusued PCI slot clock=Enabled" booting from my Highpoint RocketRaid PCI card doesn't work. The BIOS won't get passed the VIA SATA controller boot and the PC will simply sit there. However if I "Disable=Unused PCI Slot Clock" the BIOS will be able to finish it's boot sequence and load XP from the PCI addon RAID card.
    Simon

  • 1.2.1 Firmware Causing Lockups

    I had the crash during podcasts issue with 1.2, and I haven't tested if 1.2.1 fixed it... Because now it can't make it through 1 song without the screen and scroll wheel locking up completely! It continues playing whatever song it is on, then stops playing, and none of the buttons seem to work and the screen is completely frozen! The only action it seems to take is a restart (Menu+Center Button) when it locks up.
    Anyone else seen issues like this with the 1.2.1 firmware upgrade?
    I did a complete "Restore" also, and it's still locking up.
    Is there any way to down-grade to the older firmware, my 60G iPod will only play one song now!!! Everything was working fine up until iTunes pushed this iPod firmware upgrade on me yesterday.

    I found a site that may take me back to 1.2.
    http://www.macintouch.com/readerreports/ipod/topic2401.html#dec31
    Here's the text of what Paul Constantine found.
    I have been able to "downgrade" my 1.2.1 firmware to 1.2, which does NOT list playlists with no content on my Pod. Keep in mind that we're talking about a "5.5G, video" model Pod). Here are some hints about doing it:
    The actual updater files are located in:
    ~/Library/iTunes/iPod Software Updates/
    Here are my file names:
    iPod_25.1.2.ipsw.signature
    iPod_25.1.2.1.ipsw.signature
    iPod_25.1.2.1.ipsw
    iPod_25.1.2.ipsw
    I have "heard" that there can be "iPod_13.1.2.ipsw" files for the 1.2 update.
    There are 2 tricks: first make sure ONLY the 1.2 files are in there. Second, you MUST disconnect from the Internet. There are many ways to do that, what I did was use System Prefs to turn TCP OFF, than log out and back in with the shift key held down. You will have to do a "restore" and go through the process of re-loading all content, but after dealing with some messages about a later update being available, you will end up back at 1.2.
    However, another big barrier is whether you HAVE the right files to revert. Obviously, Apple won't provide older versions. The only real reason I HAD the 1.2 files was because I did try a full restore (the first day I had the Pod) to maybe correct another annoying bug; if I hadn't done that I would have had to search "other" sources for the files.
    I haven't tried it yet. When I do, I'll try to post an update.

  • HttpConnection in background and UI thread in front causes lockups !

    Hi ,
    Iam running a midlet on Tre0 600 using IBM J9. (CLDC1.0/MIDP2)
    The design of the midlet is as follows.
    I have a main form with some items on it. (items are xml forms)
    When i select a item (form) fill it and submit, i put the data to be requested in a url and send to the server. (This whole process happens in a servant thread in the background)
    Once the data is qued in the servant thread, the control is given back to the main menu.
    When i do this operation and the control comesback to the main menu, any action on this main screen is done only after the servant thread has got a response from the server.
    If you do multiple clicks , it locks up the device and you have to do a soft reset, to recover.
    I found from the logs , the device was last trying to get the response from the url.
    Have anyone seen this issue ?
    Is there a way in the IBM PIM pref to make this work properly ?
    Appreciate your help.
    Thanks and warm regards
    Vignesh

    MainPage.LayourRoot?

  • Hard drive causing lockups?

    Ever since the new drivers, my computer locks up and I can't figure out why.  I noticed that the HDD activity LDD goes solid when it is locked up.  It will freeze for a few seconds, respond, then a hard lock up which I have to reset the comp.
    Any ideas?
    Running on Win2k apic off

    Pyr0,
    Could be a Driver issue.
    Richard

  • K8N SLI Platinum - lockup at boot, caused by USB hub?

    Hi.
    Updated my bios today as well as enabled 'Cool 'n Quiet'. This caused lockups in Win XP, forcing me to hit the reset button.
    After the second reboot the computer refused to boot. According to the D-bracket it stopped at 'BIOS Sign On'.
    I followed the troubleshooting guide and ended up here: https://forum-en.msi.com/index.php?topic=75712.msg533104#msg533104
    Although the steps taken in the thread above didn't help, one poster mentioned that removing all USB devices could help.
    My keyboard is connected to a USB hub in my monitor, when I removed this the comp started up fine, as well as when connecting the keyboard directly to the computer.
    Just wanted to pass on my experiences, maybe can help somebody down the line.
    Best regards
    /Richard

    hi nullmind,
    have been 1 or 2 pps had problems with usb hubs, Glad u got sorted will add a link to this thread.
    cheers.

  • Multiple validate events generated for a new matrix

    I have added a new tab to the item master form which has a matrix grid on it.
    This works fine until I attempt to move to the previous or next record whilst the new tab is visible.
    What happens then is that every column on every line of the matrix causes a validate event to be triggered, it even triggers the event for hidden columns.
    This is really affecting my form and I cannot understand why so many events are generated, does anyone have any odeas?
    I am not sure if it is relevant but I have noticed that when moving through the data a click event is generated on item 41 within the item master form but i am not certain what this item is - could it be the "Move data" button from the toolbar?
    Gordon Wood

    Hi ...
    I would try putting a BubbleEvent = False at a certain point in the event to cancel further execution.
    You could also use the iteration of If pval.InnerEvent = True to catch and further execution, like this
          CASE et_Validate
                   If pval.InnerEvent = True Then BubbleEvent = False
    hope it helps

  • [svn] 3130: Fix SDK-16700: Applying a matrix to a GraphicElement does not get applied immediately.

    Revision: 3130
    Author: [email protected]
    Date: 2008-09-05 15:32:13 -0700 (Fri, 05 Sep 2008)
    Log Message:
    Fix SDK-16700: Applying a matrix to a GraphicElement does not get applied immediately.
    Added explicit matrixChanged and displayObjectChanged flags to GraphicElement so we can reliably track changes to those items. Changed commitXY() to set the x and y properties directly on the display object rather than indirectly through the matrix. Setting through the matrix caused any non-rotation or scale transform to be lost.
    Reviewer: Deepa
    Checkintests: pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16700
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement .as

    :/ - I just said I can't post this on the business forum as I have tried, it it says my post doesn't conform to the rules, yet there isn't anywhere where it breaks them. I will already be in talks with a lawyer but I was wondering if a more amicable solution could be reached first

  • Jukebox lockup with WMA &

    When I have audio files of both MP3 and WMA on my 20G Jukebox 3 and using the latest firmware (.40.06p) my pplayer lock-up. At first I thought that I had hardri've problems. I did everything but reformat. Finally I removed the library and reloaded with mainly WMA (28) files with some MP3. I typically select a bunch of songs/artisits/albums and play in radmon mode. If I have MP3 files in my playlist my jukebox will lockup (freeze, stay powered-on but not playing and no response to any buttons). I have selected a group of WMA songs only and it plays all day no problem. I only started noticing this problem with the last two (?) versions of firmware.
    I know that the firmware has not been updated in over a year so I assume that no one is working on it, but it would be nice to be able to mix music formats. I had almost stopped using my jukebox but decided to give it another try (I don't know why I decided to focus on music format as a potential issue, I think I had read somewhere that there were issues with WMA files and the jukebox locking up).

    Maybe it was on your page that I saw that WMA cause lockup. I've been playing both WMA & MP3 for years. It maybe the transistion from MP3 to WMA that causes my lockup. I prefer the quality of WMA-28 over MP3-28 so all of my new ripping is WMA.
    My solution now is not to mix the two formats and everything is fine. I'll convert my MP3 files to WMA (I know the quality may suffer a little) but now I can use my player.
    Thanks.

  • Adobe Reader 10.1.4 Lock-Ups

    Hello,
    When our campus users launch Adobe Reader 10.1.4 after logging on to a campus machine via a network account (with a re-directed app data folder) and launch a PDF from a network location by double-clicking it from Windows Explorer, Adobe Reader will launch, but then lock up and enter a "Not Responding" state after a few seconds of working with the PDF. I can only reproduce this issue with both the Enable Protected Mode at startup and the Show me messages when I launch Reader boxes checked (if either box is unchecked, the lock-up does not occur). If I wait long enough, sometimes, the "Not Responding" state will end and I will be able to view the PDF without issues. However, after a single reboot, the problem re-occurs. Our campus machines are on the 32-bit Windows 7 OS.
    I have been able to reproduce this issue in Adobe Reader 10.1.2, 10.1.3, and 10.1.4, but not in Adobe Reader 10.1.1. I am not able to reproduce this issue using a local account opening a local PDF, a local account opening a network PDF, or using a network account to open a local PDF. The issue also does not occur if the user first launches Adobe Reader, and then opens the network PDF using File->Open. In other words, the issue only occurs when a network account opens a network PDF by double-clicking on it from Windows Explorer.
    I did some research in the Adobe Reader forums, and here are the workarounds that I found and my success with them:
    1) Uncheck Enable Protected Mode at startup
    As I stated before, this does work around the problem, but also decreases security. As a troubleshooting step, I tried using the Adobe Reader documentation to white-list everything that Protected Mode was 'blocking'. The lock-ups still occurred even though the Protected Mode log was empty (after whitelisting) and did not indicate that anything was being blocked.
    2) Disable Enable Hardware rendering for legacy video cards
    This workaround did not work for me, even after disabling the legacy video cards and switching  the preferred renderer to software.
    3) Uninstall and reinstall Adobe Reader
    This workaround was also ineffective.
    4) Uncheck Show me messages when I launch Reader
    As I stated before, this does work around the problem.
    But these are not fixes - just workarounds. Does anyone know what the root problem is and whether or not Adobe will be addressing this issue?
    Thank you in advance.

    Hi, I can't offer any solution just agreements that it isn't just yourselves but others shared experiences:
    The lockup began several years ago and subsequent versions of Reader have not altered the lockup problem one bit.
    Typically the whole program loads, as does the document (it doesn't matter which PDF, any and every PDF cause lockup), you have about 4 seconds to scroll down or whatever action then... application completely freezes, states "not responding" and usually it remains entirely locked for at least 1 to 2 minutes while it hogs majority of system resources. When it releases, program again fully responds. Closing and reopening only repeats the same bad user experience.
    Uninstalling, reintstalling, new versions, have no effect. Inevitably, the main result is to use PDFs significantly less as it is not worth it, yet ultimately it is unavoidable for documents.
    Following your 1,2 and 4 has reduced lockup time to around 50 seconds but still not acceptable for regular use. This reduction and the fact that earlier versions on the same system platform worked 100% fine suggest to me it is additional (and for many users, entirely unecessary) Reader functionality such as trying to get messages, check updates (another to turn off), etc. that halt the software from working smoothly as it should rather than any problem with the host system.
    I'd be very surprised to hear Adobe are unaware of the problem as there are many messages about this from a search and yet seemingly no definitive solution as far as I can find.
    I too will recheck here in hope of a solution emerging.

  • Building fluid grid site - what's the best way to add a page?

    I've got  a one page fluid grid site going and I think I've learned enough to start adding pages. Do I use my primary css file as the file to be associated with subsequent pages? I tried to use a new css in a second page, and perhaps my mistake was that I used some classes and id's from the home page on the second page (which is to be expected as it inherits some of the design). For whatever reason, that led to the second page 'breaking' in a couple of places and I couldn't find the problem.
    So I deleted it!
    I'd like to begin again and start adding pages. In the creation stage, right after page definition, where it asks about css and copying over the two files (boilerplate and the js script), should I just use my existing css? When I copied over the two files, I was able to delete them and repoint the new page to the moved files (in a scripts folder and css folder).
    OR
    Should I create the page along with new css and just NOT use the same-named classes and id's?
    Last question, when bringing up code navigator on a design page, are the css pages listed in alphabetical order or by cascade? The new page seemed to have them in alpha order rather than cascade order. They were listed in alpha, despite the fact that they were defined in the page in order of cascade.
    Thanks all.

    Hi Toskey,
    My feelings about the Fluid Grid feature in Dreamweaver is far more
    negative than David's. First, let's look at the response.js script that
    simulates responsive behavior in old browsers. It can be destabilizing
    in IE8 and under (causing lockups) and is, in my opinion, a waste of
    time. Each month that goes by, IE8 and under become less and less
    relevant and giving them a traditional fixed-width or mini-width look is
    all one needs to do.
    The grid approach itself, at the core of the system, is flawed and, at
    best, a transitional approach as CSS has added a columns module. In
    about 2 years time, the concept of grids will be native to most browsers
    and how you deal with older browsers will become a matter of progressive
    enhancement. That is, allow older browsers to display a conventional
    type of layout while newer browsers use the newer features.
    Responsive design depends on designers being able to react and change as
    the CSS brainiacs of the world have regularly scheduled eureka moments
    about better ways to deploy media queries. So Adobe would need to be
    ready and willing (and able) to issue updates to the Fluid Grid system
    on a need-to-update basis. This will never happen.
    As for flexibility and practicality, and real-world application, get a
    Tablet, Smartphone, and desktop computer cranked up. Now load Adobe's
    home page and tell me how it reacts/responds:
    1. Smartphone portrait mode
    2. Smartphone landscape mode
    3. Tablet portrait mode
    4. Tablet landscape mode
    5. In a desktop browser as you make window narrow and wide
    Now load up the PVII home page (www.projectseven.com) and perform the
    same tests in the same devices. How much importance you place on certain
    things will dictate to you what kind of approach to take.
    We think our approach is currently the most bulletproof in the world and
    if something comes to our attention 2 weeks from now that indicates
    there is an even better way, or if another device takes the world by
    storm and needs a new query, we will issue an update ASAP.
    Good luck and happy hunting.
    Al Sparber - PVII

  • Why doesn't the following method recurse infinitely?

    The following method opensquare should cause infinite recursion as far as I can see and yet it doesn't cause lockups or error messages of any kind when I run it in my program. Also I can't figure out why showgrid[x+b][x+c] isn't set to true for certain values of b and c between -1 and 1 even on the initial call (opensquare called for 1st time).
    Info about variables, arrays: x,y are always between zero and 9 and are passed to opensquare from a mousepressed method which converts the
    pixel coordinates to minegrid, showgrid etc. coordinates between 0..9.
    and showgrid[x][y] is always true before opensquare is called. For
    recursive calls it looks to me like showgrid[x][y] will always be true.
    showgrid, minegrid are 10 by 10 arrays of type boolean
    number grid is a 10 by 10 array of type int
    b & c are local ints to the method opensquare, specifically the for loops.
    assuming that the if test condition is passed and none of the squares around x,y has numbergrid>0 I would think that the method would call itself infinitely because for b& c=0 from the two for loops would mean the method would call itself for the same element (x+0,y+0)=x,y the same element. Also it would jump to one element and then the method would execute for the element it just jumped from and go back and forth... and yet this method doesn't infinitely recurse. Also, it doesn't seem to call opensquare for some values of b&c even though it passes the test condition.
    I really don't understand this. Could someone explain 1) why it doesn't infinitely recurse and 2) why for a (showgridl[x][y] element that doesn't for -1>b>1 -1>c>1, have any numbergrid[x+b][y+c] elements>0 around it and for -1>b>1 -1>c>1 no minegrid[x+b][y+c] elements that are true around it and meets the condition that [x+b]&[y+c] are both between 0 and 9) that it doesn't make showgrid[x+b][x+c] true for every x+b & y+c. In my program it doesn't make it true for every x+b,y+c assuming the previous conditions. It seems to head off in a direction of openingsquares in a x getting smaller y getting smaller direction and never seems to make showgrid[x+b[y+c] true for b>0&c=0.
    here is the method:
    public void opensquare(int x,int y){   
    int count=0;
    int squarecount=0;
    if (minegrid[x][y])
    { done=true;}
    while (!done) {
    if (showgrid[x][y]) {
    for (int b=-1; b<=1; b++)
    for (int c=-1; c<=1; c++)
    if ((x+b >= 0) && (x+b < XGRID) && (y+c >=0) && (y+c<YGRID) && (minegrid[x+b][y+c] == false ))
    showgrid[x+b][y+c]=true;
    if (numbergrid[x+b][y+c] > 0) {
    done = true;
    x=x+b; y=y+c;
    opensquare(x, y);
    else done=true;

    done is a boolean global variable and is transparent to all methods. The mousepressed method sets done to false every time the left mouse button is pressed. Opensquare is called from the mousepressed method after done is set to false.
    You say it's not recursion, it sure acts like recursion.
    I get elements in showgrid being opened that are as far as 4 elements less in x and y then the element passed to opensquare. I get a max of about 14 elements of showgrid being set to true when they were all false before opensquare was called. Since the for loops only run through 9 elements of showgrid it must be calling opensquare again which then opens more elements, unfortunately it usually only runs in one direction with x and y getting smaller and to a lesser extent x getting bigger and y getting smaller. It almost never sets showgrid[x][y] elements to true with x and y getting bigger. It is recursion ( the method calling itself is what I understand as recursion). I don't understand why it doesn't recurse infinitely as I explained before with adjacent showgrid elements calling opensquare for each other infinitely, or even a showgrid element producing a call to opensquare for itself infinitely. If I take out the else done=true statement I get multiple errors displayed in the applet viewer window coming from opensquare (I can't see the error it goes by too fast). Seems to me if it fails the boundary test done will never be true for every single branch of opensquare called.

Maybe you are looking for