I dont see the problem Im doing it like this million of times in my code and it works perfectly.
Maybe I'll get some time to test it tomorrow.
An array is just a simple pointer, so double array = double pointer.