Announcement

Collapse
No announcement yet.

Problem with Pointer to UDT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #21
    Hello All,

    I was just responding to PB's support people, when I figured out what the problem is.

    When you highlight a variable like @gDummyPtr.Value1, right click the mouse and select "Watch @DummpPtr.Value1", the prefix @ is not copied to the “Watch Window” and consequently the correct value is not “watched”. Adding the @ enables a correct reading.

    I probably didn’t notice this at first because I ran into the problem very late last night.

    Once again, thank you for your help, even though the main problem was between my ears.


    Pat
    Last edited by Pat Bullman; 21 Apr 2008, 09:51 PM.

    Comment


      #22
      >the main problem was between my ears.

      ???

      > "Watch @DummpPtr.Value1", the prefix @ is not copied ...

      Don't know about you, but were I to select this option, I would expect the IDE to correctly copy whatever it needs to copy to accomplish this.
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


        #23
        Originally posted by Michael Mattias View Post
        I would expect the IDE to correctly copy whatever it needs to copy to accomplish this.
        I agree, though you will still need a way of evaluating the pointer+offset address as well as the variable pointed to in the watch window.

        What would also be really handy is to be able to see a block of memory "at" the pointer address.

        Comment


          #24
          What would also be really handy is to be able to see a block of memory "at" the pointer address
          ???
          Code:
          FUNCTION Foo (address, size) AS STRING
          LOCAL S AS STRING, T AS STRING, Z AS LONG
            S = PEEK$ (address, size) 
            
            FOR Z = 1 TO LEN (S) 
             T = T &  HEX$(ASC(S,Z,1),2) 
            NEXT
            FUNCTION = T 
          
          END FUNCTION
          ....
          .....
               LOCAL W AS STRING
          
               W = Foo(Address, len)   '[b]Watch 'W'[/b]
          ???
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


            #25
            Originally posted by Michael Mattias View Post
            Code:
            FUNCTION Foo (address, size) AS STRING
            In the debugger's Watch window!

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎