Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 Views

2D wavelet transform example problem

Has anyone tried to run ref sample app in x64 Debug config? It crashes in the wrap routine. What would be the fix?

Thank you!
0 Kudos
2 Replies
Highlighted
Employee
7 Views

Hello,

Thank youfor the reports. There is negtive index in Array operation in the code, where 32bit and 64bit have different address as http://www.devx.com/tips/Tip/41349mentioned or http://www.viva64.com/en/l/0013/lession 13.so cause the memery access voliation.

You may workaround the probelm in wrap.h

protected:
template static void wrap(T base, unsigned int len,
unsigned int left, unsigned int right)
{

.....

for(i = 0; i < maxExt; i++)
{
if(i < left)

// base[-(int)(i-lEdge)] = base[len - 1 - i]; // use this or
base[ptrdiff_t(lEdge)-ptrdiff_t(i)]=base[len-1-i]; // Please note, base[ptrdiff_t(lEdge-i)] don't work
......

Best Regards,
Ying H.

0 Kudos
Highlighted
Beginner
7 Views

That did the trick.

Thank you very much, Ying for taking the time to repond even on a Sunday night! Admirable!

Uwe
0 Kudos