Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+21 votes

Getting this error code : """Cannot invoke "com.sun.prism.d3d.D3DTextureData.getContext()" because the return value of "com.sun.prism.d3d.D3DTextureResource.getResource()" is null""" when loading the program after adding the DEMO2.csv file.

asked in CSC305 Fall 2023 by (1 point)

1 Answer

+9 votes
 
Best answer

So after talking to Professor, we figured out the image size is too big for the cards and if you are displaying the images during filtering or search, the program crashes as it is unable to handle display images in the ImageVIew with such huge quantity.

To tackle it I had to optimize my code by not reloading all the images every time a search function is performed and reducing the image size by scaling it smaller size. Hope this helps.

answered by (1 point)
selected by
...