OpenTK.Graphics.GraphicsContextException - c#

Is all I'm getting once the game crashes, It started happening few weeks ago, but I didn't mind it because it happened once in a blue moon. But now it's happening every few seconds, and its really frustrating. I don't know what is causing it and I cant find any information regarding it.
At first I thought simple re-install of monogame will fix it, but yesterday I formatted my pc, installed windows 10, new visual studio and fresh new Monogame, and its still happening! Anyone knows what this is and what can I do?

Related

Start Debugging on Visual Studio 19 and Monogame/Xna takes way to long

i´m currently working with Visual Studio´19 and Monogame 3.7.1, it works very well, good performance etc. But then from on point to another when i start debugging to test the code, it takes up to 30 secs or more to startup the debugbuild. The Memory in this Timeframe is using about 12-13mb and i have no clue what there is going on. Other Programms/Frameworks are starting debugging in no Time, it´s only with Monogame. Any Ideas how to fix it? Reinstall VS and Monogame will solve the Problem, but it´s not the best solution i guess. :)
Thx a lot.

Xamarin Continuously Breaks with Multiple Different Errors

Okay so I wanted to get into mobile development and decided to start with Android Studio, but I wanted to more easily reach both Android and IOS so switched over to Xamarin.
Honestly, Xamarin looks really cool and I have been trying so hard to get into it, but every time I open a new Xamarin project it seems to break right away before I really get to do anything.
Sometimes it asks me to update something so I do so before I begin development and it breaks, sometimes I run an initial build right when I make the project with no changes made and it breaks. Sometimes I do something as simple as adding a button or entry in the XAML code and it just breaks, and when I erase all my changes it is still broken.
I just want to know, is this just me or is this just how Xamarin is? I know there is a huge chance it is just me having no idea what I'm doing, but the project seems to break even when I follow updated tutorials and documentation. I have gotten errors even involving the file path it made.
Summary
The short time I used Android Studio I was able to get decently far into development and it still didn't break, but with Xamarin I am having a hard time just getting past the creation of the project without some error. Why is this? Does this happen to experienced Xamarin Developers or just for beginners?
There are certainly issues in Xamarin Mobile Development. Those issues you are referering, happen to everyone from time to time (not that common these days though).
Ignore compiling errors (assuming its the programmer's fault), those issues are usually related with Visual Studio. So, the process is always the same:
Clean Solution
Delete bin/objs folders (if the clean has errors)
Restart Visual Studio
Rebuild

Xamarin.Android Deployment Error using Android Virtual Device

I am trying to setup a development environment in Visual Studio Community for development with Xamarin.Forms. In order to make sure the Android Emulator was working, I followed the QuickStart Xamarin.Android tutorial found here.
When I Start Debugging with any number of Virtual Devices the output is always the same; the application does not show up, but the AVD successfully starts up and I can also successfully interact with OS; when trying the close the AVD (with the x icon on the top right) a pop-up dialog appears saying "There were Deployment Errors. Do you wish to continue? Yes\No". The frustrating part is that no matter my response there is absolutely no useful error informations, or warnings or messages for that matter. You may think this is a duplicate question but it is not. I have had problems with a similar problem in which the fix was to downgrade my Android SDK BuildTools to a version lower than 24.0. The was to circumvent an upstream bug that provided the error message: java.lang.UnsupportedClassVersionError blah blah blah. The problem here is I get NO error and my highest version Build Tools are version 23.0.3 which should be fine. Here is a pic on start-up:
AVD
Unfortunately as I am only a begginer user I am not permitted to post more links and images. Apologies for the images as links I am still only permitted to post images in this way.
Thank you for taking the time to help me out.
Hi anyone with a similar problem, this is what worked for me in this particular case. I started the AVD before starting Debugging, the application then showed up in the emulators device menu and everthing is working. I have been stuck with this problem for Five whole day trying dozens of things. Pheeeeuuuuuuw!

Visual Studio 2015 Dark Theme suddenly makes code disappear

Was wondering if anyone is familiar with this issue...
I'm using VS 2015 Community in a VMWare virtual machine (Win10) with some C# solution and today all of a sudden most the code disappears, except for a few variable names. Strangely enough this only happens on the Dark theme, not on the white or blue theme.
Switching between themes, closing/reopening solution, etc. didn't help. This never happened before and I've been using VS2015 in the VM for weeks without problems. Does anyone know of a fix for this?
Ok, I found the problem! The text scaling was somehow accidentally switched to 110% and the font I'm using obviously is not OK with this. Switching back to 100% fixed it. What's odd though is that it works even with scaled text on white/blue theme with same font.

Visual Studio 2010 and XNA game studio crashes while debugging code

Now, this is a problem I've been having for a while now. I've tried googling it, asking people I know, and have searched this site for ages, but have not been able to find a solution.
I am running XNA Game Studio 4.0 and Microsoft Visual Studio 2010. While trying some of the basic tutorials with XNA (Available on the Microsoft website), I encountered several errors:
First off, I had set up a basic Kernel32.dll console, to calculate and display FPS. For some odd reason, after a seemingly random amount of time had elapsed it started updating the FPS several times a second. As the program ran fine, I presumed it was an error with my code, and so removed it.
But, when I did this, the program just seemed to crash. The only code in the program so far is simple draw calls, basic movement, and the foundations of a rudimentary inventory system. There is no complex code happening. I have tried several things, including placing break points on every line of code and spending hours attempting to sort this out.
So, my question is: Is this an entirely random occurrence, or is it most likely a problem with my code? And more importantly, is there a way to prevent such a bug from happening?
Any help will be greatly appreciated.
Code:
http://pastebin.com/3sRiVnwe

Categories

Resources