> I'm trying to port embedding application to Racket 5.0.1, I've
> stumbled upon access violation right inside scheme_main_setup.

Apologies, I've overlooked the section about tls.

Btw to make it working with other compilers on Windows, I suggest to
make the following change to schthread.h:

*** schthread.h.bak     Tue Aug 03 18:50:44 2010
--- schthread.h Sun Oct 24 12:50:29 2010
***************
*** 27,33 ****

  #if defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES)
  # define USE_THREAD_LOCAL
! # if _MSC_VER
  #  define THREAD_LOCAL /* empty */
  #  define IMPLEMENT_THREAD_LOCAL_VIA_WIN_TLS
  # elif (defined(__APPLE__) && defined(__MACH__)) ||
defined(GC2_PLACES_TESTING)
--- 27,33 ----

  #if defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES)
  # define USE_THREAD_LOCAL
! # if defined(WIN32)
  #  define THREAD_LOCAL /* empty */
  #  define IMPLEMENT_THREAD_LOCAL_VIA_WIN_TLS
  # elif (defined(__APPLE__) && defined(__MACH__)) ||
defined(GC2_PLACES_TESTING)

-- 
Sergey Khorev
http://sites.google.com/site/khorser
Can anybody think of a good tagline I can steal?
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to