> From: Marcos Del Puerto
>
<snip>
>
> The point is that when I try to change any data of the payload of the
> pool entry, a memory access violation exception is raised. I also
> tried using a non-static class and the list nodes as public and
> private, and also using as node array a global C node array and I
> always get that exception even when only a single thread is running.
> What am I doing wrong?  Shouldn't data declared in C++ as static be
> common to all the objects in the threads without ownership
> restrictions, even between different threads?

Yes it is. Sounds like you've got an ordinary bug in your code, and it has
nothing to do with the arcane workings of C++. Doesn't your exception
handler tell you where in the code the exception occurs? Are you sure it's
accessing the location you think it is? You may have to look at registers,
and understand the CPU instruction set to know for certain. Can you
peek/poke that location in the debugger? Does your CPU have an MMU, and is
it being set up properly? That's where I'd look.

--

Ciao,               Paul D. DeRocco
Paul                mailto:[EMAIL PROTECTED]


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to