Original Post
Hello, Im using managed directX (C#) to make a simple top down airplane shooter, everything was working fine until I added something (im not sure what it was exactly) and now Im getting an exception whenever I try to run the program on the line device = new Device(Manager.Adapters.Default.Adapter, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, par); It gives me an applicated failed exception and has the name D3DERR_OUTOFVIDEOMEMORY. I googled for a few hours and found some results but none that made any sense. in most cases it was caused by a memory leak but Im in C# so shouldnt the garabage collector take care of all of that? I tried setting the debug output for DX to full but I get nothing. Someone suggested that Im loading to many textures or something but theres only 1 texture in the entire game thats 179 kb. Does anyone know what might be causing this error? Thanks. [edit] I also forgot to mention as expected when I restart the problem is fixed for a while until I run the app a few times. Once I get the error no d3d applications will run at all. I do have an integrated graphics card but I also have a gig of RAM.