Forum Discussion
AI Complaint Department
Here's an update. My application runs so well and silently that I had to break something to fix the app and keep it from turning off the HDM, IE my tv disconnects, while using Dirct3D. Added the feature arguments for the heartbeat and my monitor is still on so I guess it worked. AI offered about 2 pages of code for something I corrected with creating a list capturing a data point then clearing a list after it was used. If you need to load and display a texture and you see 3 pages of code from Ai something is wrong. Took me exactly 3 lines of code. If anyone runs into the problem look for this
// Prevent Windows display sleep
[DllImport("kernel32.dll")]
static extern EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE esFlags);
[Flags]
enum EXECUTION_STATE : uint
{
ES_CONTINUOUS = 0x80000000,
ES_DISPLAY_REQUIRED = 0x00000002,
ES_SYSTEM_REQUIRED = 0x00000001
}
// Keep display active
SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_DISPLAY_REQUIRED);
To reproduce that problem. Right click on your project in Visual Studio 2026. Add new object Graphics, Scene .obj, open the object and close it a few times watch how many meshes you get in the file name. Export from blender view the files in text editor they are clean. Open that obj in visual studio 2026 and watch how it keeps adding mesh to all the internal file names.