Screen freeze after adding and grouping line objects

Beta Testing discussion on Visual TFT Software.
Post Reply
Author
Message
OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Screen freeze after adding and grouping line objects

#1 Post by OT » 06 Aug 2013 10:52

There might be some corruption happening when grouping objects:
In in a new layer of a project I added lines to form 2 arrows, and named the lines accordingly. I then grouped the lines forming each arrow. In VTFT this appeared to correctly group the lines, each forming an arrow. I also deleted a button* on layer0. When I then generated code and compiled, I found that the screen would be drawn, and then freeze, not executing any code after. The freeze would only happen on this screen, not other screens.

On inspection I found two objects that I was not aware that I had added. Whenever I tried to do anything to these objects I got an exception, so they could not be deleted in VTFT. I opened the VTFT project file in an external editor, and after manually deleting these objects and then generated code in VTFT again, the compiled code would run properly. I also notice that the grouping of the lines are gone. Here is the VTFT project file section I removed:

Code: Select all

object pObj1: TGroupBlock
    Left = 310.000000000000000000
    Top = 115.000000000000000000
    Width = 6.000000000000000000
    Height = 19.736842105263210000
    Restrictions = [crNoRotation, crNoEdit]
    MinWidth = 40
    MinHeight = 40
    Hint = 'pObj1'#13#10#13#10'Left : 310'#13#10'Top  : 115'
    Visible = True
    Layer = 1
    Transparency = 0
    Members = <
      item
        DControl = __DSOwner___.ScopeScr_LineScopeScr_LineArrDwn
      end
      item
        DControl = __DSOwner___.ScopeScr_LineDwnArrHeadR
      end
      item
        DControl = __DSOwner___.ScopeScr_LineDwnArrHeadL
      end>
    Collapsed = False
  end
  object pObj2: TGroupBlock
    Left = 310.000000000000000000
    Top = 85.000000000000000000
    Width = 6.000000000000000000
    Height = 19.615384615384600000
    Restrictions = [crNoRotation, crNoEdit]
    MinWidth = 40
    MinHeight = 40
    Hint = 'pObj2'#13#10#13#10'Left : 310'#13#10'Top  : 85'
    Visible = True
    Layer = 1
    Transparency = 0
    Members = <
      item
        DControl = __DSOwner___.ScopeScr_LineArrUp
      end
      item
        DControl = __DSOwner___.ScopeScr_LineUpArrHeadR
      end
      item
        DControl = __DSOwner___.ScopeScr_LineUpArrHeadL
      end>
    Collapsed = False
  end
* Regarding the button removed from layer0: I used it to display and do some frequent value updates on the screen, including shifting its position when needed to avoid numbers jumping when negative values were displayed. However this caused my program to freeze after times ranging from 5-90min, somewhat depending on how often the updates took place (different from the above, as it would this time freeze close to the button update draw, not screen draw). Before the deletion and adding the arrows I had replaced this button update code with a TFT_write, and that appeared to fix that problem. Subsequently the button was deleted after confirming that the supposed button update freeze was fixed.
mikropascal dsPIC, Visual TFT, MMBdsPIC v.105, 1.10_9A, mikroProg, "Big"(P30F6012A)EasydsPIC2

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: Screen freeze after adding and grouping line objects

#2 Post by dejan.odabasic » 03 Oct 2013 11:03

Hello,

As you can see two objects (pObj1: TGroupBlock) which were created correspond to two groups(arrows) that you created.
That's why after removing the objects, lines were not in arrow groups any longer.

It's possible that you misinterpreted the cause of your problem.

Without insight in your project it would be hard to tell what could be the cause of your problem.
You can attach the project to your reply of you can submit your project on Support ticket.
http://www.mikroe.com/support

Best regards.

Post Reply

Return to “Visual TFT Beta Testing”