Sunday, July 30, 2006

mystery behind USES_CONVERSION

Well this guy _alloca allocates memory from the stack and not from the heap,basically used by the USES_CONVERSION macro in the ATL ,leading to the cause of stack-overflow ,wen used inside a loop .This automatically gets freed when it goes out of the function scope .
And the default size of the stack in VC6 is 1MB .

ATL7.0 doesn't have this problem.

2 comments:

Anonymous said...

The table in the link summarizes the differencs in the conversion macros between atl3.0 and atl7.0

FarPointer said...

Thanx.