Fifty pins, and the one that bendsThe camera's slot and the reader carry fifty fine pins that enter the holes on the card's edge. A card pushed in at an angle bends one, and the bent pin shorts its neighbours, or breaks off inside the card's hole. The camera stops seeing cards, or sees them and errors; the card itself is usually unharmed, and a sheared pin left in it is removed on the bench before it is imaged. Photographers' forums associate the fault most with certain Canon bodies, but any slot can do it.
A controller of its ownA CompactFlash card is a small ATA drive. Its controller runs firmware, keeps a table translating addresses to flash locations, manages wear, and can corrupt its own table or hang on a bad block like any drive. When it does, the card presents as the wrong size, as 0 bytes, or not at all, and the data is still in the flash chips behind it.
Chip-offBecause the flash is in separate chips on a board, a dead CompactFlash is a chip-off job: the flash chips are desoldered, read on a programmer, and the controller's scrambling, error correction and page layout solved in software to rebuild the card as it was. It is quicker than monolith work and priced in the same band.
Formats and deletesA camera's format on CompactFlash rewrites the file tables and leaves the photographs where they were, as on any card; a few bodies offer a deeper option that does not. Deleting in camera does the same. Both are recoverable from an image provided the card has not been shot on since, which is why the first instruction is always to take it out.