Skip to content

Commit 6d8afd6

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 6d19180 + c01ea7c commit 6d8afd6

23 files changed

+149
-118
lines changed

Builds/MacOSX/MIDI2LR.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
BE7E7EF06FF4053F4417663C = {isa = PBXBuildFile; fileRef = 788447911A56FA34C9F8468E; };
4848
92A115CF461BA5CFDF750CA7 = {isa = PBXBuildFile; fileRef = CFE017FDA090DB4518F95826; };
4949
02A7CE68913E06429425B72C = {isa = PBXBuildFile; fileRef = 596A515E74C727B658C08FBE; };
50+
BDE4152EF99D34942A18B128 = {isa = PBXBuildFile; fileRef = 17EC4CDCF4664D03C47FC1AE; };
5051
5B1E88868F714EDC30BD06A1 = {isa = PBXBuildFile; fileRef = 8B172E18F0E34AE94D47AC12; };
5152
1CBFBED27592AE60502C81C3 = {isa = PBXBuildFile; fileRef = 5205E1551934B25B9956903B; };
5253
71E4A94C6C0AA69DC27972DF = {isa = PBXBuildFile; fileRef = DEBD9FE98B3F63E8D660310D; };
@@ -75,6 +76,7 @@
7576
11A085E103F4DB635F250B4F = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "utf_impl.cpp"; path = "../../icu/source/common/utf_impl.cpp"; sourceTree = "SOURCE_ROOT"; };
7677
12A5F5628D5F8A75606C954E = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = cstring.cpp; path = ../../icu/source/common/cstring.cpp; sourceTree = "SOURCE_ROOT"; };
7778
143DA00B5265FB49526E86AB = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = DebugInfo.mm; path = ../../Source/DebugInfo.mm; sourceTree = "SOURCE_ROOT"; };
79+
17EC4CDCF4664D03C47FC1AE = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = Misc.cpp; path = ../../Source/Misc.cpp; sourceTree = "SOURCE_ROOT"; };
7880
1C376A7F89CA0BC18630F667 = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainComponent.h; path = ../../Source/MainComponent.h; sourceTree = "SOURCE_ROOT"; };
7981
21006303504EA15B0A68D6C7 = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainWindow.h; path = ../../Source/MainWindow.h; sourceTree = "SOURCE_ROOT"; };
8082
21C6B16D556E368BC28C907B = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
@@ -205,6 +207,7 @@
205207
E03CBAF954A7A416CC4C5EFB,
206208
596A515E74C727B658C08FBE,
207209
F4C90FF76D76F4C7A08E98AD,
210+
17EC4CDCF4664D03C47FC1AE,
208211
04B184211B8A075FD6F0CCA8,
209212
8B172E18F0E34AE94D47AC12,
210213
872F7D5733C0B0577CA8C02B,
@@ -450,6 +453,7 @@
450453
BE7E7EF06FF4053F4417663C,
451454
92A115CF461BA5CFDF750CA7,
452455
02A7CE68913E06429425B72C,
456+
BDE4152EF99D34942A18B128,
453457
5B1E88868F714EDC30BD06A1,
454458
1CBFBED27592AE60502C81C3,
455459
71E4A94C6C0AA69DC27972DF,
474 Bytes
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
To send crash reports to me from Windows, you need to enable User-Mode Dumps.
2+
3+
You can enable them by double-clicking on the EnableUserDumps.reg file in this directory and allowing that to change your registry. If you do that, the dumps will be in your AppData\Local\CrashDumps directory. AppData is a hidden directory in your user directory.
4+
5+
If you want to edit the registry yourself, follow the instructions at https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx.
6+
7+
In either event, contact me at https://groups.google.com/forum/#!forum/midi2lr, tell me what version of MIDI2LR you got the dump from, and post the file somewhere (like a file-sharing service) where I can download it.
8+
9+
Thank you for your help!
10+
11+
Rory

Builds/VisualStudio2017/MIDI2LR_App.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
<ClCompile Include="..\..\Source\MIDIProcessor.cpp"/>
182182
<ClCompile Include="..\..\Source\MIDISender.cpp"/>
183183
<ClCompile Include="..\..\Source\MidiUtilities.cpp"/>
184+
<ClCompile Include="..\..\Source\Misc.cpp"/>
184185
<ClCompile Include="..\..\Source\NrpnMessage.cpp"/>
185186
<ClCompile Include="..\..\Source\ProfileManager.cpp"/>
186187
<ClCompile Include="..\..\Source\PWoptions.cpp"/>

Builds/VisualStudio2017/MIDI2LR_App.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@
328328
<ClCompile Include="..\..\Source\MidiUtilities.cpp">
329329
<Filter>MIDI2LR\Source</Filter>
330330
</ClCompile>
331+
<ClCompile Include="..\..\Source\Misc.cpp">
332+
<Filter>MIDI2LR\Source</Filter>
333+
</ClCompile>
331334
<ClCompile Include="..\..\Source\NrpnMessage.cpp">
332335
<Filter>MIDI2LR\Source</Filter>
333336
</ClCompile>

DoxyGen/Midi2lr.Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ DIA_PATH =
22232223
# and usage relations if the target is undocumented or is not a class.
22242224
# The default value is: YES.
22252225

2226-
HIDE_UNDOC_RELATIONS = YES
2226+
HIDE_UNDOC_RELATIONS = NO
22272227

22282228
# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
22292229
# available from the path. This tool is part of Graphviz (see:
@@ -2298,7 +2298,7 @@ GROUP_GRAPHS = YES
22982298
# The default value is: NO.
22992299
# This tag requires that the tag HAVE_DOT is set to YES.
23002300

2301-
UML_LOOK = NO
2301+
UML_LOOK = YES
23022302

23032303
# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
23042304
# class node. If there are many fields or methods and many nodes the graph may

Installer/MIDI2LR-debug.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,17 @@
179179
<platforms>windows</platforms>
180180
<distributionFileList>
181181
<distributionFile>
182-
<origin>../Builds/VisualStudio2017/x64/Debug/App/MIDI2LR.exe</origin>
182+
<origin>../Builds/VisualStudio2017/EnableUserDumps.reg</origin>
183+
</distributionFile>
184+
<distributionFile>
185+
<origin>../Builds/VisualStudio2017/EnableUserDumps.txt</origin>
183186
</distributionFile>
184187
<distributionFile>
185188
<origin>../rtmidi/midiprobe.exe</origin>
186189
</distributionFile>
190+
<distributionFile>
191+
<origin>../Builds/VisualStudio2017/x64/Debug/App/MIDI2LR.exe</origin>
192+
</distributionFile>
187193
</distributionFileList>
188194
</folder>
189195
<folder>

MIDI2LR.jucer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<FILE id="Z5nYLY" name="MidiUtilities.cpp" compile="1" resource="0"
6464
file="Source/MidiUtilities.cpp"/>
6565
<FILE id="rID3Fo" name="MidiUtilities.h" compile="0" resource="0" file="Source/MidiUtilities.h"/>
66+
<FILE id="gxafEg" name="Misc.cpp" compile="1" resource="0" file="Source/Misc.cpp"/>
6667
<FILE id="cl1k7L" name="Misc.h" compile="0" resource="0" file="Source/Misc.h"/>
6768
<FILE id="b8rH7o" name="NrpnMessage.cpp" compile="1" resource="0" file="Source/NrpnMessage.cpp"/>
6869
<FILE id="Vg4s1B" name="NrpnMessage.h" compile="0" resource="0" file="Source/NrpnMessage.h"/>

Source/CommandMap.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ MIDI2LR. If not, see <http://www.gnu.org/licenses/>.
2323
#include <exception>
2424
#include "CommandMap.h"
2525
#include "LRCommands.h"
26+
#include "Misc.h"
2627

2728
void CommandMap::AddCommandforMessage(size_t command, const rsj::MidiMessageId& message)
2829
{
@@ -32,16 +33,14 @@ void CommandMap::AddCommandforMessage(size_t command, const rsj::MidiMessageId&
3233
if (command < LrCommandList::LrStringList.size()) {
3334
auto cmd_abbreviation = LrCommandList::LrStringList.at(command);
3435
message_map_[message] = cmd_abbreviation;
35-
command_string_map_.insert({cmd_abbreviation, message});
36+
command_string_map_.emplace(cmd_abbreviation, message);
3637
}
3738
else
3839
message_map_[message] =
3940
LrCommandList::NextPrevProfile.at(command - LrCommandList::LrStringList.size());
4041
}
4142
catch (const std::exception& e) {
42-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
43-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
44-
+ ProjectInfo::versionString);
43+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
4544
throw;
4645
}
4746
}
@@ -57,9 +56,7 @@ std::vector<const rsj::MidiMessageId*> CommandMap::GetMessagesForCommand(
5756
return mm;
5857
}
5958
catch (const std::exception& e) {
60-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
61-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
62-
+ ProjectInfo::versionString);
59+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
6360
throw;
6461
}
6562
}
@@ -96,9 +93,7 @@ void CommandMap::ToXmlDocument(const juce::File& file) const
9693
}
9794
}
9895
catch (const std::exception& e) {
99-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
100-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
101-
+ ProjectInfo::versionString);
96+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
10297
throw;
10398
}
10499
}

Source/CommandMenu.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ MIDI2LR. If not, see <http://www.gnu.org/licenses/>.
2626
#include "CCoptions.h"
2727
#include "CommandMap.h"
2828
#include "LRCommands.h"
29+
#include "Misc.h"
2930
#include "PWoptions.h"
3031

3132
CommandMenu::CommandMenu(const rsj::MidiMessageId& message) try : juce
@@ -47,9 +48,7 @@ CommandMenu::CommandMenu(const rsj::MidiMessageId& message) try : juce
4748
{
4849
}
4950
catch (const std::exception& e) {
50-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
51-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
52-
+ ProjectInfo::versionString);
51+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
5352
throw;
5453
}
5554

@@ -74,9 +73,7 @@ void CommandMenu::SetSelectedItem(size_t index)
7473
LrCommandList::NextPrevProfile.at(index - 1 - LrCommandList::LrStringList.size()));
7574
}
7675
catch (const std::exception& e) {
77-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
78-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
79-
+ ProjectInfo::versionString);
76+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
8077
throw;
8178
}
8279
}
@@ -158,9 +155,7 @@ void CommandMenu::clicked(const juce::ModifierKeys& modifiers)
158155
}
159156
}
160157
catch (const std::exception& e) {
161-
juce::NativeMessageBox::showMessageBox(juce::AlertWindow::WarningIcon, "Error",
162-
juce::String("Exception ") + e.what() + ' ' + __func__ + ' ' + __FILE__ + ". Version "
163-
+ ProjectInfo::versionString);
158+
rsj::ExceptionResponse(typeid(this).name(), __func__, e);
164159
throw;
165160
}
166161
}

0 commit comments

Comments
 (0)