0

I'm in Visual Studio 2008 and I have a project that loads lots of images. I want the images to be deployed to the local instance of the software running. The trouble is that I tried using the images as a resource, but there are apparently too many(200 to 300) because I get strange build errors like GDI+ exceptions and Out of Memory Exceptions. This got me to thinking: "Maybe I'm going about it wrong?" What should I be doing for my large set of images? Thanks!

Austin
  • 834
  • 1
  • 10
  • 21

2 Answers2

1

Maybe a post-build step to copy them to a known location in the output folder (ie $(target_dir)\images) then let the program load them from disk.

Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
  • Thanks, that's what I was thinking too. Actually, though, I solved the problem. I'll post the answer here in a sec. – Austin Jun 16 '09 at 14:41
0

The solution was to simply add a new folder to my project, add existing items to the folder, and then highlight the images and set the build action to compile. This seems to work in Debug mode. I haven't actually tried to release the project yet.

Austin
  • 834
  • 1
  • 10
  • 21