otoprpradip
Programmer
- Nov 10, 2008
- 3
In my program following line:
-------------
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
------------
is giving System.Reflection.TargetInvocationException was unhandled by user code Message "Exception has been thrown by the target of an invocation."Source="mscorlib"
Note: It is thrown only when I am out of memory, otherwise it is ok.
What is the solution?
-------------
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
------------
is giving System.Reflection.TargetInvocationException was unhandled by user code Message "Exception has been thrown by the target of an invocation."Source="mscorlib"
Note: It is thrown only when I am out of memory, otherwise it is ok.
What is the solution?