# Issue with loading movie on multiple windows

**URL:** <https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653>\
**Category:** Libraries\
**Created:** [April 26, 2021, 2:25pm UTC](https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653 "2021-04-26T14:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 26, 2021, 2:36pm UTC](https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653/2 "2021-04-26T14:36:27Z")

</div>

> [@Using custom \`main(String\[\] args)\` breaks file reading functions in Windows (e.g. \`loadShader()\`, \`loadImage()\`)](https://discourse.processing.org/t/using-custom-main-string-args-breaks-file-reading-functions-in-windows-e-g-loadshader-loadimage/2572/14):
>
> By default, field PApplet::sketchPath would point to the “Current Working Directory” (CWD): Unless a special “–sketch-path=” argument is passed to PApplet.runSketch(): [Forum.Processing.org/two/discussion/16457/size-method-for-intial-window-not-working-when-more-windows-are-are-added#Item\_1](http://Forum.Processing.org/two/discussion/16457/size-method-for-intial-window-not-working-when-more-windows-are-are-added#Item_1) I believe the PDE (Processing’s IDE) creates its own customized main(String[] args) which passes all of those custom args to the compiled sketch. And when we override it by making our own main(String[…

---

_[View the full topic](https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653)._
