In my itemDropped method I have the following code:
AlertWindow::showMessageBox(AlertWindow::InfoIcon, T("local item(s) dropped"), sourceDescription);
if(sourceDescription.equalsIgnoreCase(String(T("Jam Works Track"))))
{
...
The variable sourceDescription is the first argument to itemDropped. The first line outputs the contents of sourceComponent with no errors. The second line throws a bad pointer exception with sourceDescription.text as the culprit.
sourceDescription.text points to the text string correctly before the AlertWindow::showMessageBox call and seems to be overwritten or perhaps deleted during the info.run() call inside AlertWindow::showMessageBox.
Everything works if I leave out the AlertWindow call. Any ideas?
Thanks in advance – Jeff.
