OleCreateFromFile & Threads - Security Issues?
-
Hi, In my app I have to put some bitmamps in RichEditCtrls as Ole Objects. I load the bitmaps at the start of the application and I use OleCreateFromFile to create the object from the bitmap file. The problem that I have is there are too many images (over 25) and the loading process takes about 7 seconds. If I load them in the main thread, the applications seems dead. You can't move the window, can't minimize it... I tried to load the images in a separate thread but with the same code the OleCreateFromFile returns an error: "The system cannot find the specified file" altough if I make an fopen in the same thread I can read that file. Do you know something about this? Am I doing something wrong? Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.