question

Hatedfate-6793 avatar image
0 Votes"
Hatedfate-6793 asked RLWA32-6355 commented

Exited with code 3

115671-eaaa8655-da2f-4936-9d3a-3f3fe743c863.jpg


I have another error running another program.

115672-4608cfd8-b30d-4d64-8fea-3672aae6dfe3.jpg


c++
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Presumably these are programs you're writing - so you need to find the causes and fix them.
Press the Retry button to debug the issues.

1 Vote 1 ·

That’s so strange because I didn’t change anything and it work just fine a few hours ago ( no error at all when I ran it).

0 Votes 0 ·
RLWA32-6355 avatar image
1 Vote"
RLWA32-6355 answered Viorel-1 commented

In the case of TravelingSalesman.exe the debug heap has detected that it has been corrupted. In the other case it appears that NeuralNetwork.exe has requested its own termination.

It is now up to the developer to debug these two applications to determine the cause of the heap corruption in TravelingSalesman.exe and the reason why NeuralNetwork.exe has decided to terminate itself.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The first image with the heap corruption, it turns out I tried to delete unknown location on the heap. I am still not sure why NeuralNetwork.exe decides to terminate itself.

0 Votes 0 ·

Select the Debug configuration and start NeuralNetwork from Visual Studio. When the dialog appears, press Retry. See the Call Stack window and try determining the cause.


0 Votes 0 ·
Hatedfate-6793 avatar image
0 Votes"
Hatedfate-6793 answered RLWA32-6355 commented

115674-screenshot-2021-07-18-195857.png



Okay, so I was debugging through the code and the moment it finishes looping through a double for loop inside a constructor it crashes and sent me to this screen. This is strange, because unlike the other issue that I'd solved a few hours ago, I had not made any changes to my code for this project. It appears that the same code works just fine on my friend's laptop so I am not sure if my code is the issue here.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It appears that the debugger is now at an instruction that is not inside your code but is probably a dll loaded by the system into your process. Many times coding errors manifest in crashes with errors that appear to emanate from system dlls because those are the modules that are identified when the abnormal termination of the process is reported.

Be specific about the crash. Was there an error code or other text associated with it? What does the call stack look like?

0 Votes 0 ·