.exe has triggered a breakpoint visual studio c++


#1

Hi all,
I have downloaded some demo projects from Juce. I have changed code and when I debug project, sometime I show message “…exe has triggered a breakpoint” and has a breakpoint at jassert() … I don’t know how to solve this problem. Please help me!


#2

Well that probably means that you’re doing something that you shouldn’t be in your code. Usually there will be a nice comment next to the jassert telling you what you’re doing wrong and how to fix it


#3

Thanks Ed95, I will check again.


#4

Thanks Ed95 again! I found problem and fixed it.


#5

I get the same error message, even though I haven’t made any changes at all, with a new Audio Plugin.


#6

This is a generic error message, the explanation is in the code usually above the line with jassert…
(Like Ed said in the post before)
Try to understand what the text says, and if you don’t understand it and need help, post the text next to the jassert, so people can give hints…

there might be lots of possible jasserts in the code…
2219 to be precise:

modules/ > grep -R jassert * | wc -l
2219

#7

Here it is:

// failed to find a compatible input configuration
jassert (success);

if (getTotalNumOutputChannels() != newNumOuts)
    success &= setChannelLayoutOfBus (false, 0, AudioChannelSet::canonicalChannelSet (newNumOuts));