From: fjilderda@... Date: 2016-12-05T12:39:04+00:00 Subject: [ruby-core:78495] [Ruby trunk Bug#12994] Embedded ruby vs2015 build crashes Issue #12994 has been updated by Freddy Jilderda. As a workaround I copy/pasted this code to the start of the _pioinfo function in win32.c (line 2462): #if RUBY_MSVCRT_VERSION >= 140 if (!__pioinfo) { set_pioinfo_extra (); } #endif ---------------------------------------- Bug #12994: Embedded ruby vs2015 build crashes https://bugs.ruby-lang.org/issues/12994#change-61874 * Author: Freddy Jilderda * Status: Feedback * Priority: Normal * Assignee: * ruby -v: ruby 2.4.0dev (2016-11-07 v2_4_0_preview2 56129) [i386-mswin32_140] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- When an embedded ruby engine in a vs2015 application is initialised using ruby_init the function set_pioinfo_extra in win32.c is not called. This results in a crash when ruby_init is called and it is trying to derefence the __pioinfo pointer in the _pioinfo function in win32.c -- https://bugs.ruby-lang.org/ Unsubscribe: