Adding an animated image to a picturebox to windows forms application gets crashed when it is attached to Application Verifier.
-
Wednesday, April 11, 2012 9:28 AMAdding an animated image to a picturebox to windows forms application gets crashed when it is attached to Application Verifier.
The following C# statement in the Form_load() event handler is causing the breakpoint..
this.pictureBox1.Image = Properties.Resources.loader_img;
Log of Application Verifier:
----------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
- <avrf:logfile xmlns:avrf="Application Verifier">
- <avrf:logSession TimeStarted="2012-04-11 : 14:40:39" PID="4000" Version="2">
- <avrf:logEntry Time="2012-04-11 : 14:40:51" LayerName="Heaps" StopCode="0x13" Severity="Error">
<avrf:message>First chance access violation for current stack trace.</avrf:message>
<avrf:parameter1>ec80006 - Invalid address causing the exception.</avrf:parameter1>
<avrf:parameter2>4deac97d - Code address executing the invalid access.</avrf:parameter2>
<avrf:parameter3>12d164 - Exception record.</avrf:parameter3>
<avrf:parameter4>12d180 - Context record.</avrf:parameter4>
- <avrf:stackTrace>
<avrf:trace>vrfcore!VfCoreRedirectedStopMessage+81 (d:\avrf\source\base\avrf\avrf30\vrfcore\stopredirect.cpp @ 103)</avrf:trace>
<avrf:trace>vfbasics!VerifierStopMessage+292 (d:\avrf\source\base\avrf\avrf30\providers\basics\basics.c @ 1214)</avrf:trace>
<avrf:trace>vfbasics!AVrfpCheckFirstChanceException+c8 (d:\avrf\source\base\avrf\vrfcommon\support.c @ 1108)</avrf:trace>
<avrf:trace>vfbasics!AVrfpVectoredExceptionHandler+16 (d:\avrf\source\base\avrf\vrfcommon\support.c @ 323)</avrf:trace>
<avrf:trace>ntdll!RtlIpv4StringToAddressExW+a35d ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlSubtreePredecessor+33e ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlSubtreePredecessor+195 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!KiUserExceptionDispatcher+e ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+a3d13 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+a5084 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+a4b68 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+55cfe ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+56428 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipDrawLine+46c ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipDrawLine+3c0 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipSetClipRegion+ba59 ( @ 0)</avrf:trace>
<avrf:trace>gdiplus!GdipCloneBitmapArea+d8aa ( @ 0)</avrf:trace>
</avrf:stackTrace>
</avrf:logEntry>
</avrf:logSession>
</avrf:logfile>- Moved by Mike FengMicrosoft Contingent Staff Monday, April 16, 2012 3:02 AM Not CLR (From:Common Language Runtime)
All Replies
-
Monday, April 16, 2012 3:01 AM
Hi Jbp,
Welcome to the MSDN Forum.
Please try to instance s new image object with the resource picture and then, you can assign it to a picture box control.
In addition, based on your description, your application can work well without Application Verifier. So this should be issue related to this tool, so I moved this thread to find a appropriate forum.
Thank you for your understanding and support.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, April 16, 2012 8:01 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, April 23, 2012 11:54 PM
-
Monday, April 16, 2012 8:02 AMOwner
Windows Forms - Category of forums
Visual C# - Category of forums
I hope one of these helps!
Thanks!
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, April 16, 2012 8:02 AM
- Edited by Ed Price - MSFTMicrosoft Employee, Owner Monday, April 23, 2012 11:54 PM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, April 23, 2012 11:54 PM

