Technical Document #31

Technical Document #31
When trying to build my Kernel PlugIn project I get the following error:
kptest.obj : error LNK2001: unresolved external symbol __chkstk
How can I resolve this?

This error is most probably a result of a failed attempt to allocate a relatively big data structure on the stack, within your Kernel PlugIn project, due to the limited size of the kernel stack. To overcome this problem, try allocating the relevant structure dynamically (using malloc() — which is implemented by WinDriver to be used correctly from within the kernel as well), instead of allocating the structure locally on the stack.