0
當我從服務器接收數據並嘗試在skreen上顯示它時,我的瀏覽器崩潰並且內存已滿,我該如何解決這個問題。這是我的代碼:運行處理草圖後瀏覽器崩潰
String pic ;
PImage img;
int x;
int y;
int pad = 10;
int bs = 50;
String[] list = new String[0];
void setup(){
size(500,500);
background(150);
//img = loadImage(pic);
}
void draw(){
for (int i = 0; i < list.length ; i++){
x = pad + (bs+pad)*i;
y = pad;
pic = list[i];
img = loadImage(pic);
image(img,x,y,bs,bs);
println(pic);
}
}
void change(String val){
list = split(val," ");
}