microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

ThreeJSApp - XMLHttpRequest - Access violation #58

Closed DoctorDubb closed 7 years ago

DoctorDubb commented 7 years ago

The folowing code in app.js: var request = new XMLHttpRequest(); request.open('GET', 'http://xxx', true); request.onload = function () { if (request.status >= 200 && request.status < 400) { // Success! var data = JSON.parse(request.responseText); } else { // We reached our target server, but it returned an error } }; request.onerror = function () { // There was a connection error of some sort }; request.send(null); give me the following error: Unhandled exception at 0x76F10AAE (ucrtbase.dll) in threejsapp.exe: 0xC0000005: Access violation reading location 0x3DC87857.

Almost-Done commented 7 years ago

59

The referenced PR should fix this. Faulty dead code. The fix is merged in master now.

DoctorDubb commented 7 years ago

Thanks! This appears to be fixed in Hololens emulator - will confirm on device tomorrow - closing for now.