Tag Archives: VS error

VS Error: RC1004 unexpected end of file found [How to Fix]

As shown in the figure, an error occurs when compiling the code: RC1004   unexpected end of file found

The reason is that CPP needs one more line at last, otherwise it will report this error

Examples of errors:

int main()
{
    return 0;  
}

Correct example

int main()
{
    return 0;
}  
// Leave a line at the end so it doesn't report an error 

[Solved] VS error: 0xC0000005: Access violation/no source available when reading location 0xFFFFFFFFFFFFFFFF

Situation: After the program runs, it reports an error “No source available”, 0xC0000005: Access conflict occurs when reading location 0xFFFFFFFFFFFFFFFF, etc. There is no problem with compiling and generating.

Background: The QT project under VS uses the FFTW3 library;

Error report:

An error is reported after exiting the operation

Or: 0xC0000005: Access violation occurred when reading location 0xFFFFFFFFFFFFFFFF, etc.

Causes and solutions:

Check the code, it is usually a problem of new and free, my problem here is in two places;

Problem 1:

Test_ini_phase[] is used in the function, but there is no new out in advance, and an error is reported;

1. Solution: Just apply for variable memory;

Problem 2:

All the variables used have been new, and there is a problem in the final release, and the same error is reported;

2. Solution:

Since wide_temp is only declared, it is not used, and there is no new out, but the same release processing is done when it is released, so an error is reported; just comment it out.

 

Summary: When there are too many variables, declare one, new one, release one, and achieve one-to-one correspondence.