You should read the bug history list...

Quote:

quote from http://www.conitec.net/beta/bugs.htm
video_switch caused a crash on some 3D hardware when a render target (view.bmap) was active at the same time (all A6 versions; fixed in A6.50.3). Workaround: Set the bmap parameters of all views to NULL before calling video_switch.





Always learn from history, to be sure you make the same mistakes again...