Hello all,

I'm writing Dlls here and am also doing low level analysis of the stack and its content. To do that, I use the StackTop and StackBottom global variables which used to work fine in an exe file. Problem is, when in a DLL, StackTop is always zero and StackBottom is the exact opposite of StackLength. I thus looked as to where this might come from, and discovered that it comes from the fact that StackTop is only ever calculated from within Exe_entry which obviously is not called for a DLL.

Is anyone else seeing this?
Do you have a suggestion as to how to workaround this?

Regards
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to