Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: Monochrome instead of coloured cursors Pin
Heath Stewart22-Jun-04 4:33
protectorHeath Stewart22-Jun-04 4:33 
GeneralRe: Monochrome instead of coloured cursors Pin
leppie22-Jun-04 7:10
leppie22-Jun-04 7:10 
GeneralRe: Monochrome instead of coloured cursors Pin
jjansen22-Jun-04 21:35
jjansen22-Jun-04 21:35 
Generaluse mediaplayer Pin
fatidarya22-Jun-04 2:40
fatidarya22-Jun-04 2:40 
GeneralRe: use mediaplayer Pin
Heath Stewart22-Jun-04 4:32
protectorHeath Stewart22-Jun-04 4:32 
Generalconnecting to network server using C# Pin
Subin KJ22-Jun-04 2:15
Subin KJ22-Jun-04 2:15 
GeneralRe: connecting to network server using C# Pin
Heath Stewart22-Jun-04 4:14
protectorHeath Stewart22-Jun-04 4:14 
QuestionWhy do I get a System.NullReferenceException? Pin
_Arthur21-Jun-04 23:05
_Arthur21-Jun-04 23:05 
Good day,
I have a dll that disables/enables the keyboard using the SetWindowsHookEx, CallNextHookEx and UnhookWindowsHookEx api's. Now when i run my application, at first it does its job, but after awhile it generates this error:

/*
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.
*/

The error points to this part of my code:

static void Main()
{
try
{
Application.Run(new Form1());
}
catch(Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message); <----- error
}
}

Does this have to do with garbage collection?

Thanks Arthur
AnswerRe: Why do I get a System.NullReferenceException? Pin
Colin Angus Mackay22-Jun-04 1:15
Colin Angus Mackay22-Jun-04 1:15 
AnswerRe: Why do I get a System.NullReferenceException? Pin
Heath Stewart22-Jun-04 4:04
protectorHeath Stewart22-Jun-04 4:04 
GeneralProblems with richtextbox Pin
clatten21-Jun-04 22:48
clatten21-Jun-04 22:48 
GeneralRe: Problems with richtextbox Pin
clatten22-Jun-04 1:01
clatten22-Jun-04 1:01 
GeneralRe: Problems with richtextbox Pin
Dave Kreskowiak22-Jun-04 3:30
mveDave Kreskowiak22-Jun-04 3:30 
GeneralRe: Problems with richtextbox Pin
clatten22-Jun-04 4:24
clatten22-Jun-04 4:24 
GeneralRe: Problems with richtextbox Pin
LongRange.Shooter22-Jun-04 10:11
LongRange.Shooter22-Jun-04 10:11 
QuestionChannels.Tcp namespace does not exist? Pin
fayth21-Jun-04 22:44
fayth21-Jun-04 22:44 
AnswerRe: Channels.Tcp namespace does not exist? Pin
Stefan Troschuetz21-Jun-04 23:55
Stefan Troschuetz21-Jun-04 23:55 
GeneralRe: Channels.Tcp namespace does not exist? Pin
fayth22-Jun-04 16:07
fayth22-Jun-04 16:07 
Generaloperator overloading Pin
bouli21-Jun-04 22:21
bouli21-Jun-04 22:21 
GeneralRe: operator overloading Pin
fayth21-Jun-04 22:51
fayth21-Jun-04 22:51 
GeneralRe: operator overloading Pin
bouli21-Jun-04 23:10
bouli21-Jun-04 23:10 
GeneralRe: operator overloading Pin
Dave Kreskowiak22-Jun-04 3:22
mveDave Kreskowiak22-Jun-04 3:22 
GeneralRe: operator overloading Pin
bouli22-Jun-04 3:24
bouli22-Jun-04 3:24 
GeneralRe: operator overloading Pin
Heath Stewart22-Jun-04 3:58
protectorHeath Stewart22-Jun-04 3:58 
GeneralRe: operator overloading Pin
bouli22-Jun-04 4:04
bouli22-Jun-04 4:04 

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.