Esp32 cam Error

OK, so then it likely has nothing to do with the development software you are using. More likely, the different results you are observing are caused by the differences in the two sketches.