My mistake. I need to be more specific. Compilation errors don't cause the sliders to reset, but some runtime errors do.

I'll report back when I find an example.