This project is read-only.
1
Vote

Wonder about the parameter newValue in releasemode

description

Hello Everyone,

I'm getting error ' The name 'newValue' does not exist in the current context ' in class file EPubViewer.cs while running in release mode.
    #if DEBUG
            Book.Files = ZipHelper.Extract(Source);
        #else
            try
            {
                Book.Files = ZipHelper.Extract(newValue);
            }
            catch (Exception ex)
            {
                OnDocumentFailed(ex);
                return;
            }
       #endif
What is newValue here. If anyone tried this please let me know.


Please look at the Image bellow for Screenshot

Image

file attachments

comments

kubaf wrote Feb 20, 2014 at 6:58 PM

Seems like broke code. Isntead of newValue, it should be Source.

if DEBUG

        Book.Files = ZipHelper.Extract(Source);
    #else
        try
        {
            Book.Files = ZipHelper.Extract(Source);
        }
        catch (Exception ex)
        {
            OnDocumentFailed(ex);
            return;
        }
   #endif