help on TDI.

Hi ,

I’m write a Kernel drive that sent UDP packets via TDI .

my code is based on the OSR example of the TDI (i’m working on WIN2K).

everything works just fine . but after open and closeing the \DEVICE\UDP for around 10 times and then shutdown windows
i’m getting a KeBugCheck .

here is what i’m doing to open and closing the udp :

init
1.zwCreateFile \Device\UDP
2.getting Fileobject of the Device
deinit
3.Decrease the count of the Fileobject
4.ZwCLose \Device\Udp

after doing so around 10 times i’m getting a kebugcheck …

anyone know what can do it ??

Thanks,
Elad Zucker
xxxxx@netvision.net.il