Arduino Keeps Restarting within Setup()

[The code's too big to put in this message I'm going to try putting it in a separate message]

Chances are you're running out of RAM.
You can attach your code rather than posting it.

(Give my regards to rue Maurice Bokanowski)