Re: picture control
Mohit wrote:
Hi,
Thanks for reply
SOrry for using wrong term.
By mistake i had written assertion error.
I exactly got this error
Unhandled exception at 0x4ed8d27e in Screensharingclient.exe:
0xC0000005: Access violation reading location 0x00000015.
at GDIplusGraphics.h (Line no 1565)
Status DrawImage(IN Image* image,
IN INT x,
IN INT y,
IN INT width,
IN INT height) {
return SetStatus(DllExports::GdipDrawImageRectI
(nativeGraphics,
image ? image-
nativeImage
: NULL,
x,
y,
width,
height));
here values of x=0,y=0,width=1350,height=758
+ image 0x0006c678 {nativeImage=0x0149d558 lastResult=Ok
loadStatus=-858993460 } Gdiplus::Image *
This code work fine for some time but after thet it give above error.
Sometimes its also show assembly.Instead of above error
Please suggest?
Yes, "exception" is a much different thing than "assertion"; I'm glad you clarified. This access violation is clearly from trying
to reference a member of a class or struct using a NULL pointer. The location is 0x15, meaning that a pointer to some object has a
member that is 21 bytes offset into it, and you used an object pointer to try to access that member, but the pointer itself was NULL
(a 0 value).
Since the nativeImage (a GpImage *) is not that deeply offset into the Image class, it's more likely that there is something
expected to be a good pointer within the GpImage object, but is instead set to 0 (NULL).