Are you using threads? Are you possibly modifying the GUI anyhow from an another thread than the main GUI thread?