1
Vote

Error when I using your source code and try convert

description

Hi,
I downloaded your source code and try to convert pptx to silverlight but there's some errors:
 
Error message: Cross-thread operation not valid: Control 'pptConvertorProgressBar' accessed from a thread other than the thread it was created on.
 
private void HandleProgressBar(object o)
    {
        for (; pptConvertorProgressBar.Value <= pptConvertorProgressBar.Maximum; Thread.Sleep(100))
        {
            if (!pptConvertorProgressBar.Visible)
                break;
            pptConvertorProgressBar.Value = (pptConvertorProgressBar.Value == pptConvertorProgressBar.Maximum ? pptConvertorProgressBar.Minimum : pptConvertorProgressBar.Value + 1);
        }
    }
 
and then I comment it out to keep running, but there's an error:
XamlReader.Load() does not support x:Class. XamlFile: file:///C:/Users/Asusu/Desktop/SLVersion_Test.pptx/Page.xaml Line1 Position:164
 
I like the way you built your project and can you please tell me how to solved this bug? or must do something to make it work. Thanh you.
 
Su, Le

comments