473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Static wrapper throws Object Not Set on long running routines

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

Jan 12 '06 #1
1 1135
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"kevin" wrote:
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

Jan 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lkrubner | last post by:
In the code below I'm getting a parse error on this line: static $controllerForAll = new McControllerForAll(); why does this give me a parse error? I'm running PHP 4. function &...
1
by: James | last post by:
Hello Java NG, I not sure if this is the right NG for this type of question but if not please let me know which is, TIA Any way first off let me say I'm a student and this WAS last weeks lab,...
15
by: Steve Richfield | last post by:
To All, First, some of your replies to me have been posted through DevelopersDex, and these are NOT posted on USENET for the world to see. DevelopersDex appears to be trying to hijack USENET,...
1
by: Ray Ackley | last post by:
I'm experiencing a threading problem that's really perplexing me. I have a multithreaded application that reads car ECU information that's sent over the serial port by the ECU and received by the...
10
by: goose | last post by:
Hello all I've written a wrapper for malloc and friends. Its available from http://www.lelanthran.com/downloads/os_mem/index.php The reason for doing writing this so that newbies can...
4
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
6
by: smmk25 | last post by:
Before I state the problem, I just want to let the readers know, I am knew to C++\CLI and interop so please forgive any newbie questions. I have a huge C library which I want to be able to use in...
49
by: Ben Voigt [C++ MVP] | last post by:
I'm trying to construct a compelling example of the need for a language feature, with full support for generics, to introduce all static members and nested classes of another type into the current...
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.