Los Angeles: 'Desperate Housewives' star Eva Longoria credits the gym for helping her get over her split from husband Tony Parker.

The 36-year-old said the stress of the break-up in 2010 left her at her unhealthiest and while friends were telling her how great she looked, inside she felt like she was wasting away, reported a magazine.

"I was so thin and everyone kept saying how great I looked. It was probably the most unhealthy place I've ever been. In my worst time, people were saying I've never looked better," Longoria said.

The actress, who was married to Parker for three years, says she has now bounced back from the dark days.

"I have a great diet and exercise routine... I like weigh training and abs. I hate the elliptical. I despise cardio. I just can't do it. So I try to do my cardio within the workout."