From: SMTP%"davidg@balder.com" 16-OCT-1997 16:58:46.72 To: "'ahaslam@ihug.co.nz'" , "'NTFSD'" , "'NTDEV'" CC: Subj: RE: Completion routine gets passed NULL device ptr Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Thu, 16 Oct 1997 16:54:42 -0400 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by bort.mv.net (8.8.5/mem-951016) with SMTP id BAA10382 for ; Thu, 16 Oct 1997 01:38:23 -0400 (EDT) Received: by gw.atria.com id Wed, 15 Oct 1997 20:57:03 -0400 Received: from ns.compumedia.com by gw.atria.com id Wed, 15 Oct 1997 20:56:52 -0400 Received: by ns.compumedia.com with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5) id <01BCD993.4549DDE0@ns.compumedia.com>; Wed, 15 Oct 1997 17:53:40 -0700 Message-ID: From: "David Goebel (Balder Technology Group, Inc.)" To: "'ahaslam@ihug.co.nz'" , "'NTFSD'" , "'NTDEV'" Subject: RE: Completion routine gets passed NULL device ptr Date: Wed, 15 Oct 1997 17:53:39 -0700 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-ntdev@atria.com Precedence: bulk IoCallDriver() fills this in the stack location from its input parameter (and it crashes if passed a NULL), which in turn is used as the parameter to your completion routine, so it should be in there. If this is reproducable your solution is trivial, just verify the value is there when your dispatch routine is invoked, set a write watchpoint on the Irp stack location containing the device object, hit go and wait to catch red handed whoever is zeroing the field (always fun). David >-----Original Message----- >From: Drew Haslam [SMTP:ahaslam@ihug.co.nz] >Sent: Thursday, October 16, 1997 4:37 AM >To: 'NTFSD'; 'NTDEV' >Subject: Completion routine gets passed NULL device ptr > >Any reasons why a Driver Completion routine would get passed a NULL device >pointer? > >The context argument looks fine. > >Drew Haslam > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >[ To unsubscribe, send email to ntfsd-request@atria.com with body >UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]