Bitmap and picturebox cause out of memory exception
问题 I am trying to create an application that shows the online trains in picturebox . but my application spends a lot of memory and sometimes i got the Out of memory exception and sometimes my trains Disappears from the picturebox . To draw online train first time i draw the map of trains (lines ,stations ,...) on picturebox with size x=A and y=b after that i create another picturebox with the same size and put the second picturebox on first picturebox using this code: pictureBoxonlineTrain