I am new to driver development - I'm working on my first driver
project now - and so until the past few weeks I had never used the
common tools such as WinDbg and TraceView.

I've noticed when I am connected to the target machine (both machines
are running XP SP2) with WinDbg, that if TraceView is running on the
target machine, "Invalid parameter passed to C runtime function"
messages are displayed in WinDbg. These messages seem to be displayed
whenever a trace message is posted from my driver. Interestingly,
they also seem to be displayed whenever I simply pass the mouse over
the TraceView app on the target machine.

If TraceView is not running on the target machine, the "invalid
parameter..." messages are not displayed.

Is this normal? If not, does anybody have any idea what the problem
could be?

RE: TraceView related question: "Invalid parameter passed to C runtim by DeStefan

DeStefan
Mon Jul 21 05:11:00 CDT 2008



"khaake" wrote:

> I am new to driver development - I'm working on my first driver
> project now - and so until the past few weeks I had never used the
> common tools such as WinDbg and TraceView.
>
> I've noticed when I am connected to the target machine (both machines
> are running XP SP2) with WinDbg, that if TraceView is running on the
> target machine, "Invalid parameter passed to C runtime function"
> messages are displayed in WinDbg. These messages seem to be displayed
> whenever a trace message is posted from my driver. Interestingly,
> they also seem to be displayed whenever I simply pass the mouse over
> the TraceView app on the target machine.
>
> If TraceView is not running on the target machine, the "invalid
> parameter..." messages are not displayed.
>
> Is this normal? If not, does anybody have any idea what the problem
> could be?
>

RE: TraceView related question: "Invalid parameter passed to C runtim by DeStefan

DeStefan
Mon Jul 21 05:14:01 CDT 2008

Hello khaake,

Can you give a code snipped how you use the "Trace" function in your driver?
I guess that you use DbgPrint function?

> If TraceView is not running on the target machine, the "invalid
> parameter..." messages are not displayed.

Well, maybe i misunderstood you, but when TraceView is closed you will not
see any message. How will it show a message if it is not running? But tell me
exactly what you mean.

Also please explain detailed, what happens when you move the mouse over the
application. How many messages do appear? Just one, or a full galore of
messages?



"khaake" wrote:

> I am new to driver development - I'm working on my first driver
> project now - and so until the past few weeks I had never used the
> common tools such as WinDbg and TraceView.
>
> I've noticed when I am connected to the target machine (both machines
> are running XP SP2) with WinDbg, that if TraceView is running on the
> target machine, "Invalid parameter passed to C runtime function"
> messages are displayed in WinDbg. These messages seem to be displayed
> whenever a trace message is posted from my driver. Interestingly,
> they also seem to be displayed whenever I simply pass the mouse over
> the TraceView app on the target machine.
>
> If TraceView is not running on the target machine, the "invalid
> parameter..." messages are not displayed.
>
> Is this normal? If not, does anybody have any idea what the problem
> could be?
>