In this work, the SLM-based phase retrieval system will be used to inspect carbon reinforced plastics samples (CFRP) under applying a thermal load. For this purpose, the system is used to capture a sequence of 8 spatially separated recording planes, where the distance between subsequent planes equals 2 mm. For detecting the hidden failures two sets of intensity observations are recorded. The first set for the initial state and the second set is captured after applying the load. To recover the phase information associated with the two states, the captured intensities have been subjected to an iterative algorithm based on the method of generalized projection.