I've recently started working on windows forms, but I encountered an annoying bug and I don't know how to fix it. My windows media player gets bigger or starts having weird sizing while my application is running.
I have attached some images, can somebody please help?
Related
I have a Unity iOS app with Mute Other Audio Sources checked in Project Settings > Player. When I'm playing audio from another app on device and foreground my app, everything works as expected: the audio from the other app fades out and the audio from my app fades in.
However, when I have my app open and audio is playing, open up the iOS Control Center, start playing audio from another app (say, Apple Music, Apple Podcasts, or Spotify), and then close the control center, unexpected behavior occurs. The audio from the other app fades out as anticipated, but the audio from my app does not fade back in. All audio in my app remains muted/disabled/otherwise silenced as I continue playing, and only returns when I background and foreground my app again.
I have also received a user report that the app crashed when repeating these same steps (open Control Center, play music, close Control Center). I haven't been able to reproduce that bug, but I am concerned that this may be an issue for other users.
It's almost as if different audio behavior occurs in OnApplicationPause vs. OnApplicationFocus, but I haven't been able to get it to work even if I restart my AudioSource in either of these contexts.
I have reproduced this error in Unity 2019.4.17 and 2020.3.18. Not sure if it's a bug in Unity or if there's something I could be doing in my code to mitigate it. Let me know if I can provide additional information that would be helpful in addressing the issue. Thanks in advance for any advice you're able to give!
Update: Using Unity 2020.3.18 and iPhone 13, this only happens when the iOS device is on silent mode. The app normally plays audio even if the device is silenced, but fails to play audio if the device is silenced and I return to the app from the Control Center as described above. When I experience this issue, the audio plays after switching to ring mode. When the device is on ring mode from the start, everything works as expected.
I am trying to develop a Windows Form Application (not WPF) where I would require to preview numbers of cameras available on a tablet or PC, take pictures and then save the pictures in the device.
I am very new to this kind of application development and recently came accross Media Capture but I can not find a good lead to start with.
Can anyone let me know how to approach or how can I build the application with the aforementioned features or provide a good lead??
P.S. Found a good example on https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622/ but it uses XML not the Win Form Application type.....
What kind of cameras do you have? If the cameras support onvif, then there is a good onvif camera software you could try. You can handle many cameras with it, you can take snapshots so I guess it could work for you.
I'm having a rather odd problem with a C# and WPF HMI I am working on currently. The HMI is a fairly complex program which allows the use to add and remove modules from a work area, dragging and resizing them to make the page they work on customizable. It works well, and after optimizations actually runs smoothly and works wonderfully with touch and animations. One gesture in particular is rather helpful, as you can (using multi-touch) place two fingers down on the screen and swipe left or right to change pages.
However, I have lately been getting complaints from our apps department that the touch will randomly stop working for any sort of complex movement, read as any sort of multi-touch. I spent a few hours tracking down what the problem was and it turned out, oddly enough to be linked to windows Calculator. Whenever calculator is opened, and subsequently closed, multi-touch ceases to function, and any breakpoints placed in the code show only a single touch being used. I took to the internet, and found a few articles corroborating the issue, but nothing even hinting at a fix other than don't allow calculator to work, which is sadly not an option as this HMI is meant for engineers who are manufacturing precision parts and they are a bit attached to calculator.
I stripped the problem down to its basics in which I made a simple c# and WPF touch app which kept track of how many touches it got, just to make sure its not just shoddy programming in the HMI. After getting the same results, no matter what I tried, I came here hoping someone else has run into and perhaps fixed this issue.
Here are some specs:
This HMI runs on Windows 7 and it is fully updated.
It is a C# program using Unity containers, Prism, and WPF
The touch is being handled through simple OnPreviewTouchDown and
TouchDown events
It doesn't matter if I run calculator through a Process in C# or if we run it from the actual OS, nor how we close the program, all permutations result in the same effect on every machine in the building with a touch screen.
It is an ELO touch screen with the newest drivers, though I have also tried it with a Vista Multitouch simulator and get the same results
Any sort of assistance or direction would be much appreciated. Thanks!
You are right. Microsoft released a fix recently for this issue for Windows 8 and other OS's, perhaps it applies to Windows 7 too.
Multi-touch gesture does not work after you exit the Calculator in Windows
Symptoms
This issue occurs in applications that are started before you
close the Windows Calculator (calc.exe) in Windows 8.1, Windows RT
8.1, or Windows Server 2012 R2.
Cause
This issue occurs because the Calculator exits and changes a
property. This causes the affected applications to stop responding to
multi-touch.
Resolution
We have released an update to resolve this issue.
See https://support.microsoft.com/en-us/kb/3024755
Workaround
To work around this issue, close and reopen the affected applications after the Calculator exits.
I am currently developing a stopwatch and timer app in C#/XAML for Windows Phone 8. While using my app on my phone, I found that it randomly closed out/crashed and that too at different points of use (i.e. I wasn't doing the same thing each time it closed out). While debugging, I found that my app closed out with the following error code in my output window:
"The program '[1100] TaskHost.exe' has exited with code -2147220717 (0x80040313)."
I am very confused as to why this is happening. I tried creating an entirely new solution and moving my code over and I've still been getting the same issue. I have tried using the app on multiple different devices, and the same thing happens (even in the Emulator). Sometimes the app crashes after 5 minutes of use, sometimes it crashes after 30 minutes of use, it's very unpredictable which makes it very hard to find the root of the problem. My app uses the XNA Framework to play an audio sound and the Coding4Fun Toolkit for a TimeSpanPicker control, and besides that there isn't much else that's particularly notable about my app. I have tried removing the playing of the audio file and removing references to the XNA Framework, and the problem persists.
Any ideas on what the problem could be?
Thanks in advance!
That what David said +
are you sure that the phone is not running out of memory?
Edit try a windows phone analysis(Alt +F1 | Debug->Start windows phone application analysis)
If you're using XNA framework in WP project you can get a crash when updating the UI thread.
You might need to run it through a Dispatcher?
Dispatcher.BeginInvoke(() => {
// Call your update UI methods here..
});
You might also find this post helpful:
http://social.msdn.microsoft.com/Forums/wpapps/en-US/c2751845-cb70-4301-aa1a-796fa1bb8e8c/the-program-241435222-taskhostexe-managed-has-exited-with-code-0-0x0
This problem is in w8 windows metro style app.I am using c# as my programming language.
I have one media element added in a page and using that media element i play a media file hosted in my localhost. After playing the media when i change the orientation of the simulator,I get media failed event and media stops playing.
How to solve this problem?
is this a bug from windows side?
This blog post should answer your question: Visual Studio 2012's simulator causes video to stop playback when orientation is changed
This is actually a known issue in the simulator. Unfortunately I don't
when or if this is going to be fixed. The team is aware of the problem
though so I expect that we will see a fix sometime in the future I
just can't say when. The good news is that this problem doesn't affect
a slate / tablet / surface device.