{"action":"created","issue":{"url":"https://api.github.com/repos/node-ffi/node-ffi/issues/386","repository_url":"https://api.github.com/repos/node-ffi/node-ffi","labels_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/386/comments","events_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/386/events","html_url":"https://github.com/node-ffi/node-ffi/issues/386","id":225965730,"node_id":"MDU6SXNzdWUyMjU5NjU3MzA=","number":386,"title":"windows xp Error: The specified procedure could not be found.","user":{"login":"serkanp","id":1948290,"node_id":"MDQ6VXNlcjE5NDgyOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1948290?v=4","gravatar_id":"","url":"https://api.github.com/users/serkanp","html_url":"https://github.com/serkanp","followers_url":"https://api.github.com/users/serkanp/followers","following_url":"https://api.github.com/users/serkanp/following{/other_user}","gists_url":"https://api.github.com/users/serkanp/gists{/gist_id}","starred_url":"https://api.github.com/users/serkanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkanp/subscriptions","organizations_url":"https://api.github.com/users/serkanp/orgs","repos_url":"https://api.github.com/users/serkanp/repos","events_url":"https://api.github.com/users/serkanp/events{/privacy}","received_events_url":"https://api.github.com/users/serkanp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-03T12:13:28Z","updated_at":"2019-01-03T18:00:47Z","closed_at":null,"author_association":"NONE","body":"hi i am using ffi in my project bassaudio. \r\nit works in windows 7, 8,10 , macosx all versions, linux and arm linux. \r\nbut on windows xp sp3(all updates are installed) i got a strange error. \r\n\r\nError: The specified procedure could not be found.\r\n\\\\ ?\\C:\\codes\\deneme\\node_modules\\ffi\\build\\Release\\ffi_bindings.node\r\nthe chars at the beginning \\\\? is causing the problem i think and it refers to node_modules\\ffi\\node_modules\\bindings\\bindings.js:83\r\nbut bindings.js only requires ffi_bindings.node binary. \r\n\r\nunfortunately, my app is used on more then 10.000 computers that are macos, windows, linux, raspberry pi etc..\r\n%30 of my clients are still using windows xp. and i can't say them to change their current computers :)\r\nwe are serving legal music to shops , malls etc.. so most of them still wanted to use their own office computers which are still windows xp sp3.\r\ni have various visual studios on different os'.\r\ni have currently visual studio 2015 on windows 10 x64, but also have visual studio 2017, 2013, 2010 etc.\r\ni couldn't compile it on xp as you may guess :)\r\ni compiled it on windows 7 32bit with visual studio 2010 and compile tools. then i copied folder to windows xp and tested there\r\n\r\nhere is the the output on windows xp sp3 32bit:\r\n\r\nC:\\codes\\deneme>node -v\r\nv4.8.2\r\n\r\nC:\\codes\\deneme>npm -v\r\n2.15.11\r\n\r\nC:\\codes\\deneme>node app.js\r\nC:\\codes\\deneme\\node_modules\\ffi\\node_modules\\bindings\\bindings.js:83\r\n        throw e\r\n        ^\r\n\r\nError: The specified procedure could not be found.\r\n\\\\ ?\\C:\\codes\\deneme\\node_modules\\ffi\\build\\Release\\ffi_bindings.node\r\n    at Error (native)\r\n    at Object.Module._extensions..node (module.js:434:18)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Module.require (module.js:353:17)\r\n    at require (internal/module.js:12:17)\r\n    at bindings (C:\\codes\\deneme\\node_modules\\ffi\\node_modules\\bindings\\bindings\r\n.js:76:44)\r\n    at Object.<anonymous> (C:\\codes\\deneme\\node_modules\\ffi\\lib\\bindings.js:2:37\r\n)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)"},"comment":{"url":"https://api.github.com/repos/node-ffi/node-ffi/issues/comments/451225660","html_url":"https://github.com/node-ffi/node-ffi/issues/386#issuecomment-451225660","issue_url":"https://api.github.com/repos/node-ffi/node-ffi/issues/386","id":451225660,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTIyNTY2MA==","user":{"login":"jakeyChen1994","id":20443024,"node_id":"MDQ6VXNlcjIwNDQzMDI0","avatar_url":"https://avatars1.githubusercontent.com/u/20443024?v=4","gravatar_id":"","url":"https://api.github.com/users/jakeyChen1994","html_url":"https://github.com/jakeyChen1994","followers_url":"https://api.github.com/users/jakeyChen1994/followers","following_url":"https://api.github.com/users/jakeyChen1994/following{/other_user}","gists_url":"https://api.github.com/users/jakeyChen1994/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeyChen1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeyChen1994/subscriptions","organizations_url":"https://api.github.com/users/jakeyChen1994/orgs","repos_url":"https://api.github.com/users/jakeyChen1994/repos","events_url":"https://api.github.com/users/jakeyChen1994/events{/privacy}","received_events_url":"https://api.github.com/users/jakeyChen1994/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T18:00:47Z","updated_at":"2019-01-03T18:00:47Z","author_association":"NONE","body":"> hi i am using ffi in my project bassaudio.\r\n> it works in windows 7, 8,10 , macosx all versions, linux and arm linux.\r\n> but on windows xp sp3(all updates are installed) i got a strange error.\r\n> \r\n> Error: The specified procedure could not be found.\r\n> \\ ?\\C:\\codes\\deneme\\node_modules\\ffi\\build\\Release\\ffi_bindings.node\r\n> the chars at the beginning \\? is causing the problem i think and it refers to node_modules\\ffi\\node_modules\\bindings\\bindings.js:83\r\n> but bindings.js only requires ffi_bindings.node binary.\r\n> \r\n> unfortunately, my app is used on more then 10.000 computers that are macos, windows, linux, raspberry pi etc..\r\n> %30 of my clients are still using windows xp. and i can't say them to change their current computers :)\r\n> we are serving legal music to shops , malls etc.. so most of them still wanted to use their own office computers which are still windows xp sp3.\r\n> i have various visual studios on different os'.\r\n> i have currently visual studio 2015 on windows 10 x64, but also have visual studio 2017, 2013, 2010 etc.\r\n> i couldn't compile it on xp as you may guess :)\r\n> i compiled it on windows 7 32bit with visual studio 2010 and compile tools. then i copied folder to windows xp and tested there\r\n> \r\n> here is the the output on windows xp sp3 32bit:\r\n> \r\n> C:\\codes\\deneme>node -v\r\n> v4.8.2\r\n> \r\n> C:\\codes\\deneme>npm -v\r\n> 2.15.11\r\n> \r\n> C:\\codes\\deneme>node app.js\r\n> C:\\codes\\deneme\\node_modules\\ffi\\node_modules\\bindings\\bindings.js:83\r\n> throw e\r\n> ^\r\n> \r\n> Error: The specified procedure could not be found.\r\n> \\ ?\\C:\\codes\\deneme\\node_modules\\ffi\\build\\Release\\ffi_bindings.node\r\n> at Error (native)\r\n> at Object.Module._extensions..node (module.js:434:18)\r\n> at Module.load (module.js:343:32)\r\n> at Function.Module._load (module.js:300:12)\r\n> at Module.require (module.js:353:17)\r\n> at require (internal/module.js:12:17)\r\n> at bindings (C:\\codes\\deneme\\node_modules\\ffi\\node_modules\\bindings\\bindings\r\n> .js:76:44)\r\n> at Object. (C:\\codes\\deneme\\node_modules\\ffi\\lib\\bindings.js:2:37\r\n> )\r\n> at Module._compile (module.js:409:26)\r\n> at Object.Module._extensions..js (module.js:416:10)\r\n\r\nI hava resolved this problem,enter the src dir and delete this two lines:\r\n\r\nerrorMode = GetErrorMode();\r\nSetErrorMode(errorMode | SEM_FAILCRITICALERRORS\r\n\r\nAnd then exec \"node-gyp rebuild\",the library after rebuild can work correct on windows xp \r\n@Elainehxx @CNDonny you can try"}}
{"actor":{"display_login":"jakeyChen1994"}}