Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# win service Pin
Member 67625520-Apr-05 5:57
Member 67625520-Apr-05 5:57 
GeneralPerformance Counter Instances help Pin
grif18-Apr-05 10:21
grif18-Apr-05 10:21 
GeneralDesigning Class Library with Namespaces Pin
Seraphin18-Apr-05 8:47
Seraphin18-Apr-05 8:47 
GeneralRe: Designing Class Library with Namespaces Pin
Alex Korchemniy18-Apr-05 9:08
Alex Korchemniy18-Apr-05 9:08 
GeneralImport of CSV via ODBC issue Pin
RB@Emphasys18-Apr-05 8:42
RB@Emphasys18-Apr-05 8:42 
GeneralDeleting a line from a text file Pin
Member 75626018-Apr-05 8:34
Member 75626018-Apr-05 8:34 
GeneralRe: Deleting a line from a text file Pin
Luis Alonso Ramos18-Apr-05 8:46
Luis Alonso Ramos18-Apr-05 8:46 
GeneralProblem DLLImport and events Pin
thaukko18-Apr-05 5:01
thaukko18-Apr-05 5:01 
Hi,

i am trying to use a DLL(LibPl.dll) which was written C++. I imported the native Methods via DLLImport:

<br />
[DllImport(DllFileName)]<br />
internal static extern uint PL_new_term_refs(int n);<br />


When I use this Method (PL_new_term_refs) in the Main Application everything works fine.
But if exactly the same Code is called via an event/delegate it is not working
anymore. What I get is the following Error:

<br />
An unhandled exception of type 'System.NullReferenceException' occurred in aflib.dll<br />
<br />
Additional information: Object reference not set to an instance of an object.<br />
<br />
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.<br />
  at ArteFACT.Rule.libpl.PL_new_term_refs(Int32 n)<br />


It seems that it can't find the static method at all.

Does anybody have an Idea what it could be? Because I could not really
find anything on the web and debugging didn't really help as well.

Thanks in advance,

Chris
GeneralRestarting a service Pin
Mauricio Ritter18-Apr-05 4:38
Mauricio Ritter18-Apr-05 4:38 
GeneralRe: Restarting a service Pin
Dave Kreskowiak18-Apr-05 5:24
mveDave Kreskowiak18-Apr-05 5:24 
GeneralRe: Restarting a service Pin
Mauricio Ritter18-Apr-05 6:38
Mauricio Ritter18-Apr-05 6:38 
GeneralRe: Restarting a service Pin
Dave Kreskowiak18-Apr-05 7:33
mveDave Kreskowiak18-Apr-05 7:33 
GeneralRe: Restarting a service Pin
Alex Korchemniy18-Apr-05 9:05
Alex Korchemniy18-Apr-05 9:05 
QuestionHow to handle Scroll Bar events for word in c#? Pin
18-Apr-05 3:56
suss18-Apr-05 3:56 
GeneralReadFile, Accept methods in C#.net Pin
Babarsaeed18-Apr-05 3:39
Babarsaeed18-Apr-05 3:39 
GeneralHelp--Drag Drop Event Sometimes not work and Some times it works Pin
M Umair tariq18-Apr-05 1:59
M Umair tariq18-Apr-05 1:59 
Generalrdl in c# Pin
tvprithiv18-Apr-05 1:51
tvprithiv18-Apr-05 1:51 
GeneralRe: rdl in c# Pin
leppie18-Apr-05 3:37
leppie18-Apr-05 3:37 
QuestionHow to Ping? Pin
Alper Camel18-Apr-05 1:31
Alper Camel18-Apr-05 1:31 
AnswerRe: How to Ping? Pin
Colin Angus Mackay18-Apr-05 1:38
Colin Angus Mackay18-Apr-05 1:38 
GeneralRe: How to Ping? Pin
Alper Camel18-Apr-05 1:44
Alper Camel18-Apr-05 1:44 
GeneralRe: How to Ping? Pin
Dave Kreskowiak18-Apr-05 4:57
mveDave Kreskowiak18-Apr-05 4:57 
GeneralRe: How to Ping? Pin
Anonymous18-Apr-05 21:14
Anonymous18-Apr-05 21:14 
GeneralRe: How to Ping? Pin
Dave Kreskowiak19-Apr-05 2:21
mveDave Kreskowiak19-Apr-05 2:21 
GeneralRe: How to Ping? Pin
Alper Camel19-Apr-05 4:13
Alper Camel19-Apr-05 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.