G
Guest
I have dll (vb.net) that decrypts data. Since I can not mix VB and C# in the
same project I compiled the VB to a dll and reference it in my project. I
then created a static c# class that calls the dll and returns the data.
This all works fine except when I have to decrypt data from many (100,000+)
rows of data (looping through a SqlDataReader)
i.e. I am getting an Object reference not set to an instance of an object
error only when I am calling this class in a long running loop (the magic
number seems to be somewhere around 28,000 calls).
The C# class looks like this
public sealed class DecrypWrapper{
public static string DecryptString(string EncryptedValue){
VBDecryptor d = new VBDecryptor();
return d.Decrypt(EncryptedValue);
}
}
How do I even troubleshoot this?
kevin
same project I compiled the VB to a dll and reference it in my project. I
then created a static c# class that calls the dll and returns the data.
This all works fine except when I have to decrypt data from many (100,000+)
rows of data (looping through a SqlDataReader)
i.e. I am getting an Object reference not set to an instance of an object
error only when I am calling this class in a long running loop (the magic
number seems to be somewhere around 28,000 calls).
The C# class looks like this
public sealed class DecrypWrapper{
public static string DecryptString(string EncryptedValue){
VBDecryptor d = new VBDecryptor();
return d.Decrypt(EncryptedValue);
}
}
How do I even troubleshoot this?
kevin