Images disappear after some time.

0
0

Hi everyone, I’m having some problems with WiseJ. If you stay on the page for a few minutes or change tabs, the images of buttons, and some picutrebox’s just disappear out of nowhere.
Does anyone know what this could be?

Thanks.

  • You must to post comments
0
0

Hi Ruben,

Chances are that the GC is kicking in, if the same image instance is used by another PictureBox or the images themselves are static and either a Session or the PictureBox itself is disposed then all references to that image is also disposed.

Can you please wrap up a small runnable sample that showcases how you actually load these images in your application?

Best,
Alaa

//

  • ruben ribeiro
    The images in the button’s are normal images loaded in the runtime with the resources. the big squares that you can see are images that are returned bya amazon s3 cloud, converted from memory stream to image and loaded in those picturebox’s. I dont have any small runnable.
  • Levie (ITG)
    Hi Ruben, can you try loading the images a different way like with ImageSource? It looks like most of the other images on the page are retained. Are you using “using” statements that dispose of the Image instance? You can also check the browser console for errors. BTW, your app looks pretty interesting. It looks like something that might be good for madewithwisej.com you should send us a message to support AT wisej DOT com with some details if you’re interested.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.