Posting a profit was once a distant memory for SanDisk ( SNDK), but no longer. The maker of flash-memory cards swung to profit in the second-quarter, bolstered by increased prices, higher royalty revenue and strong execution.

But even this return to profit was not enough for investors, who sent shares of the company tumbling 4% to $18.28 in after-market trading.

During the quarter, the company earned $52.5 million, or 23 cents a share, compared with a loss of $73.8 million, or 33 cents, in the year-ago period.
Mad Money Post Game: Sensing Sandisk
Excluding items such as acquisition-related charges and share-based compensation expense, the company actually earned 36 cents a share, far surpassing analysts' estimate of a loss of 16 cents.

The company's revenue declined 10% to $730.6 million from $816 million.
Copyright 2009 TheStreet.com Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.