Sting Posted July 24, 2016 Report Posted July 24, 2016 I have two lines in my main program: int bar = gdispImageOpenFile(&colonImage, "Colon_10_64.gif"); int foo = gdispImageOpenFile(&oneImage, "One_40_64.gif"); fprintf(stderr, "Colon: %d, %d\n", foo, bar); if I execute them in this order the print result is: Colon: 0x8005, 0 If I swap the order of foo and bar the result is: Colon: 0, 0x8005 Is there a problem with opening more then one gif file?
Joel Bodenmann Posted July 24, 2016 Report Posted July 24, 2016 There is no problem with opening multiple GIF files at once. The only two things that can keep you from successfully opening multiple files at once are: You hit the maximum number of files that can be opened at once. That number is specified with GFILE_MAX_GFILES in the configuration file. Choose the number as low as possible to keep the resource requirements at a minimum. You don't have enough memory left to open more files. As the error return code you get from gdispImageOpenFile() is GDISP_IMAGE_ERR_NOSUCHFILE, you are most likely hitting the first issue. Just increase said number in your configuration file and you should be fine.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now