Jump to content
Aaron Yang

SC_VECTOR declaration causes Exception thrown.

Recommended Posts

Hey guys,

Need help about this:

Exception thrown at 0x00007FFC1FCE1CAF (ntdll.dll) in mytest.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

I traced the call stack to where it stopped in my code, found it's this line in header file:

sc_vector<sc_signal<float>> output_connect_wire{"output_connect_wire",1};

It's been used like this in cpp file, not sure if it's relevant though:

else {

 where the submodule output declared as sc_vector<sc_out<float>> O_data{"O_data",1};


Thank you in advance and tell me if you need any more info to identify the issue.

Share this post

Link to post
Share on other sites

Access violation reading location 0x0000000000000000.

Looks like null pointer dereference.   

I don't immediately see a problem in code samples you provide. Probably bug is somewhere else. Use debugger to identify the root cause of problem.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now