An error popping up while trying to create a new source file, or trying to open an old code - c++

While trying to crate a new file, or open an old code in Dev c++ an error pops up. the error message is :
'clBtn' is not a valid integer value.
I've had this problem for a couple of days now. I have three options, to send anonymous bug report, to continue or to terminate. I don't think I deleted something that lead to this issue. Also I have never had this issue before, any advice would be helpful.

Related

How to fix "Cannot save file" error in dev-c++

I'm have been working on this c file for some time and regularly saving it each time i execute the code. All of a sudden i can't save the file due to an error: "cannot save file D:\Applications\C\C_files\no_of_days.c"
Here's a screenshot.
I have been having the same error while trying to save different c files for a few days now (this never happened before).
On googling the error, i found only one suitable answer, there it was suggested to not use folder names with spaces for saving programs in dev-c++.
I did that but the problem still persists.
This is my first time asking a question on stack overflow, so forgive me for any mistakes that i may have made.
Edit: As a temporary solution for this issue, I copied the code and pasted the code into a new file and save it with a different name. After a few times of saving and execution, the same error occurs.
I did the abovementioned steps(making a new file....) 4 more time, and each time, after a few saves, the same error occurs.
The problem was google sync.
Dev-c++ couldn't save the file after editing it as google sync was using it for a long time even after it was synced.
I paused google sync, restarted my computer and then the files could be saved again.

LINK 1104: Cannot open file '...test.exe' randomly occurred

I'm a beginner C++ developer working on a quality assurance project utilizing the GoogleTest framework. While creating unit tests, to verify whether solution outputs were within an acceptable range or not, I received the error message of " LINK1104: cannot open file 'C:Users\kfung\Documents\SAM\sam_dev\ssc\build_vs2017\x64\Release\test.exe' ".
It came out of nowhere. I've been working within the SAM\sam_dev branch for quite sometime now, where I have complete access to this. On top of that, this error message came after trying to build my solution. When this message came, I was only changing integer values, so I do not think it really is linked to that action. It wasn't anything major.
The test.exe program works fine and is able to test all of the files within my test explorer. The program works, yet VS17 is unable to locate/use this file.
I've searched throughout stack overflow and google and nothing like my issue has been discussed. The error has came out of nowhere with nothing really to prompt it.
I've tried "resetting" my development branch on Gitbash using the commands "checkout -- . ", where I should have reverted my project to it's workings state before this occurred. This did not effect my solution where the error keeps occurring.
What should I do?

"Unable to open file libc++abi.dylib". Program builds, but crashes upon being run. Using xcode 10.1 (10B61)

newbie here. I am following along this SFML flappy bird tutorial. I am currently stuck at this portion of stage creation where a "Splash State" (or logo loading screen) is made. The code of which is exactly the same as what is shown here.
I am using xcode 10.1.
The project builds. But when I tried running it, it crashes and I am greeted with the following:
Failed to load image "Resouces/res/Splash Background.png". Reason: Unable to open file
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: map::at: key not found
(lldb)"
If I understand it correctly, it's saying it cannot perform the action of loading the image at the aforementioned path because it is not able to open "libc++abi.dylib". And now the program is being terminated. (please help me understand this problem better by either confirming or correcting me here).
When I tried looking for "libc++abi.dylib", it is missing. Instead, I can only find "libc++abi.td".
This thread says to add that under Link Binary With Libraries. That did not produce any result.
The tutorial shows that the code runs and a "Splash State" or logo screen is expected to appear. Instead my program crashes and I am greeted with the aforementioned error.
I was wondering if anyone else ran into similar issues?
It's solved. It is made by a typo on my end... sorry.
I'll try my best to explain it here for those of you who may have the same issues:
The game asset is governed by a map, which is a private member variable of a "AssetManager" class. The typo is at the file path. Because of this, the map never inserted the key since the file path isn't valid.
When the map is later accessed, it would be out of range since nothing ever got inserted (since the asset did not load).
Basically, the error of not being to open "libc++abi.dylib" is caused by the map being out of range.

Qt5/c++ generating 'Corrupted shared library list' error during debug

I have a Qt5/C++ app which appears to be working fine, but when running in debug mode (GDB), this error pops up on the QT Creator console (stderr) - OCCASIONALLY!:
Corrupted shared library list: 0x7fffe8008e90 != 0x751e50
I can't find any reference to the cause, and I can't figure out what is triggering it (other that something to do with using a QLinkedList.) I tried switching to a QVector but sometimes the same error pops up.
What is this and how do I fix it? Valgrind says no memory corruption...so is this a false reporting issue? Or am I doing something wrong.
I've traced the above error to the last line (line 4) below.
Settings *programSettings = Settings::instance();
QString driver=programSettings->database_driver();
driver="QMYSQL"; // Override for testing
m_db = QSqlDatabase::addDatabase(driver);
This makes no sense to me...can someone explain why the QSqlDatabase::addDatabase line causes corruption? As well, why does the error ONLY appear when debugging...but not when running without gdb?
Based on the number of views there seem to be a lot of people with this issue. We pared the code down to a simple example and then reproduced the problem. The source of the problem is not user code, but Qt Creator itself. We can't go much further - just put up with it until a Qt Creator fix comes along.
It looks like you're writing over memory that doesn't belong to yourself. It looks like you're dereferencing a pointer that has an uninitialized value. Compile your application with all warnings enabled, and make sure you understand all of the warnings. After that you may need to start a code audit, after you minimize the code of course.

c++ winsock code does not work in its original solution/project in visual studio 2010

I am not 100% sure if I shall become insane...
As mentioned in many many other posts, I am writing this Connection class which stats up winsock, creates some sockets, binds them and let´s you send and receive some data...
I made this within my Server-project...
But , everytime i wanted to test the connection part of the server (most of the other parts are already working fine) it always goes on strike O_o... ALWAYS!!!...
What I tried to fix it:
1. rewrite the send & recv parts
2. rewrite the whole class multiple times without copying anything from the existing stuff before...
3. Write a special test client...
4. Write a whole new simple send/recv-udp-server programm to test, wether it may be based on some ports, that are blocked or something like that...
Still does not work...
Well... so a few minutes i came up with the idea, that I could try to copy the code into a new project and try it then (I don´t know what made try this - the frustration?.
But wooaaaaaah... IT WORKS:...
Now my Question to anyone familiar with Visual Studio...:
Why the HELL doesn´t it work in the original soultion/project, but In a totally new solution/project...???????
This drives me crazy, because I have to copy/rewrite everything into a new solution and reorganize this shit-.-....
All that I can say is to check all properties of old project which does not work against new project working...
It should be something different since you said that you did not modify the source code.
Occasionally the IDE will get confused and fail to correctly determine what needs to be recompiled. When strange stuff happens try "Rebuild Solution", or better yet, exit from the IDE and then rebuild.
Ok... I am not sure, why this problem appeared...
But the solution was to create a new solution and insert the "old" files...
finally it works :)...
I hope it wasn´t the windows firewall, but I did check this...