Hello
I have a program that shows 4 graphics using CD, in one of them i added a
MapHandler inspired in the example “simplebar with ImageMapHandler Web”
The application runs pretty fast in debug mode, but when i install it in the
Apache server, when i move the mouse over the graph with the map, it responds
very slow to show values (i only show the X Label and Value (Index 2 and 5) in
two TextFields).
If i move the mouse over the graph the values are shown with a big delay and
the app doesn’t respond other components (as buttons) until all the values that
the mouse was moved over are shown.
As i told before, in debug works fine, and the Apache server is a BIG! server
and is in the same LAN that the clients (not over internet) and the LAN is
Gigabit. As clients i’ve tried MacOSX 10.9.2+Firefox/Safari and Fedora Linux
20+Firefox
The MapHandler code as i told is taken from that sample.
The graphic has a LineLayer and the new code (that makes this go slow is):
In the graphic generation
GraficoDatosWeb=GraficoDatos.makeChartPicture
ImageDatosMapString = GraficoDatos.getHTMLImageMap("myurl" )
mImageDatosMapHandler = new CDImageMapHandlerMBS(ImageDatosMapString)
return GraficoDatosWeb
In the ImageView MouseMove Event:
if GraficoDatos <> nil then
dim mTmp as integer = mImageDatosMapHandler.getHotSpot(X, Y)
if mTmp > 0 then
' Index=2 - X Axis Label
TextFieldValorX.text=mImageDatosMapHandler.getValue(2)
' Index=5 - Y Value
TextFieldValorY.text=mImageDatosMapHandler.getValue(5)
else
‘ No value under mouse pointer
TextFieldValorX.text=""
TextFieldValorY.text=""
end if
end if // me = nil
In the Apache’s log i have several of:
Do you know why this slowness?
--
José María Terry Jiménez
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info