I have some troubles with the photon function “ApOpenDBaseFile”. I
have a few bitmaps inside a “wgtp” file.
For some reason (which is what I would like to know), sometimes an error
occur when opening the wgtp file. But, when that happens, the
function is not returning the NULL value described in the
documentation.
What happens is that the program continue to run normaly and when I
call “ApGetImageRes” to get the bitmaps, the function SOMETIMES
returns NULL (so I don’t get that bitmap). But some bitmaps are still
opening correctly.
What is weird is that as long as I don’t re-open the wgtp file, the
bitmaps that returned NULL will continue to do so at each call of
“ApGetImageRes” and the ones that are OK will always load. When I
re-open the wgtp file, bitmaps may be all OK, OR some may be NULL
but they could be different bitmaps than the previous missing ones .
I don’t belive the wgtp file to be corrupted for most of the time
(99,9%), the ApOpenDBaseFile works fine with the same wgtp file.
thanks,
Simon Bélanger