Static wrapper throws Object Not Set on long running routines

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
 
G

Guest

Kevin,
Assuming as you indicate that you have the source code for the VB.NET DLL,
you should bring this VB.NET project into your Solution and set a PROJECT
reference to it.
Then, you will be able to debug through - regardless of language.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top