- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚在 c# .net 中制作了一个程序,现在当我尝试保存或调试它时,我在消息框中收到此错误。这是我目前为我的项目编写的代码。错误代码“内存不足,无法继续执行程序”请帮忙。
if (PS3.GetCurrentAPI() == SelectAPI.ControlConsole)
{
MessageBox.Show("Successfully Connected To PS3", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
connectstuslbl1.Text = " Status: Connected";
connectstuslbl1.ForeColor = Color.Green;
PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Single);
PS3.CCAPI.Notify(CCAPI.NotifyIcon.TROPHY4, "Successfully Connected To PS3");
attachButton.Enabled = true;
disconnectButton.Enabled = false;
MySyn.SpeakAsync(richTextBox1.Text); // read the text that inside the Rich Text Box
}
else if (PS3.GetCurrentAPI() == SelectAPI.TargetManager)
{
MessageBox.Show("Connected", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
connectstuslbl1.Text = " Status: Connected";
connectstuslbl1.ForeColor = Color.Green;
attachButton.Enabled = true;
disconnectButton.Enabled = false;
MySyn.SpeakAsync(richTextBox1.Text); // read the text that inside the Rich Text Box
}
}
catch
{
MessageBox.Show("Something is wrong please try again :/", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
connectstuslbl1.Text = "Failed To Connect";
connectstuslbl1.ForeColor = Color.Red;
}
}
private void flatButton2_Click(object sender, EventArgs e)
{
try
{
if (!PS3.AttachProcess())//what this does is runs a error code if theres nothing there, so instead of it saying "Connected" like some tools do it will say ERROR.
{
attachmentLabel2.Text = "Failed To Attach";
attachmentLabel2.ForeColor = Color.Red;
return;
}
if (PS3.GetCurrentAPI() == SelectAPI.ControlConsole)
{
PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Double);
}
attachmentLabel2.Text = "Status: Attached";
attachmentLabel2.ForeColor = Color.Green;
MessageBox.Show("HatedRTMtool", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
disconnectButton.Enabled = true;
MySyn.SpeakAsync(richTextBox2.Text); // read the text that inside the Rich Text Box
}
catch
{
attachmentLabel2.Text = "Failed To Attach";
attachmentLabel2.ForeColor = Color.Red;
PS3.CCAPI.Notify(CCAPI.NotifyIcon.TROPHY4, "Failed To Attach :/");
}
}
private void flatToggle1_CheckedChanged(object sender)
{
if (this.flatToggle1.Checked)
{
byte[] ON = new byte[] { 0x2C, 0x03, 0x00, 0x01 };//redbox
PS3.SetMemory(0x1AF110, ON);
}
else
{
byte[] OFF = new byte[] { 0x2C, 0x03, 0x00, 0x00 };
PS3.SetMemory(0x1AF110, OFF);
}
}
private void flatToggle2_CheckedChanged(object sender)
{
if (this.flatToggle2.Checked)
{
byte[] ON = new byte[] { 0x6B, 0x18, 0x00, 0x00 }; //advanced uav
PS3.SetMemory(0x1A6A98, ON);
}
else
{
byte[] OFF = new byte[] { 0x6B, 0x18, 0x00, 0x01 };
PS3.SetMemory(0x1A6A98, OFF);
}
}
private void flatToggle3_CheckedChanged(object sender)
{
if (this.flatToggle3.Checked)
{
byte[] ON = new byte[] { 0x2C, 0x12, 0x00, 0x01 };//lazer
PS3.SetMemory(0x21B6B4, ON);
}
else
{
byte[] OFF = new byte[] { 0x2C, 0x12, 0x00, 0x00 };
PS3.SetMemory(0x21B6B4, OFF);
}
}
private void flatToggle4_CheckedChanged(object sender)
{
if (this.flatToggle4.Checked)
{
byte[] ON = new byte[] { 0x2C, 0x83, 0x00, 0x00 };//small crosshair
PS3.SetMemory(0x187294, ON);
}
else
{
byte[] OFF = new byte[] { 0x2C, 0x83, 0x00, 0x02 };
PS3.SetMemory(0x187294, OFF);
}
}
private void flatToggle5_CheckedChanged(object sender)
{
if (this.flatToggle5.Checked)
{
byte[] ON = new byte[] { 0x60, 0x00, 0x00, 0x00 };//no recoil
PS3.SetMemory(0x228930, ON);
}
}
private void flatToggle6_CheckedChanged(object sender)
{
if (this.flatToggle6.Checked)
{
byte[] ON = new byte[] { 0x2C, 0x03, 0x00, 0x01 };//green player
PS3.SetMemory(0x60087C, ON);
}
else
{
byte[] OFF = new byte[] { 0x2C, 0x03, 0x00, 0x00 };
PS3.SetMemory(0x60087C, OFF);
}
}
private void flatToggle7_CheckedChanged(object sender)
{
if (this.flatToggle7.Checked)
{
byte[] ON = new byte[] { 0x38, 0xC0, 0x00, 0x09 };//wall hack
PS3.SetMemory(0x1DDBD0, ON);
}
else
{
byte[] OFF = new byte[] { 0x63, 0xE6, 0x00, 0x00 };
PS3.SetMemory(0x1DDBD0, OFF);
}
}
private void flatButton1_Click_1(object sender, EventArgs e)
{
byte[] bytes = BitConverter.GetBytes((int)this.flatNumeric1.Value);
PS3.SetMemory((uint)Stats.AWPrestige, bytes); //Prestige
}
private void flatButton2_Click_1(object sender, EventArgs e)
{
byte[] buffer6 = BitConverter.GetBytes((int)this.flatNumeric2.Value);
PS3.SetMemory((uint)Stats.AWScore, buffer6); //Score
}
private void flatButton10_Click(object sender, EventArgs e)
{
byte[] buffer289 = BitConverter.GetBytes((int)this.flatNumeric3.Value);
PS3.SetMemory((uint)Stats.AWWins, buffer289); //Wins
}
private void flatButton11_Click(object sender, EventArgs e)
{
byte[] buffer3 = BitConverter.GetBytes((int)this.flatNumeric4.Value);
PS3.SetMemory((uint)Stats.AWLosses, buffer3); //Losses
}
private void flatButton12_Click(object sender, EventArgs e)
{
byte[] buffer4 = BitConverter.GetBytes((int)this.flatNumeric5.Value);
PS3.SetMemory((uint)Stats.AWKills, buffer4); //Kills
}
private void flatButton13_Click(object sender, EventArgs e)
{
byte[] buffer5 = BitConverter.GetBytes((int)this.flatNumeric6.Value);
PS3.SetMemory((uint)Stats.AWDeaths, buffer5); //Deaths
}
private void flatButton14_Click(object sender, EventArgs e)
{
byte[] buffer7 = BitConverter.GetBytes((int)this.flatNumeric7.Value);
PS3.SetMemory((uint)Stats.AWGamePlayed, buffer7); //Games Played
}
private void flatButton8_Click(object sender, EventArgs e)
{
byte[] buffer8 = BitConverter.GetBytes((int)this.flatNumeric8.Value);
PS3.SetMemory((uint)Stats.AWAccuracy, buffer8); //Accuracy
}
private void flatButton6_Click(object sender, EventArgs e)
{
flatNumeric2.Value = 3240000; //Score
flatNumeric3.Value = 7000; //Wins
flatNumeric4.Value = 20000; //Losses
flatNumeric5.Value = 30000; //Kills
flatNumeric6.Value = 100000; //Deaths
}
private void flatButton7_Click(object sender, EventArgs e)
{
}
private void flatButton3_Click(object sender, EventArgs e)
{
byte[] buffer = new byte[0x1770];
for (int i = 0; i < 0x1770; i++)
{
buffer[i] = 0xfe;
}
PS3.SetMemory(Stats.AWUnlockAll, buffer);
}
private void flatButton4_Click(object sender, EventArgs e)
{
flatNumeric2.Value = 44046576; //Score
flatNumeric3.Value = 17059; //Wins
flatNumeric4.Value = 6038; //Losses
flatNumeric5.Value = 408940; //Kills
flatNumeric6.Value = 152470; //Deaths
flatNumeric1.Value = 15; //Prestige
}
private void flatButton5_Click(object sender, EventArgs e)
{
byte[] buffer = new byte[0x1770];
for (int i = 0; i < 0x1770; i++)
{
buffer[i] = 0xfe;
}
PS3.SetMemory(Stats.AWUnlockAll, buffer);//level 50
}
private void flatButton7_Click_1(object sender, EventArgs e)
{
//time played
byte[] buffer13 = new byte[4];
PS3.GetMemory(Stats.AWTimePlayed, buffer13);
int num = BitConverter.ToInt32(buffer13, 0);
int num2 = ((num / 60) / 60) / 0x18;
int num3 = ((num / 60) / 60) % 0x18;
int num4 = (num / 60) % 60;
this.flatNumeric9.Value = num2;
this.flatNumeric10.Value = num3;
this.flatNumeric11.Value = num4;
}
private void flatButton21_Click(object sender, EventArgs e)
{
PS3.Extension.WriteString(Stats.AWClasse1, flatTextBox1.Text);
}
private void flatButton16_Click(object sender, EventArgs e)
{
}
private void flatButton15_Click(object sender, EventArgs e)
{
}
private void flatButton17_Click(object sender, EventArgs e)
{
}
private void flatButton18_Click(object sender, EventArgs e)
{
}
private void flatButton19_Click(object sender, EventArgs e)
{
}
private void flatButton20_Click(object sender, EventArgs e)
{
}
private void flatButton22_Click(object sender, EventArgs e)
{
}
private void flatButton23_Click(object sender, EventArgs e)
{
}
private void flatButton24_Click(object sender, EventArgs e)
{
}
}
最佳答案
出现此问题是因为应用程序在每次失效更新时都会创建一个新的位图缓存,而不是更新现有缓存。
当应用程序快速使位图无效时,可能会耗尽内存资源,然后发生异常。
除非您提供更多代码来测试/调试,否则我只能找到与您的问题相关的所有代码。
To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website: http://support.microsoft.com/contactus/?ws=support
关于c# - 内存不足,无法继续执行程序 VisualStudio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35397851/
所以我正在为考试复习,并在 SQL 河(或荒地)中撞到了一块大石头 我制作了以下表格并插入了以下数据: create table Permissions ( fileName VARCHAR(
我有一个使用 maxWidth 定义的 jqueryui 对话框。 $("#myDialog").dialog({ autoOpen: false, width: 'a
注意:我遗漏了不相关的代码 所以我目前正在研究 CCC 1996 P1,这个问题的全部目的是能够计算一个整数输入是完美数、不足数还是充数。我上面列出的代码可以工作,但是我认为它太慢了。该代码会迭代每个
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我正在使用 Go 和 Redis 开发 API。问题是RAM使用不足,我找不到问题的根源。 TL;DR 版本 有数百/数千个哈希对象。每个 1 KB 的对象(键+值)占用大约 0.5 MB 的 RAM
在我的 GCE Kubernetes 集群上,我无法再创建 pod。 Warning FailedScheduling pod (www.caveconditions.com-f1be467e3
当我尝试在EKS Fargate群集上安装指标服务器时,它抛出错误: 0/4 nodes are available: 4 Insufficient pods. 按照以下说明从此处安装指标服务器:ht
遍布this document Apple 提到 iOS 在某些情况下会终止应用程序,最常见的原因似乎是释放一些 RAM。这会导致未实现状态恢复的应用程序出现问题——用户正在处理和暂时离开的一些内容可
尝试处理一个10分钟的音频文件时出现以下错误。我刚刚开始使用Google Cloud产品,所以我是唯一访问此资源的人。我怎么可能超出配额?配额设置为其默认值,我认为我没有任何限制。还有其他原因吗? 我
R 语言让我感到困惑。实体有模式和类,但即使这样也不足以完全描述实体。 这个answer说 In R every 'object' has a mode and a class. 所以我做了这些实验:
我在 west-1 有一个 Openshift v3 项目。在其中,我有一个运行良好的应用程序,但在 GitHub 提交代码中非常下游的内容后,该应用程序停止工作。问题在于制作 pod: No nod
我在 west-1 有一个 Openshift v3 项目。在其中,我有一个运行良好的应用程序,但在 GitHub 提交代码中非常下游的内容后,该应用程序停止工作。问题在于制作 pod: No nod
在 how-do-i-access-the-stackoverflow-api-from-mathematica我概述了如何使用 SO API 让 Mathematica 制作一些有趣的顶级回答者声誉
所以在 GKE 上,我有一个 Node.js app,每个 pod 使用大约:CPU(cores): 5m, MEMORY: 100Mi 但是我只能为每个 Node 部署 1 个 pod。我使用的是
我正在使用 async.eachOfSeries 超过 300 个数组并请求一些 GA api,它工作正常但有时我会收到错误.. UnhandledPromiseRejectionWarning:错误
我正在尝试在 AWS ec2 上托管的 kubernetes 集群上使用 mr3 设置配置单元。当我运行命令 run-hive.sh 时,Hive 服务器启动,并且 master-DAg 被初始化,但
创建订阅时有时会出现以下错误: Insufficient tokens for quota 'administrator' and limit 'CLIENT_PROJECT-100s' of ser
我是一名优秀的程序员,十分优秀!