How safe is treated pine?

Having had sections of a new salvaged Jarrah post and rail fence fall over within a year thanks to termites, and seen a friends lovey painted but otherwise untreated pine pergola also disintegrate within a year , I would like to use treated pine for structures but hear conflicting stories as to its saftey. I was…