Skip to content

Unhandled exception thrown: read access violation. **this** was 0xFFFFFFFFFFFFFFF7. #417

@jron53

Description

@jron53

Bug category

  • bug - compilation error
  • bug - compilation warning
  • bug - runtime error
  • bug - runtime warning
  • bug - logic error

Describe the bug

Steps to Reproduce

Copied an example from your website:
#include <cmath>
#include <matplot/matplot.h>

int main() {
    using namespace matplot;

    std::vector<double> x = linspace(0, 2 * pi);
    std::vector<double> y1 = transform(x, [](auto x) { return sin(x); });
    std::vector<double> y2 = transform(x, [](auto x) { return sin(x - 0.25); });
    std::vector<double> y3 = transform(x, [](auto x) { return sin(x - 0.5); });
    plot(x, y1, x, y2, "--", x, y3, ":");

    show();
    return 0;
}

Output
std::runtime_error exception, read access violation

Microsoft C++ exception: std::runtime_error at memory location 0x000000947E6FF060.

When I continue to debug I see:

this was 0xFFFFFFFFFFFFFFF7.```
</details>

**Platform**
<!-- Mark your platform with an x-->
- [ ] *cross-platform issue - linux*
- [x] *cross-platform issue - windows*
- [ ] *cross-platform issue - macos*

**Environment Details:**
 - OS: Windows 10 pro
 - OS Version: 
 - Compiler:
 - Compiler version:

**Additional context**
<!--optional-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions