[Mapguide-trac] [mapguide-trac] #2184: Error: Invalid argument(s): The value cannot be less than or equal to zero.
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Nov 22 00:56:09 PST 2012
#2184: Error: Invalid argument(s): The value cannot be less than or equal
to zero.
-------------------------------+--------------------------------------------
Reporter: cmy | Owner:
Type: defect | Status: reopened
Priority: high | Milestone:
Component: Rendering Service | Version: 2.0.0
Severity: trivial | Resolution:
Keywords: | External_id:
-------------------------------+--------------------------------------------
Comment(by cmy):
I want to know when it will cause this exception?
I want to know how to do this will cause this exception?
Now mapguie error logs often, leading to a dead map service.
root/tags/MAPGUIDE2.0.2/Server/src/Services/Rendering/ServerRenderingService.cpp
257 int width = map->GetDisplayWidth();
258 int height = map->GetDisplayHeight();
259 int dpi = map->GetDisplayDpi();
260 double scale = map->GetViewScale();
261 double metersPerUnit = map->GetMetersPerUnit();
262 if (width <= 0 || height <= 0 || dpi <= 0 || scale <= 0.0 ||
metersPerUnit <= 0.0)
263 throw new
MgInvalidArgumentException(L"MgServerRenderingService.RenderDynamicOverlay",
__LINE__, __WFILE__, NULL, L"MgValueCannotBeLessThanOrEqualToZero", NULL);
264
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2184#comment:5>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list