I am developing an application to run on Windows NT 4.0 (service pack
6) that makes use of the Wang Image Edit and Image Admin components
(part of Imaging for Windows) in a C++ ActiveX component. Our custom
component allows the user to view 2-page TIFF images, and annotate on
the first page of the image, saving up to 10 annotations in the
attach-a-note format. However, we have noticed an odd bug that only
occurs occaisionally, when you open an image and annotate it, then
close the image, re-open it and annotate it again.
Here is the run-down:
1. Open a 2-page tiff image
2. Add a few annotations (we'll say 6)
3. Save and close the image
4. Re-open the image
5. Add another sticky note annotation
6. As soon as you click off of the annotation you are editing, the new
annotation is created, but the text of that new annotation is also put
into the first annotation you created in step 2.
7. If you repeat steps 5 & 6, you will repeat the bug in ascending
order, so, if you initially had 6 annotations, the text of #7 will be
in #7 and #1. The text of #8 will be in #8 and #2, #9 will be in #9
and #3, and so on.
The real problem is, this only happens with two page TIFF images, and
does not happen with every two page TIFF. It seems to happen randomly,
we cannot find any similarity between the times it happens except that
it is a multipage tiff, and it is after a save and re-open, and even
then it does not happen every time.
We have reviewed our code that accesses the Wang components, and can't
find anything that should come anywhere near causing this problem, so
we are assuming this is a bug in the Wang components for NT. If we
install the Windows 2000 version of the Wang components, this problem
goes away, so we know it is not a problem in NT itself. However, we
cannot install the Windows 2000 version on all our installations of NT
(around 25,000 PCs), because it is not in our license, and there may be
unforseen consequences of that.
Has anyone come across this problem before, and have a
solution/work-around? Or does anyone know who I can contact or where I
can look to get help with this problem?
Any answers are greatly appreciated.
Thank you,
John Biazo
Senior Programmer Analyst


|