i am using the Processing libs in regular java. What i am trying to do is to close a running PApplet within my program, without closing the program itself (i.e. withput calling System.exit(0)).
I tried doing it by calling destroy() /dispose() on my PApplet, and that works fine when i'm only using the default renderer or P2D, but when i'm using P3D there is one big problem:
The debugger tells me that the "Animation Thread-SharedResourceRunner" Thread does not get terminated and keeps on running even after the PApplet has been destroyed / disposed. This leads to major problems down the road when i try to create a new PApplet in the same instance of the program.