Duplicate img elements from time to time (debugging aid needed)
Added by Alexander Schnellberger about 11 years ago
Hello,
I am having a problem with my Wt 3.3.0 application, that from time to time images on the start page are shown twice. It occurs at different browsers and is not really reproduceable (e.g. six times reloading and everything is ok and on the seventh time it occurs again).
Here is the appropriate HTML code snippet, that shows the problem:
<span id="obggnxw" style="vertical-align:middle;">
<img id="obggruo" alt="" src="/cgi-bin/webvm.wt?wtd=8hhIuvbgAm1xd89P&request=resource&resource=obggrun&rand=2">
<img id="obggruo" alt="" src="/cgi-bin/webvm.wt?wtd=8hhIuvbgAm1xd89P&request=resource&resource=obggrun&rand=2">
<span id="obggnxy" style="white-space:nowrap;"> </span>
</span>
The image belongs to a WLabel and is added like this
pWResource = new Wt::WMemoryResource(szMime);
pWResource->setData(blob.getData(), blob.getLength());
pWLabel->setImage(new Wt::WImage(Wt::WLink(pWResource)));
This code is definitely executed only once. Currently I don't know how to proceed.
Any help / hint to debug this problem is very much appreciated ?
Alex
duplicate_image.png (24.9 KB) duplicate_image.png |
Replies (1)
RE: Duplicate img elements from time to time (debugging aid needed) - Added by Koen Deforche about 11 years ago
Hey Alex,
That is intriguing. Could you isolate it in a test case for us to reproduce ?
Could you also check if this still is an issue with the latest Wt version (3.3.1-rc1?) ?
Regards,
koen