Skip to content

crash when calling in program #34

@Sutter099

Description

@Sutter099

I have tried some versions like 3.4.9 and 4.1.1. Things work well with opencv objects like:

// cv_test.cpp main()
Point3d all_points[][2] = {
		Point3d( 0.0, 0.0, 0.0 ),
		Point3d( 1.0, 0.0, 0.0 ),

		Point3d( 0.0, 2.0, 0.0 ),
		Point3d( 1.0, 1.0, 0.0 ),
				 
		Point3d( 0.0, -2.0, 0.0 ),
		Point3d( 1.0, -1.0, 0.0 ),
	};

cv::Mat tmp = cv::Mat::zeros(512, 512, CV_8UC1);

However, when it comes to imread() and imshow(), I can still compile my program successfully, but running the exe, it crashes immediately. I guess it is about the dynamic link library...

// cv_test.cpp main()
    cv::Mat my_pic = cv::imread("./my_pic.png", cv::IMREAD_GRAYSCALE);
    cv::imshow("my_pic", my_pic);

// gdb output
(gdb) start
During startup program exited with code 0xc0000135

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