Click here to Skip to main content
15,891,629 members
Home / Discussions / C#
   

C#

 
QuestionCan you use sqlite in vs2022? CLOSED Pin
mo149228-Jul-22 13:18
mo149228-Jul-22 13:18 
AnswerRe: Can you use sqlite in vs2022? CLOSED Pin
OriginalGriff28-Jul-22 19:00
mveOriginalGriff28-Jul-22 19:00 
QuestionC# Set voice in Text to Speech Pin
Rockallica27-Jul-22 17:02
Rockallica27-Jul-22 17:02 
AnswerRe: C# Set voice in Text to Speech Pin
OriginalGriff27-Jul-22 20:16
mveOriginalGriff27-Jul-22 20:16 
GeneralRe: C# Set voice in Text to Speech Pin
Rockallica28-Jul-22 8:39
Rockallica28-Jul-22 8:39 
GeneralRe: C# Set voice in Text to Speech Pin
OriginalGriff28-Jul-22 8:52
mveOriginalGriff28-Jul-22 8:52 
QuestionIn C# can't introduce a formula in Excel Pin
Ismael_199927-Jul-22 12:37
Ismael_199927-Jul-22 12:37 
AnswerRe: In C# can't introduce a formula in Excel Pin
trønderen27-Jul-22 12:55
trønderen27-Jul-22 12:55 
AnswerRe: In C# can't introduce a formula in Excel Pin
Gerry Schmitz27-Jul-22 14:47
mveGerry Schmitz27-Jul-22 14:47 
GeneralRe: In C# can't introduce a formula in Excel Pin
Ismael_199928-Jul-22 7:53
Ismael_199928-Jul-22 7:53 
QuestionI having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f274f6a Pin
swethamaddi26-Jul-22 23:20
swethamaddi26-Jul-22 23:20 
AnswerRe: I having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f27 Pin
Richard MacCutchan26-Jul-22 23:51
mveRichard MacCutchan26-Jul-22 23:51 
AnswerRe: I having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f27 Pin
Dave Kreskowiak27-Jul-22 6:57
mveDave Kreskowiak27-Jul-22 6:57 
QuestionWhat Is NullReferenceException? Object reference not set to an instance of an object i have error how to change code unable to excute below code could help me Pin
swethamaddi26-Jul-22 23:15
swethamaddi26-Jul-22 23:15 
AnswerRe: What Is NullReferenceException? Object reference not set to an instance of an object i have error how to change code unable to excute below code could help me Pin
Richard MacCutchan26-Jul-22 23:51
mveRichard MacCutchan26-Jul-22 23:51 
AnswerRe: What Is NullReferenceException? Object reference not set to an instance of an object i have error how to change code unable to excute below code could help me Pin
OriginalGriff27-Jul-22 0:04
mveOriginalGriff27-Jul-22 0:04 
AnswerRe: What Is NullReferenceException? Object reference not set to an instance of an object i have error how to change code unable to excute below code could help me Pin
Calin Negru28-Jul-22 0:11
Calin Negru28-Jul-22 0:11 
QuestionHow to convert pdf file into FileStream? Pin
Code4Ever26-Jul-22 6:35
Code4Ever26-Jul-22 6:35 
GeneralRe: How to convert pdf file into FileStream? Pin
Richard MacCutchan26-Jul-22 6:49
mveRichard MacCutchan26-Jul-22 6:49 
GeneralRe: How to convert pdf file into FileStream? Pin
Code4Ever26-Jul-22 6:59
Code4Ever26-Jul-22 6:59 
I use Syncfusion PDF for loading pdf files in my WPF application. I use MVVM architecture in my project. I have the following property:


private int _selectedId;

        public int SelectedId
        {
            get { return _selectedId; }
            set
            {
                SetProperty(ref _selectedId, value);
                if (value != null)
                {
                    PdfSource = null;
                    string fileName = GetFileName(SelectedId);
                    if (fileName != null)
                    {
                        PdfReport(string.Format("{0}/{1}", "src/pdfs/", fileName));
                    }
                }
            }
        }


private Stream _pdfSource;

        public Stream PdfSource
        {
            get { return _pdfSource; }
            set { SetProperty(ref _pdfSource, value); }
        }


When I read file stream into this property, it can load the pdf and show it.
I don't know why there is a memory leak.

Is there any solution to this problem?
GeneralRe: How to convert pdf file into FileStream? Pin
Richard Deeming26-Jul-22 22:03
mveRichard Deeming26-Jul-22 22:03 
GeneralRe: How to convert pdf file into FileStream? Pin
Code4Ever28-Jul-22 19:52
Code4Ever28-Jul-22 19:52 
AnswerRe: How to convert pdf file into FileStream? Pin
Dave Kreskowiak26-Jul-22 7:24
mveDave Kreskowiak26-Jul-22 7:24 
GeneralRe: How to convert pdf file into FileStream? Pin
Code4Ever26-Jul-22 7:39
Code4Ever26-Jul-22 7:39 
GeneralRe: How to convert pdf file into FileStream? Pin
Dave Kreskowiak26-Jul-22 7:45
mveDave Kreskowiak26-Jul-22 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.