I have some problems switching to the new async methods for the NativeMessageBox. I tried this static method call but I don’t see any title and no text:
Without seeing the full context, it is hard to point exactly to the issue.
But from your lambda capture it seems that you are capturing invalidSampleMappings by reference. Remember that NativeMessageBox::showAsync returns immediately. So you have to guarantee that invalidSampleMappings will still be a valid object after NativeMessageBox::showAsync returns (and most likely after its caller returns).
Thanks for pointing that out. This is a problem when the callback will be called. I removed the callback code but still have the same problem. The options do not work. I still have an empty dialog.
The problem was that writing for example options.withMessage ("A message") doesn’t change options. You should use MessageBoxOptions returned by options.withMessage ("A message")