Title: Windows.Devices.SmartCards doesn't appear to be working · Issue #35 · NodeRT/NodeRT · GitHub
Open Graph Title: Windows.Devices.SmartCards doesn't appear to be working · Issue #35 · NodeRT/NodeRT
X Title: Windows.Devices.SmartCards doesn't appear to be working · Issue #35 · NodeRT/NodeRT
Description: Sample code const smartcards = require("windows.devices.smartcards") const sc = new smartcards.SmartCard() const reader = new smartcards.SmartCardReader() Error produced Uncaught Error: Invalid arguments, no suitable constructor found Ve...
Open Graph Description: Sample code const smartcards = require("windows.devices.smartcards") const sc = new smartcards.SmartCard() const reader = new smartcards.SmartCardReader() Error produced Uncaught Error: Invalid arg...
X Description: Sample code const smartcards = require("windows.devices.smartcards") const sc = new smartcards.SmartCard() const reader = new smartcards.SmartCardReader() Error produced Uncaught Error: I...
Opengraph URL: https://github.com/NodeRT/NodeRT/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows.Devices.SmartCards doesn't appear to be working","articleBody":"#### Sample code\n\n``` javascript\nconst smartcards = require(\"windows.devices.smartcards\")\nconst sc = new smartcards.SmartCard()\nconst reader = new smartcards.SmartCardReader()\n```\n#### Error produced\n\n```\nUncaught Error: Invalid arguments, no suitable constructor found\n```\n#### Versions\n\nwindows: 10.0.10240\nwindows 10 sdk: 10.0.14393.0\nnode: 6.4.0\nnpm: 3.10.7\nelectron: 1.3.5\n## \n\nThe module was not installed using npm, i generated it with NodeRTUI and built it myself. Absolutely no build errors, just two neglectible type casting warnings.\n\nThe error above occurs both when trying to use `new smartcards.SmartCard()` and `new smartcards.SmartCardReader()`.\n\nInterestingly enough, when i call `smartcards.SmartCard()` without the `new` keyword, the renderer process crashes by illegally attempting to write to memory at location 0x00. This seems to have to do with line 942 of the generated code, which looks like this on my build:\n\n``` c++\ninfo.GetReturnValue().Set(Nan::CallAsConstructor(Nan::GetFunction(localRef).ToLocalChecked(), info.Length(), nullptr).ToLocalChecked());\n```\n## \n#### Side note\n\nUsing the module in the browser process of electron causes it to throw `error in CoInitializeEx()`, however using it in the renderer process doesn't create any errors at all.\n","author":{"url":"https://github.com/alexrsagen","@type":"Person","name":"alexrsagen"},"datePublished":"2016-09-03T15:23:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/35/NodeRT/issues/35"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e51f5bbf-7e9e-8ac2-46b3-241ac8bc2b5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEFC:34684:955CA15:CBAB012:6A5ED808 |
| html-safe-nonce | 4db35367b3e14ea792c62f5e0d39ea3e7bedc16b0ed7b007987e11f95b2fbde3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUZDOjM0Njg0Ojk1NUNBMTU6Q0JBQjAxMjo2QTVFRDgwOCIsInZpc2l0b3JfaWQiOiI2NDI0ODk0MDY0MzcxMzU3NzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 705898185718dd158f00f541e112e32608fa16d57b1930b57478abf6fe1739bc |
| hovercard-subject-tag | issue:174901680 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NodeRT/NodeRT/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d4d846137026f4a26ece4c0f20f9df75be0ed5d85c2daa7f2293ec97d33992b/NodeRT/NodeRT/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d4d846137026f4a26ece4c0f20f9df75be0ed5d85c2daa7f2293ec97d33992b/NodeRT/NodeRT/issues/35 |
| og:image:alt | Sample code const smartcards = require("windows.devices.smartcards") const sc = new smartcards.SmartCard() const reader = new smartcards.SmartCardReader() Error produced Uncaught Error: Invalid arg... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexrsagen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82d0004a35927bdb00c652a57f456c55aa0eda4ade1bc7956d7510fdea6e454b |
| turbo-cache-control | no-preview |
| go-import | github.com/NodeRT/NodeRT git https://github.com/NodeRT/NodeRT.git |
| octolytics-dimension-user_id | 7342091 |
| octolytics-dimension-user_login | NodeRT |
| octolytics-dimension-repository_id | 18972098 |
| octolytics-dimension-repository_nwo | NodeRT/NodeRT |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18972098 |
| octolytics-dimension-repository_network_root_nwo | NodeRT/NodeRT |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d2d913dd727d2d7ac189fb4d05b10bc34ecd03ee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width