you can't, there is nothing to support that in .NET
The GC is based on (a slightly conservative) reachability or "life" analysis, not on reference counting.
why would you need a reference count?
if only for one or a few classes of your own, you could try and implement it yourself, including an override for the = operator. Not sure you can get it all tight though.
Luc Pattyn [Forum Guidelines][My Articles] DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
public new static object GetIPictureDispFromPicture(System.Drawing.Image image)
System.Drawing.ImageConverter converter2 = new System.Drawing.ImageConverter();
byte arraybyt2 = (byte)converter2.ConvertTo(image, typeof(byte));
System.Drawing.Image imageToConvert = System.Windows.Forms.AxHost.GetPictureFromIPicture(System.Windows.Forms.AxHost.GetIPictureFromPicture(image));
System.Drawing.ImageConverter converter = new System.Drawing.ImageConverter();
byte arraybyt = (byte)converter.ConvertTo(imageToConvert, typeof(byte));
The function receives a Image that needs to be converted to an ipicture. I found out that during change the image to a ipicture and back to image the size of the array of bytes are different. How come the size of the arraybyt1 and arraybyt2 are different. I'm creating a checksum of the array from bytes and therefor the checksum is also different?
I am using abstract classes in my project, meanwhile i want to use overloaded Constructors to those classes, then how to call those overloaded constructors, because abstract classes cannot instantiate.
can any one please answer me?
Thanks in advance...
Last Visit: 31-Dec-99 19:00 Last Update: 3-Mar-21 14:50