In that case, you probably have a memory-trashing bug to track down. Refer to my post right above MVR's. A good way to track down this kind of bug is to create a watch expression for the trashed variables, then set the debugger to break when the value changes. Specifically:
With the cursor on query_request, hit Ctrl+F7 to create a watch expression.
Select your new watch expression in the Watch window, and hit Enter to edit it.
Change the 'Variable/Expression' to query_request[0].
Check 'Break when value changes', select the proper scope of the variable and hit the Replace button.
Repeat the process, but leave the expression as query_request.
Now when you debug your program, it should break at the precise time either query_request or query_request[0] changes. Since both of these should be constant throughout your program's execution, the change should indicate a bug.
Let me know how it goes.
Mert A.
National Instruments