LoadFromFile() causes Windows 98 to freeze?
Okay I have narrowed down my problems. I know, I know, I am not the best coder. But here goes:
To change pictures in my game, I am using LoadFromFile().
ex:
Code:
Image1->Picture->LoadFromFile("ExampleFolder/ExamplePicture.bmp");
As you much smarter than I people (meaning everyone) can tell, this loads the bitmap file "ExamplePicture.bmp" into TImage1.
I have found that the reason my program freezes on Windows 98, is because of this way of loading bitmaps that I use.
For example, if I use that line of code to show 20 or 30 different pictures, one after the other, a Windows 98 or Windows ME computer will freeze. This exact same program on a Windows 2000 or Windows XP computer wil run just fine.
So:
1. Is there any known conflict between Windows 98/ME and Windows 2000/XP that might be arising from the LoadFromFile function?
2. If there is no "cure" for this, what different way of loading bitmaps could I use.
Thank you all for any help!