You're better off using NumericArrayResize - let LabVIEW handle the details - it would have caught your mistake.
Your example sizes the array large enough for 100 integers (404 bytes) and sets the dimSize to 100. But the prototype says that LabVIEW is expecting float64s. You told it there were 100 in the array, but the memory (804 bytes) wasn't there.