Skip to content

Commit

Permalink
test version to narrow down strange Windows crash #111
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
Ho-Ro committed Aug 17, 2020
1 parent 95ff65f commit 117c927
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 177 deletions.
Binary file added docs/OpenHantek6022_zadig_Win10.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion openhantek/src/OH_BUILD.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit, will be re-created at each commit!
#define OH_BUILD "20200729 build 726"
#define OH_BUILD "20200817 build 727"
2 changes: 1 addition & 1 deletion openhantek/src/docks/HorizontalDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void HorizontalDock::setFrequencybase( double frequencybase ) {


double HorizontalDock::setSamplerate( double samplerate ) {
// printf( "HD::setSamplerate( %g )\n", samplerate );
printf( "HD::setSamplerate( %g )\n", samplerate );
QSignalBlocker blocker( timebaseSiSpinBox );
timebaseSiSpinBox->setMaximum( scope->horizontal.maxTimebase );
blocker = QSignalBlocker( samplerateSiSpinBox );
Expand Down
14 changes: 10 additions & 4 deletions openhantek/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,16 @@ MainWindow::MainWindow( HantekDsoControl *dsoControl, DsoSettings *settings, Exp
connect( horizontalDock, &HorizontalDock::frequencybaseChanged, dsoWidget, &DsoWidget::updateFrequencybase );
connect( dsoControl, &HantekDsoControl::samplerateChanged, [this, horizontalDock]( double samplerate ) {
// The timebase was set, let's adapt the samplerate accordingly
// printf( "mainwindow::samplerateChanged( %g )\n", samplerate );
dsoSettings->scope.horizontal.samplerate = samplerate;
horizontalDock->setSamplerate( samplerate );
dsoWidget->updateSamplerate( samplerate );
static bool skipFirstChange = true; // HACK: try to avoid a strange crash on Windows (issue #111)
if ( skipFirstChange ) { // just ignore the 1st change
skipFirstChange = false;
printf( "skip mainwindow::samplerateChanged( %g )\n", samplerate );
} else { // go on as usual
printf( "mainwindow::samplerateChanged( %g )\n", samplerate );
dsoSettings->scope.horizontal.samplerate = samplerate;
horizontalDock->setSamplerate( samplerate );
dsoWidget->updateSamplerate( samplerate );
}
} );
connect( horizontalDock, &HorizontalDock::calfreqChanged,
[dsoControl, this]() { dsoControl->setCalFreq( dsoSettings->scope.horizontal.calfreq ); } );
Expand Down
52 changes: 26 additions & 26 deletions openhantek/translations/openhantek_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -998,12 +998,12 @@
<translation>Ungültiger Befehl</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="261"/>
<location filename="../src/mainwindow.cpp" line="267"/>
<source>Stop the oscilloscope</source>
<translation>Das Oszilloskop anhalten</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="266"/>
<source>Stop</source>
<translation>Stop</translation>
</message>
Expand Down Expand Up @@ -1037,23 +1037,23 @@
<translation>Drucken ..</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="264"/>
<location filename="../src/mainwindow.cpp" line="270"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="265"/>
<location filename="../src/mainwindow.cpp" line="271"/>
<source>Start the oscilloscope</source>
<translation>Startet das Oszilloskop</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="292"/>
<source>Open file</source>
<translation>Datei öffnen</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="309"/>
<location filename="../src/mainwindow.cpp" line="292"/>
<location filename="../src/mainwindow.cpp" line="315"/>
<source>Settings (*.conf)</source>
<translation>Einstellungen (*.conf)</translation>
</message>
Expand All @@ -1062,57 +1062,57 @@
<translation type="vanished">Einstellungen (*.ini)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="309"/>
<location filename="../src/mainwindow.cpp" line="315"/>
<source>Save settings</source>
<translation>Einstellungen speichern</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="335"/>
<location filename="../src/mainwindow.cpp" line="341"/>
<source>Disable fading of previous graphs</source>
<translation>Nachleuchten von vorigen Graphen deaktivieren</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="337"/>
<location filename="../src/mainwindow.cpp" line="343"/>
<source>Enable fading of previous graphs</source>
<translation>Nachleuchten von vorigen Graphen aktivieren</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="345"/>
<location filename="../src/mainwindow.cpp" line="351"/>
<source>Hide histogram</source>
<translation>Histogramm ausblenden</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="347"/>
<location filename="../src/mainwindow.cpp" line="353"/>
<source>Show histogram</source>
<translation>Histogramm einblenden</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="356"/>
<location filename="../src/mainwindow.cpp" line="362"/>
<source>Hide magnified scope</source>
<translation>Vergrößerte Anzeige ausblenden</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="358"/>
<location filename="../src/mainwindow.cpp" line="364"/>
<source>Show magnified scope</source>
<translation>Vergrößerte Anzeige anzeigen</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="368"/>
<location filename="../src/mainwindow.cpp" line="374"/>
<source>Hide measurements</source>
<translation>Messwerte ausblenden</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="370"/>
<location filename="../src/mainwindow.cpp" line="376"/>
<source>Show measurements</source>
<translation>Messwerte anzeigen</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="398"/>
<location filename="../src/mainwindow.cpp" line="404"/>
<source>About OpenHantek6022 (%1)</source>
<translation>Über OpenHantek6022 (%1)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="399"/>
<location filename="../src/mainwindow.cpp" line="405"/>
<source>&lt;p&gt;Open source software for Hantek6022 USB oscilloscopes&lt;/p&gt;&lt;p&gt;Maintainer: Martin Homuth-Rosemann&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open source firmware copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</source>
<translation></translation>
</message>
Expand All @@ -1121,42 +1121,42 @@
<translation type="vanished">&lt;p&gt;Open-Source-Software für Hantek6022 USB Oszilloskope&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open-Source-Firmware - Copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="406"/>
<location filename="../src/mainwindow.cpp" line="412"/>
<source>&lt;p&gt;Running since %1 seconds.&lt;/p&gt;</source>
<translation>&lt;p&gt;Laufzeit %1 Sekunden.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="424"/>
<location filename="../src/mainwindow.cpp" line="430"/>
<source>%1: %2</source>
<translation>%1: %2</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="437"/>
<location filename="../src/mainwindow.cpp" line="443"/>
<source>yyyy-MM-dd hh:mm:ss</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="438"/>
<location filename="../src/mainwindow.cpp" line="444"/>
<source>yyyyMMdd_hhmmss</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="466"/>
<location filename="../src/mainwindow.cpp" line="472"/>
<source>Image (*.png *.jpg)</source>
<translation>Bild (*.png *.jpg)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="466"/>
<location filename="../src/mainwindow.cpp" line="472"/>
<source>Portable Document Format (*.pdf)</source>
<translation>Portables Dokumentenformat (*.pdf)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="467"/>
<location filename="../src/mainwindow.cpp" line="473"/>
<source>Save screenshot</source>
<translation>Screenshot speichen</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="497"/>
<location filename="../src/mainwindow.cpp" line="503"/>
<source>Print oscillograph</source>
<translation>Oszillogramm drucken</translation>
</message>
Expand Down
52 changes: 26 additions & 26 deletions openhantek/translations/openhantek_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="309"/>
<location filename="../src/mainwindow.cpp" line="315"/>
<source>Save settings</source>
<translation>Guardar configuración</translation>
</message>
Expand Down Expand Up @@ -924,38 +924,38 @@
<translation>Orden no válida</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="266"/>
<source>Stop</source>
<translation>Parar</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="261"/>
<location filename="../src/mainwindow.cpp" line="267"/>
<source>Stop the oscilloscope</source>
<translation>Parar el osciloscopio</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="264"/>
<location filename="../src/mainwindow.cpp" line="270"/>
<source>Start</source>
<translation>Iniciar</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="265"/>
<location filename="../src/mainwindow.cpp" line="271"/>
<source>Start the oscilloscope</source>
<translation>Iniciar el osciloscopio</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="292"/>
<source>Open file</source>
<translation>Abrir archivo</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="309"/>
<location filename="../src/mainwindow.cpp" line="292"/>
<location filename="../src/mainwindow.cpp" line="315"/>
<source>Settings (*.conf)</source>
<translation>Configuración (*.conf)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="399"/>
<location filename="../src/mainwindow.cpp" line="405"/>
<source>&lt;p&gt;Open source software for Hantek6022 USB oscilloscopes&lt;/p&gt;&lt;p&gt;Maintainer: Martin Homuth-Rosemann&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open source firmware copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</source>
<translation></translation>
</message>
Expand All @@ -964,47 +964,47 @@
<translation type="vanished">Configuración (*.ini)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="335"/>
<location filename="../src/mainwindow.cpp" line="341"/>
<source>Disable fading of previous graphs</source>
<translation>Desactivar desvanecimiento de los gráficos anteriores</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="337"/>
<location filename="../src/mainwindow.cpp" line="343"/>
<source>Enable fading of previous graphs</source>
<translation>Activar desvanecimiento de los gráficos anteriores</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="345"/>
<location filename="../src/mainwindow.cpp" line="351"/>
<source>Hide histogram</source>
<translation>Ocultar histograma</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="347"/>
<location filename="../src/mainwindow.cpp" line="353"/>
<source>Show histogram</source>
<translation>Mostrar histograma</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="356"/>
<location filename="../src/mainwindow.cpp" line="362"/>
<source>Hide magnified scope</source>
<translation>Ocultar osciloscopio aumentado</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="358"/>
<location filename="../src/mainwindow.cpp" line="364"/>
<source>Show magnified scope</source>
<translation>Mostrar osciloscopio aumentado</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="368"/>
<location filename="../src/mainwindow.cpp" line="374"/>
<source>Hide measurements</source>
<translation>Ocultar medidas</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="370"/>
<location filename="../src/mainwindow.cpp" line="376"/>
<source>Show measurements</source>
<translation>Mostrar medidas</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="398"/>
<location filename="../src/mainwindow.cpp" line="404"/>
<source>About OpenHantek6022 (%1)</source>
<translation>Acerca de OpenHantek6022 (%1)</translation>
</message>
Expand All @@ -1013,42 +1013,42 @@
<translation type="vanished">&lt;p&gt;Software de código abierto para osciloscopios USB Hantek6022&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Firmware de código abierto copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="406"/>
<location filename="../src/mainwindow.cpp" line="412"/>
<source>&lt;p&gt;Running since %1 seconds.&lt;/p&gt;</source>
<translation>&lt;p&gt;El programa ha estado funcionando durante %1 segundos.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="424"/>
<location filename="../src/mainwindow.cpp" line="430"/>
<source>%1: %2</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="437"/>
<location filename="../src/mainwindow.cpp" line="443"/>
<source>yyyy-MM-dd hh:mm:ss</source>
<translation>yyyy-MM-dd hh:mm:ss</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="438"/>
<location filename="../src/mainwindow.cpp" line="444"/>
<source>yyyyMMdd_hhmmss</source>
<translation>yyyy-MM-dd hh:mm:ss</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="466"/>
<location filename="../src/mainwindow.cpp" line="472"/>
<source>Image (*.png *.jpg)</source>
<translation>Imagen (*.png *.jpg)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="466"/>
<location filename="../src/mainwindow.cpp" line="472"/>
<source>Portable Document Format (*.pdf)</source>
<translation>Formato de documento portable (*.pdf)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="467"/>
<location filename="../src/mainwindow.cpp" line="473"/>
<source>Save screenshot</source>
<translation>Guardar captura de pantalla</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="497"/>
<location filename="../src/mainwindow.cpp" line="503"/>
<source>Print oscillograph</source>
<translation>Imprimir oscilógrafo</translation>
</message>
Expand Down
Loading

0 comments on commit 117c927

Please sign in to comment.