Title: Error setting printer in Vcl.Printers during code coverage execution · Issue #41 · DelphiCodeCoverage/DelphiCodeCoverage · GitHub
Open Graph Title: Error setting printer in Vcl.Printers during code coverage execution · Issue #41 · DelphiCodeCoverage/DelphiCodeCoverage
X Title: Error setting printer in Vcl.Printers during code coverage execution · Issue #41 · DelphiCodeCoverage/DelphiCodeCoverage
Description: When running the code coverage on the application I'm testing, an error occurs when attempting to set the printer during a print attempt. This issue only happens when the application is run with code coverage enabled. To provide more det...
Open Graph Description: When running the code coverage on the application I'm testing, an error occurs when attempting to set the printer during a print attempt. This issue only happens when the application is run with co...
X Description: When running the code coverage on the application I'm testing, an error occurs when attempting to set the printer during a print attempt. This issue only happens when the application is run wit...
Opengraph URL: https://github.com/DelphiCodeCoverage/DelphiCodeCoverage/issues/41
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error setting printer in Vcl.Printers during code coverage execution","articleBody":"When running the code coverage on the application I'm testing, an error occurs when attempting to set the printer during a print attempt. This issue only happens when the application is run with code coverage enabled.\r\n\r\nTo provide more detail, the problem occurs in the method from the Vcl.Printers library, specifically in the procedure TPrinter.BeginDoc. The issue arises when executing SetState(TPrinterState.psHandleDC);. The error message returned is: \"Printer selected is not valid.\"\r\n\r\nI start the code coverage using a batch file, passing the necessary parameters. I suspect that the issue may be related to the command prompt not recognizing the default printer when running the application in this instance.\r\n\r\nI would appreciate assistance with this situation. Is there any configuration or parameter that I should set for the code coverage to resolve this problem?\r\n\r\nThank you.","author":{"url":"https://github.com/rogerio1105","@type":"Person","name":"rogerio1105"},"datePublished":"2024-07-24T12:54:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/41/DelphiCodeCoverage/issues/41"}
| 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:2f9c86b2-8b1d-1e62-eb5c-9e4c931d3ef1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B772:338C4E:305F85:43D3F9:698F3BE7 |
| html-safe-nonce | aea3af7f72b437fee17df4fbd2c5edd73115a03b22b33bfecc3d18e0ff9ab84a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzcyOjMzOEM0RTozMDVGODU6NDNEM0Y5OjY5OEYzQkU3IiwidmlzaXRvcl9pZCI6IjM0OTQ4MDY3ODg5NzY5NTcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21bcf09f61d1a34ec8bc7f567a6a0d0d7972c129dc1c8eb4a4122c0ceb503d64 |
| hovercard-subject-tag | issue:2427515079 |
| 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/DelphiCodeCoverage/DelphiCodeCoverage/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/905caff182783b3a43883176a5ea70ad58ab2a5fe8d412d4e8edc0aa307008d7/DelphiCodeCoverage/DelphiCodeCoverage/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/905caff182783b3a43883176a5ea70ad58ab2a5fe8d412d4e8edc0aa307008d7/DelphiCodeCoverage/DelphiCodeCoverage/issues/41 |
| og:image:alt | When running the code coverage on the application I'm testing, an error occurs when attempting to set the printer during a print attempt. This issue only happens when the application is run with co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rogerio1105 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 |
| turbo-cache-control | no-preview |
| go-import | github.com/DelphiCodeCoverage/DelphiCodeCoverage git https://github.com/DelphiCodeCoverage/DelphiCodeCoverage.git |
| octolytics-dimension-user_id | 39753615 |
| octolytics-dimension-user_login | DelphiCodeCoverage |
| octolytics-dimension-repository_id | 135383707 |
| octolytics-dimension-repository_nwo | DelphiCodeCoverage/DelphiCodeCoverage |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135383707 |
| octolytics-dimension-repository_network_root_nwo | DelphiCodeCoverage/DelphiCodeCoverage |
| 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 | d6ba6f2bfbf6399a7c07495a912727369e95bfe8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width