mike5 Posted March 11, 2010 Report Share Posted March 11, 2010 I have two objects of the same kind and the same VI gets called on both of them, only the second one does not return. When tracing it gets to a point where it exits (Step out is the only option available), but the control doesn't get transferred back to the calling VI. So, there is no infinite loop or anything like that. Does anyone have any idea what is going on here? Mike Quote Link to comment
mike5 Posted March 11, 2010 Author Report Share Posted March 11, 2010 I have two objects of the same kind and the same VI gets called on both of them, only the second one does not return. When tracing it gets to a point where it exits (Step out is the only option available), but the control doesn't get transferred back to the calling VI. So, there is no infinite loop or anything like that. Does anyone have any idea what is going on here? Mike This happens even if I completely disable the entire diagram in the second picture. Mike Quote Link to comment
mike5 Posted March 11, 2010 Author Report Share Posted March 11, 2010 Traced the problem trhrough source control. It was "unrelated" to what I posted. Br, Mike Quote Link to comment
EricLarsen Posted March 11, 2010 Report Share Posted March 11, 2010 You probably already know this, but you actually do have a potential for an infinite loop. The maximum value of an I32 is 2^31-1 (2,147,483,647). As you increment from 2^30 to 2^31 you'll jump from 1073741824 to -2147483648, than to 0 for anything past that. If Size control is any number over 2^30, you'll be stuck in an infinite loop. You could limit the maximum of Size or use a for loop with an exit conditon instead. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.