Hi,


I have created a Use mode driver which act as a virtual printer,which
trasmit the byte array to the .Net application. I was able to debug the
driver in through visual studio.net 2003.

Now I am not able to debug the Driver in the User mode. I don't know
why it is happening.

I want to debug step by step through source fine.

Any Help is great for me.

Thanks,
Sahaj

Re: Unable to DEbug the Driver in the user mode by Maxim

Maxim
Sat Aug 05 13:15:01 CDT 2006

Attach some debugger - MSVC or WinDbg - to the proper process.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Sahaj" <arora.Sahaj@gmail.com> wrote in message
news:1154797845.545003.274820@m73g2000cwd.googlegroups.com...
> Hi,
>
>
> I have created a Use mode driver which act as a virtual printer,which
> trasmit the byte array to the .Net application. I was able to debug the
> driver in through visual studio.net 2003.
>
> Now I am not able to debug the Driver in the User mode. I don't know
> why it is happening.
>
> I want to debug step by step through source fine.
>
> Any Help is great for me.
>
> Thanks,
> Sahaj
>


Re: Unable to DEbug the Driver in the user mode by Sahaj

Sahaj
Mon Aug 07 01:46:09 CDT 2006


I have attached the My Visual studio 2003 with Notepad.exe.

But the when I set the break point it gives me information "no
executable loaded at this location".

Thanks,
Sahaj
Maxim S. Shatskih wrote:
> Attach some debugger - MSVC or WinDbg - to the proper process.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "Sahaj" <arora.Sahaj@gmail.com> wrote in message
> news:1154797845.545003.274820@m73g2000cwd.googlegroups.com...
> > Hi,
> >
> >
> > I have created a Use mode driver which act as a virtual printer,which
> > trasmit the byte array to the .Net application. I was able to debug the
> > driver in through visual studio.net 2003.
> >
> > Now I am not able to debug the Driver in the User mode. I don't know
> > why it is happening.
> >
> > I want to debug step by step through source fine.
> >
> > Any Help is great for me.
> >
> > Thanks,
> > Sahaj
> >


Re: Unable to DEbug the Driver in the user mode by Vladimir

Vladimir
Tue Aug 08 07:24:12 CDT 2006

Insert DbgBreak() into the driver's code. After the break point occurred
the system itself will ask to attach a debugger.

--
Best regards,
Vladimir Zinin
mailto:vzinin@gmail.com


Sahaj wrote:
> I have attached the My Visual studio 2003 with Notepad.exe.
>
> But the when I set the break point it gives me information "no
> executable loaded at this location".
>
> Thanks,
> Sahaj

Re: Unable to DEbug the Driver in the user mode by Sahaj

Sahaj
Thu Aug 10 13:27:25 CDT 2006

Hi Vladimir,

Thanks for your help, I have used DebugBreak in place of DbgBreak().

I am still not able to get any success. I get the information that " no
source code exist at this location.".

I am going to describe you a bit about my project it may help you to
resolve my problem

1. I have Printer driver code which uses uniDrv & OEMUI code.
2. THERE IS A PORT MONITER(WN32 APPLICATION) WHICH RECIEVE & SEND IT A

3. ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET
APPLICATION & WHEN THIS APPLICATION CLOSES DOWN IT CLEAN OFF THE PRINT
JOB FROM SPOOLER.

4. there is no debug information is popping up for these win32 dlls
too.

I am getting some information about the debug content(in debug window)
but I am not able to debug source code line by line.


can I get some thing through which I can get the better understanding
of Printer driver work flow.

it may help me.



Thanks,
Sahaj


Vladimir Zinin wrote:
> Insert DbgBreak() into the driver's code. After the break point occurred
> the system itself will ask to attach a debugger.
>
> --
> Best regards,
> Vladimir Zinin
> mailto:vzinin@gmail.com
>
>
> Sahaj wrote:
> > I have attached the My Visual studio 2003 with Notepad.exe.
> >
> > But the when I set the break point it gives me information "no
> > executable loaded at this location".
> >
> > Thanks,
> > Sahaj


Re: Unable to DEbug the Driver in the user mode by Sahaj

Sahaj
Sat Sep 09 02:55:31 CDT 2006

Hi Vladimir,

Thanks for your help, I have used DebugBreak in place of DbgBreak().

I am still not able to get any success. I get the information that " no
source code exist at this location.".

I am going to describe you a bit about my project it may help you to
resolve my problem

1. I have Printer driver code which uses uniDrv & OEMUI code.
2. THERE IS A PORT MONITER(WN32 APPLICATION) WHICH RECIEVE & SEND IT A

3. ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET
APPLICATION & WHEN THIS APPLICATION CLOSES DOWN IT CLEAN OFF THE PRINT
JOB FROM SPOOLER.

4. there is no debug information is popping up for these win32 dlls
too.

I am getting some information about the debug content(in debug window)
but I am not able to debug source code line by line.

can I get some thing through which I can get the better understanding
of Printer driver work flow.

it may help me.

Thanks,
Sahaj

Sahaj wrote:
> Hi Vladimir,
>
> Thanks for your help, I have used DebugBreak in place of DbgBreak().
>
> I am still not able to get any success. I get the information that " no
> source code exist at this location.".
>
> I am going to describe you a bit about my project it may help you to
> resolve my problem
>
> 1. I have Printer driver code which uses uniDrv & OEMUI code.
> 2. THERE IS A PORT MONITER(WN32 APPLICATION) WHICH RECIEVE & SEND IT A
>
> 3. ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET
> APPLICATION & WHEN THIS APPLICATION CLOSES DOWN IT CLEAN OFF THE PRINT
> JOB FROM SPOOLER.
>
> 4. there is no debug information is popping up for these win32 dlls
> too.
>
> I am getting some information about the debug content(in debug window)
> but I am not able to debug source code line by line.
>
>
> can I get some thing through which I can get the better understanding
> of Printer driver work flow.
>
> it may help me.
>
>
>
> Thanks,
> Sahaj
>
>
> Vladimir Zinin wrote:
> > Insert DbgBreak() into the driver's code. After the break point occurred
> > the system itself will ask to attach a debugger.
> >
> > --
> > Best regards,
> > Vladimir Zinin
> > mailto:vzinin@gmail.com
> >
> >
> > Sahaj wrote:
> > > I have attached the My Visual studio 2003 with Notepad.exe.
> > >
> > > But the when I set the break point it gives me information "no
> > > executable loaded at this location".
> > >
> > > Thanks,
> > > Sahaj