Click here to Skip to main content
15,894,405 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight best Printing solution ??? Pin
Abhinav S3-May-11 23:10
Abhinav S3-May-11 23:10 
QuestionUpdate Domain context Pin
picasso230-Apr-11 14:51
picasso230-Apr-11 14:51 
AnswerRe: Update Domain context Pin
RichardGrimmer4-May-11 4:35
RichardGrimmer4-May-11 4:35 
Questionwhat's the wpf (tools) controls used to affiche some Match? Pin
tifasahraoui30-Apr-11 7:33
tifasahraoui30-Apr-11 7:33 
AnswerRe: what's the wpf (tools) controls used to affiche some Match? Pin
Pete O'Hanlon30-Apr-11 10:20
mvePete O'Hanlon30-Apr-11 10:20 
GeneralRe: what's the wpf (tools) controls used to affiche some Match? Pin
SledgeHammer011-May-11 16:34
SledgeHammer011-May-11 16:34 
AnswerRe: what's the wpf (tools) controls used to affiche some Match? Pin
Abhinav S1-May-11 16:31
Abhinav S1-May-11 16:31 
QuestionHigh cpu usage on RequestDeviceAccess user confirmation dialog Pin
Decad29-Apr-11 5:09
Decad29-Apr-11 5:09 
Am using this code and the problem is that, CPU usage is 100% when the dialog pops up for the user to confirm access to the web came and/or microphone. This happens with all browsers, you just leave the silverlight popup to wait and you can see the plugin to crash after some time.

But this is not a problem that occures only in browser enviropment, even if i run the application out of the box, with the slllauncher.exe, the same problem occures. 100% cpu usage and the dialog waits there. In browsers the dialog crashes cause of the plugin manager sees 100% cpu and thinks the silverlight plugin has crashed. Am using SL 4 with Visual studio 10, same thing happens in IE,FF4,FF3.5,Chrome.

This causes problems in PC's with windowsXp and with slow single core cpus, cause gets 100% and even the dialog freezes.

private void StartStopRecBtn_Click(object sender, RoutedEventArgs e)<br />
        {<br />
            if (!recordingStatus)<br />
            {<br />
                ReadOnlyCollection<AudioCaptureDevice> devices = CaptureDeviceConfiguration.GetAvailableAudioCaptureDevices();<br />
                if (devices.Count == 0)<br />
                    return;<br />
 <br />
                if (!CaptureDeviceConfiguration.AllowedDeviceAccess)<br />
                {<br />
                    CaptureDeviceConfiguration.RequestDeviceAccess();<br />
 <br />
                }<br />
                    if (CaptureDeviceConfiguration.AllowedDeviceAccess)<br />
                    {<br />
                        recImg.Source = new BitmapImage(new Uri("Images/StopRecording.jpg", UriKind.RelativeOrAbsolute));<br />
                        if (audioSink == null)<br />
                        {<br />
                            capture = new CaptureSource();<br />
                            capture.AudioCaptureDevice = CaptureDeviceConfiguration.GetDefaultAudioCaptureDevice();<br />
                            capture.VideoCaptureDevice = null;<br />
                            audioSink = new MemoryStreamAudioSink();<br />
                            audioSink.CaptureSource = capture;<br />
                        }<br />
                        else<br />
                        {<br />
 <br />
                            audioSink.CaptureSource.Stop();<br />
                            audioSink = null;<br />
                        }<br />
 <br />
                            try<br />
                            {<br />
 <br />
                                if (audioSink != null)<br />
                                    audioSink.CaptureSource.Start();<br />
                                else<br />
                                    StatusText.Text = "Not ready to Record..";<br />
                            }<br />
                            catch (InvalidOperationException ex)<br />
                            {<br />
                                MessageBox.Show("There was a problem starting the webcam " +<br />
                                                "If using a Mac, verify default device settings." +<br />
                                                "Right click app to access the Configuration settings." + ex.Message + " " + ex.InnerException);<br />
                            }<br />
 <br />
                        Thread.Sleep(TimeSpan.FromSeconds(0.5));<br />
                        recordingStatus = true;<br />
                    }<br />
                }<br />
            else<br />
            {<br />
                recordingStatus = false;<br />
                StatusText.Text = "Ready to Record..";<br />
                recImg.Source = new BitmapImage(new Uri("Images/StartRecording.jpg", UriKind.RelativeOrAbsolute));<br />
                audioSink.CaptureSource.Stop();<br />
                <br />
            }<br />
        }



http://img864.imageshack.us/img864/5869/slbug.png[^]
QuestionLog4Net.dll what is ?? Pin
jadughar28-Apr-11 3:07
jadughar28-Apr-11 3:07 
AnswerRe: Log4Net.dll what is ?? Pin
Ian Shlasko28-Apr-11 3:11
Ian Shlasko28-Apr-11 3:11 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar28-Apr-11 3:26
jadughar28-Apr-11 3:26 
GeneralRe: Log4Net.dll what is ?? Pin
Ian Shlasko28-Apr-11 3:36
Ian Shlasko28-Apr-11 3:36 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar28-Apr-11 3:57
jadughar28-Apr-11 3:57 
GeneralRe: Log4Net.dll what is ?? Pin
Ian Shlasko28-Apr-11 6:38
Ian Shlasko28-Apr-11 6:38 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar28-Apr-11 21:03
jadughar28-Apr-11 21:03 
GeneralRe: Log4Net.dll what is ?? Pin
Ian Shlasko29-Apr-11 1:31
Ian Shlasko29-Apr-11 1:31 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar29-Apr-11 2:05
jadughar29-Apr-11 2:05 
GeneralRe: Log4Net.dll what is ?? Pin
Ian Shlasko29-Apr-11 2:12
Ian Shlasko29-Apr-11 2:12 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar2-May-11 3:58
jadughar2-May-11 3:58 
GeneralRe: Log4Net.dll what is ?? Pin
Keith Barrow29-Apr-11 7:08
professionalKeith Barrow29-Apr-11 7:08 
AnswerRe: Log4Net.dll what is ?? Pin
Abhinav S28-Apr-11 7:21
Abhinav S28-Apr-11 7:21 
GeneralRe: Log4Net.dll what is ?? Pin
jadughar28-Apr-11 21:02
jadughar28-Apr-11 21:02 
QuestionWPF decimal validation Pin
arkiboys28-Apr-11 2:49
arkiboys28-Apr-11 2:49 
AnswerRe: WPF decimal validation Pin
Ian Shlasko28-Apr-11 3:10
Ian Shlasko28-Apr-11 3:10 
AnswerRe: WPF decimal validation Pin
Pete O'Hanlon28-Apr-11 3:47
mvePete O'Hanlon28-Apr-11 3:47 

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.