Is your assignment statement "*ptr_one = messageLength;" inside a function or just hanging out there in "Global Land"? As mentioned, only posting a snippet makes it impossible to know.
I wanted OP to answer that question. It doesn't make sense to me to allocate an array of ints that is as longs as some the string some String instance wrapped, and then store the length of the string in the first position.