Albert L. Ortega / WireImage 1 / 2
Albert L. Ortega / WireImage 1 / 2

Actor Courtney Gains has been hit with a restraining order from his ex-girlfriend over allegations he pestered her following their split.

RELATED: Ageless Wonders

Kelley Marie Pospisil has been granted a protective order against the actor -- known for his work in "Children of the Corn" and "Can't Buy Me Love" -- after claiming he bombarded her with cell phone text messages when their two-year romance came to an end.

In court papers, she writes, "I am scared that (Gains) may be following me ... (his) behavior is terrifying and making me fearful of my life."

A follow-up hearing has been set for 21 Aug. 21.

RELATED: Where Are They Now: Child Stars