Boost logo

Boost Users :

Subject: Re: [Boost-users] Threads - Access in invalid memory Boost 1.36.0 BCB 5.8.3
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-12-03 10:13:03


Stephen Kierzewski <sjkninester_at_[hidden]> writes:

> I have a simple OpenGL program that is using Boost Threads and I had
> it working fine under Boost 1.34. I have switched to 1.36 for some of
> the newer mutex locking functionality and everything works fine,
> but.. I keep getting an invalid memory access error. My program will
> run fine if i skip past the offending call.
>
> Wondering if anyone has any ideas?

Are you using the DLL build of Boost.Thread? At what point in your
program's execution are you getting this error? On Startup? Normal
running? During shutdown?

> The offending call happens when the rendering thread is created. The
> call stack is as follows:
>
> Access in invalid memory in process: solarsystemT.exe(4056) -
> :\development\boost_1_36_0\boost/thread/win32/once.hpp#125
> Attempt to access 4 byte(s) at 0x00417084.

Is this the address of current_thread_tls_init_flag?

Anthony

-- 
Anthony Williams
Author of C++ Concurrency in Action | http://www.manning.com/williams
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Just Software Solutions Ltd, Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net