Donate Share

SharpPrivacyLibrary

Tracker: Bugs

5 SharpPrivacyLibrary.Instance() causes reference error - ID: 1054965
Last Update: Comment added ( nobody )

The following code:

Dim cPGP As SharpPrivacyLibrary =
SharpPrivacyLibrary.Instance()

generates the following error:

Object reference not set to an instance of an object.

Is the library expecting something in the environment to
exist (such as a file) before it is initilized? This looks like
a great library but is not useful if you cannot call the
first method.


5261259 ( adamco ) - 2004-10-27 00:43

5

Closed

Works For Me

Nobody/Anonymous

Interface (example)

v1.0 (example)

Public


Comments ( 2 )




Date: 2006-03-28 22:57
Sender: nobody

Logged In: NO

I had this problem as well.. it turns out that the library
tries to create files under the documents and
settings/current user which is a real problem if you are
running on a shared web host!

I redeclared the constructor with a boolean so you could
specify if the files get created and all was well.



Date: 2004-11-30 10:06
Sender: gwrenProject AdminAccepting Donations

Logged In: YES
user_id=915190

Dim cPGP As SharpPrivacyLibrary =
SharpPrivacyLibrary.Instance()

is wrong... use

Dim cPGP As SharpPrivacyLibrary =
SharpPrivacyLibrary.Instance

It's a property not a method.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2004-11-30 10:06 gwren
resolution_id None 2004-11-30 10:06 gwren
close_date - 2004-11-30 10:06 gwren