I have been playing around with electronics for about a year and have utilized the Yenka simulator often. I have been working on a control circuit which is switching a 24 volt power source. On the bread board everything works fine but if I build the circuit in Yenka it will crash the mosfet in the simulation. It shows the gate receiving main power supply voltage when the Vgs is only 10v. What is odd is that the component fails even when I just connect a wire to nowhere. The only way I have made it work is to connect my gate control voltage while the component is in the failed mode then restore it. However if I try and switch the gate on and off it will fail again. Is there something I am missing about the operation of a mosfet or does yenka's sim have a bug? Thanks