Advocate General resigns