rualark / MGen

MGen: Windows PC C++ music generation and analysis laboratory, playing into MIDI port and exporting MIDI
http://arkhipenko.weebly.com
GNU Affero General Public License v3.0
45 stars 11 forks source link

CF1: When printing SWA results, fatal error occurs sometimes (wrong parameters passed) #682

Closed rualark closed 7 years ago

rualark commented 7 years ago

In this line: est.Format("Finished SWA%d #%d: rp %.0f from %.0f, dp %.0f, cnum %ld (in %d ms): %s", s_len, a, rpenalty_min, rpenalty_source, dpenalty_min, cnum, time_stop - time_start, stuck_st);

rualark commented 7 years ago

Cannot reproduce

rualark commented 7 years ago

Unhandled exception at 0x00007FF6A8373CEC in MGen.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

rualark commented 7 years ago

image

rualark commented 7 years ago

Fixed by moving string to parameter instead of adding it to main string. The source of the problem probably was this:

1 Culmination (early 50%), 1 Tonic note (>1 within 9),

Having % sign means that there are more parameters, while there are not