Hello
I get the following error when i trying to run a function from
OnStart() in my win-service:
"Object Reference not set to an instance of an object" and the
stacktrace only gives me the function name (setEvents), nothing
else...
protected override void Onstart(string [] args)
{
init_timers();
init_object_list();
setEvents(true); //the stacktrace tells me that this function
generated the exception
}
the function also gets called every time a timer elapses with the exact
same error. I have tried writing to the system logg in the function to
see how far down the function the service gets before the exception
gets thrown, but it seems it stoppes instantly (first row) and the only
thing that happenes there is a declaration of a string variable. string
foo = "stringval";
--
lajo_79
------------------------------------------------------------------------
lajo_79's Profile:
http://www.highdots.com/forums/m918
View this thread:
http://www.highdots.com/forums/t3018668