# \[F\] Crash while editing syntax for formatstring

**URL:** https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [May 17, 2009, 8:20am UTC](https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388 "2009-05-17T08:20:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mihle](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@mihle](https://community.mp3tag.de/u/mihle)
#### Post date: [May 17, 2009, 8:20am UTC](https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388/1 "2009-05-17T08:20:28Z")

</div>

Hello,

I use winXP and mp3tag 2.43. I want to edit the format string (Alt+1) and this causes a "Schwere Ausnahmefehler":

**How I found the error:**  
I always name my mp3 files like that:  
(%discnumber%-$num(%track%,2)) %artist% - %album%  
Now I have audio books with more than 9 CDs, so I wanted to change discnumber also in two digits. By doing this I cause an error, I can easily reproduce. Single steps see below:

**Scenario:**

1. mark all files to be renamed
2. Menue: Konverter - "Tag - Dateiname" (also Alt+1) or from the toolbar.
3. edit the entry (%discnumber%-$num(%track%,2)) %artist% - %album%  
(it already exsists, as I have used it before):  
I start typing at Pos1, behind the "C" and edit:  
($num(_%discnumber%-$num(%track%,2)) %artist% - %album%_  
then I move the cursor behind _%discnumber%_  
There I would like to add _,2)_ to get a two digit cd-no.  
When I type **,** mp3tag stops ("keine Rückmeldung" in TaskManager).  
It needs some seconds, then the encl. error message occurs.

Remark: It has nothing to do with the length of the string, as it can be caused also by editing a shorter one.  
Although mp3tag asks to restart, there's no need to do this. After the error is confirmed, the string can be edited and also works.  
($num(%discnumber%,2)-$num(%track%,2)) %artist% - %album%

Unfortunately I haven't been able to upload error.log or message, here are the texts:

# **error.log**

## Mp3tag v2.43 - 17.05.2009 - 12:04:41

## OS-Version: Windows XP Service Pack 3 (Build 2600)

## Build: Mar 28 2009 09:14:02

# AppPath: 58.591.928.320 Bytes frei (C:\Programme\Mp3tag) DataPath: 58.591.928.320 Bytes frei (C:\Dokumente und Einstellungen\user\Anwendungsdaten\Mp3tag\data) TempPath: 58.591.928.320 Bytes frei (C:\DOKUME~1\user\LOKALE~1\Temp\Mp3tag v2.43)

* * *

## THROW

## File: .\mtparser.cpp Line: 88

## CATCH

# File: .\mtttfdlg.cpp Line: 203

**error message**  
Schwerer Ausnahmefehler  
Datei .\mtttfdlg.cpp  
Zeile 203  
Die Anwendung befindet sich in undefinierbarem Zustand.  
Schließen Sie die Anwendung und übermitteln Sie die Datei  
.... Mp3tagError.log  
sowie eine möglichst genaue Fehlerentstehung an den Support  
eMail ....

I hope, I was right by choosing the forum, instead the E-Mail?

Best Regards, Monika

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 5, 2009, 7:17pm UTC](https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388/2 "2009-06-05T19:17:35Z")

</div>

Thanks Monika for the detailed bug report! I was able to reproduce it and will fix it with the next release.

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 6, 2009, 1:49pm UTC](https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388/3 "2009-06-06T13:49:04Z")

</div>

This has been fixed with with [Mp3tag v2.43a](http://developer.mp3tag.de).

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:01pm UTC](https://community.mp3tag.de/t/f-crash-while-editing-syntax-for-formatstring/8388/4 "2018-12-28T14:01:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
