A modified, improved method has been developed for the dissolution of semiconductor materials containing a GaAlAs layer. This modified method involves the alternate application of anodic and cathodic processes in order to produce an arsenic-free surface for the carrier concentration measurement. The advantageous features of this method are demonstrated by comparison of the depth profiles of various semiconductor structures obtained by conventional and modified techniques.