Welcome to Phrogram Sign in | Join | Help
in Search


mouseover

Last post 12-28-2008, 4:43 AM by cpcook. 2 replies.
Sort Posts: Previous Next
  •  08-26-2008, 9:19 AM 7092

    mouseover

    From the start i have been in the habit of inspecting variables with mouseover in the main coding screen. At some point I began using stringlists and a serious problem arose. The mouseover rarely revealed the dropdown display of their values. And a good portion of the time the mouseover would cause Phrogram to crash. Most recently i have begun to use classes. I find the mouseover of their objects does not work either but at least the program does not lock up. I am using the first Vista version. I know people are going to say it is stable, but wouldn't it be better to be able to say it is robust.
  •  09-04-2008, 2:40 PM 7115 in reply to 7092

    Re: mouseover

    Does this happen when you use stringlist or when you try to inspect stringlit/class variables.

    Can you write me a step by step approach of exaclty what you do to make it crash/fail.

    For example I can inspect everything in this just fine:

     

    Program MyNewProgram

     Method Main()

      Define a As Integer = 12
      Define b As String = "andy"
      Define c As StringList
      Define g As Test
      
      g.f.Add("one")
      g.f.Add("two")
      
      c.Add("jon")
      c.Add("walt")
      c.Add("david")
      
      //Breakpoint this line then use hover to examine a,b,c,g and contents
      Console.WriteLine(a)
     End Method
     
     Class Test
      
      Define d As Integer = 13
      Define e As String = "hello"
      Define f As StringList
      
     End Class

    End Program


    Managed DirectX and XNA ? Check out http://www.thezbuffer.com
  •  12-28-2008, 4:43 AM 7449 in reply to 7115

    Re: mouseover

    Sorry for taking so long to get back to you on this one. I think i originally posted around the time when version 2.5 was imminent. I was running version 2.2 at the time and felt it would be better to wait and see. I would hate you to have scrambled in the last days up till releasing 2.5 if you found it there as well. So i have finally installed 2.5. It works fine but the "hover bug" is still there. It has various levels of disaster. It can just not display the stringlist though it gives the count. This happens if the debug bullet is put to early in the program. It can not display the count or the list in which case it locks up. One has to close the program window to recover. Finally what happens when StringlistHoverCrash is only program window that was open. Phrogram will officially crash telling you with a dialog box that it must "quit".

    To make the bug work is very subtle. Follow my comments exactly. If you have any question please feel free to ask. (Oh by the way it if the stringlist is in a class variable it crashes too.) I don't have directx installed so who knows maybe that is it.

     

    Program StringListHoverCrash

      Method Main()
      Define cfuel As StringList
      Define ghover As Stringlist
      Define qqq As Integer
      Define blank As String
     
      cfuel.Add("jon")
      cfuel.Add("walt")
      cfuel.Add("david")
      cfuel.Add("albert")
      cfuel.Add("steven")
      cfuel.Add("william")

      blank = ""//DO NOT breakpoint this line as it will only cause the drop down to malfunction
      For qqq=1 To 6 //step through this loop a few times to prime the crash
       ghover.Clear()
       ghover.Add(cfuel.item(qqq))
       blank = ""//Breakpoint this line to cause the crash after stepping through the loop
      Next//While highlighted here examine ghover and oddly the little minus has no dropdown under it. //Enjoy!
      Console.WriteLine("done")
      End Method

    End Program

    Filed under:
View as RSS news feed in XML