Charlie horse (leg cramp)

Vanessa
I woke up in the middle of the night last night yelling from the pain of an excruciating Charlie horse.  Googled it this morning and apparently it is relatively common during pregnancy.
Have you had them?
Any effective ways to stop them as they happen, or to prevent their occurring?