[NTDEV] : How to detect a Stack overflow in Drivers

Hi all,
I am using SoftIce to debug my driver NDIS Miniport Driver.I already
encountered a condition in which the stack overflow was occuring and the
softice was showing a “Break due to Page Fault”. Can’t we have some
mechanism in which we can detect a Stack Overflow.

1> Can softice Detect and let the programmer know of stack Over flow?? if
yes How???
2> Is there any kind of preprocessor directive to determine the Stack over
flow conditions.

Thanks
Ajitabh