- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Thank you!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
{
.....
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That did the trick.
Thank you very much, Ying for taking the time to repond even on a Sunday night! Admirable!
Uwe
Thank you very much, Ying for taking the time to repond even on a Sunday night! Admirable!
Uwe
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page