Jump to content

JKSH

Members
  • Posts

    440
  • Joined

  • Last visited

  • Days Won

    30

Community Answers

  1. JKSH's post in Challenge: figure out why this loop doesn't stop was marked as the answer   
    I'm guessing h
     
     
    I'm guessing he used his backdoor VI editor (https://lavag.org/topic/19178-low-level-vi-data-editor-warning-not-for-production-use/) to create a mutant subtract node 
  2. JKSH's post in how to get last index of 2d array was marked as the answer   
    That technique works for all numbers of rows and columns.
     
    (Row Size) x (Column Size) = (Number of Elements in the 2D Array)
       
     
    Do you want to start counting from 1 or 0?
    If you count from 1, then the last "index" is (Number of Elements in the 2D Array) If you count from 0, then the last "index" is (Number of Elements in the 2D Array)-1  
    Try it for different array sizes. You'll see that it always works.
  3. JKSH's post in Heap corruption was marked as the answer   
    Hi,
     
     
    When would the LStrHandles ever be valid? If you allocate a new CodecInfo array, then all the LStrHandles are uninitialized (that means they are never valid).
     
    So the solution is this: For all of the LStrHandles inside your new array of clusters, always call DSNewHandle() and never call DSCheckHandle().
     
     
     
    Like I mentioned before, your new LStrHandles are uninitialized pointers. You must never call a function (including DSCheckHandle()) to perform an action on an unitialized pointer. If you do, you will get undefined behaviour (and usually crash) -- This applies to all C/C++ code, not just LabVIEW interface code.
  4. JKSH's post in UDP between two computers on same subnet Win7 was marked as the answer   
    That means the computers aren't connected properly. You must get pinging to work first. Without this basic step, UDP definitely won't work.
     
    What are the IP addresses and subnet masks of your two computers?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.