I am using a virtual device to manipulate packets as they are entering/leaving
the serial port.  My current difficulty is that I am now running out of stack
space.

Question 1.  The function SysGetStackInfo always returns false (indicating stack
overflow) when called from my driver.  Is this function suppose to work when
called from virtual device drivers or will it only work from applications.  Is
there any other way to determine the stack boundaries, and/or current stack
usage?

Possible solutions:
1. Walk through my code again and try to trim down stack usage.  Unfortunately
this will not gain me very much more.

2. Allocate some space from the heap and redirect the A7 register to point at
the heap while it is in my driver.  This is a Pandora's box I probably do not
want to open.

Any other hints/solutions out there?


Ron Mercer
Certicom Inc.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to