EDN Admin
Well-known member
Thank you for your help.
We are developing usingDirectX in C # of VisualStudio2005.
In the following environments, OutOfMemorywill occur when generatingthe Device When you runthe following code.
【Environment】
OS:Windows7
Memory:2GB
Graphic:Intel(R) Graphic Media Accelerator 600(752MB)
// Param
PresentParameters Parameters = new PresentParameters();
Parameters.Windowed = true;
Parameters.SwapEffect = SwapEffect.Discard;
Parameters.EnableAutoDepthStencil = true;
Parameters.AutoDepthStencilFormat = DepthFormat.D16;
Parameters.BackBufferFormat = Format.X8R8G8B8;
Parameters.PresentFlag = PresentFlag.LockableBackBuffer;
Parameters.BackBufferWidth = 2360;
Parameters.BackBufferHeight = 2360;
// Target
PictureBox RenderTarget = new PictureBox();
RenderTarget.Size = new Size(2360,2360);
// Create Device(This Code is Error)
Device device = new Device(0, DeviceType.Reference, RenderTarget, SoftwareVertexProcessing | FpuPreserve, Parameters);To think that there is room in thememory, we areworried about the cause.
In addition, the problemdoes not occur when the size is reduced.
Limit of the memory or will be present in the Device generation?
Or you think there is asetting of the leak to PresentParameters?
I will ask Professor.
View the full article
We are developing usingDirectX in C # of VisualStudio2005.
In the following environments, OutOfMemorywill occur when generatingthe Device When you runthe following code.
【Environment】
OS:Windows7
Memory:2GB
Graphic:Intel(R) Graphic Media Accelerator 600(752MB)
// Param
PresentParameters Parameters = new PresentParameters();
Parameters.Windowed = true;
Parameters.SwapEffect = SwapEffect.Discard;
Parameters.EnableAutoDepthStencil = true;
Parameters.AutoDepthStencilFormat = DepthFormat.D16;
Parameters.BackBufferFormat = Format.X8R8G8B8;
Parameters.PresentFlag = PresentFlag.LockableBackBuffer;
Parameters.BackBufferWidth = 2360;
Parameters.BackBufferHeight = 2360;
// Target
PictureBox RenderTarget = new PictureBox();
RenderTarget.Size = new Size(2360,2360);
// Create Device(This Code is Error)
Device device = new Device(0, DeviceType.Reference, RenderTarget, SoftwareVertexProcessing | FpuPreserve, Parameters);To think that there is room in thememory, we areworried about the cause.
In addition, the problemdoes not occur when the size is reduced.
Limit of the memory or will be present in the Device generation?
Or you think there is asetting of the leak to PresentParameters?
I will ask Professor.
View the full article