[newbie] KEvent does not work

hi
all, i am using the numega driver studio libraries to create some named events and that is creating trouble .
when i try to check after i have created the named event object wih the help of the KEvent class of the Numega Driver Studio.with its funtion IsValid() it always return invalid.
and i try to clear or reset the event or set it even then it creates the page fault.
I have tried a lot many things and can;t get the clue.
how to do it.
can anyone please give me a clue why this might be happening.
the code snippet is in the IRP_MJ_START handler function.
regards and thanks in advance
its urgent so please reply
shishir