帮助 - 我的数组太大-----帮助移动到.dat文件? [英] Help--My Array is too Big-----Help move to a .dat file?

查看:95
本文介绍了帮助 - 我的数组太大-----帮助移动到.dat文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当数组大约4000时,Visual Studio .NET开始抱怨。我发现,如果我将数组粘贴到via notepad中,那么打开Visual Studio就可以了。

会起作用。现在我的数组超过26,000,而Visual Studio只是不喜欢

。每当我打开prokect时,我都会收到以下错误:


发生错误,C#comipler无法报告由于内存不足或内存不足或可能堆腐败。建议您保存所有

文件,关闭并重启


如果我等待大约60秒,我可以使用该程序,只要我留下
带有该阵列的班级
(约633kb)。


所以我认为是时候将阵列移到另一个文件了。所以任何人都可以帮助我b $ b帮助我吗?我在想一个.dat文件或任何其他文件用户

不能简单地打开和阅读将是我的第一选择。另外我wopuld求助于

a普通旧文本文件。

Visual Studio .NET started complaing when the array was around 4000. I
found that if I pasted the array in via notepad then opened Visual Studio it
would work. Now my array is over 26,000 and Visual Studio just doesn''t like
it. Everytime I open the prokect I get the following error:

"An Error occurred which the C# comipler is unable to report due to low
memory or possible heap corruption. It is recommended that you save all your
files, close and restart"

If I wait for about 60 seconds I can use the program as long as I stay out
of the class with that array (about 633kb).

So I think it''s time to move the array out to another file. So Can anyone
help me out here? I am thinking a .dat file or any other file that a user
can''t simply open and read would be my first choice. Else I wopuld resort to
a plain old text file.

推荐答案




为什么不使用Excel电子表格?它可以解决与阵列相同的逻辑,并且您也可以使用

spreadhseet函数。


Why not use an Excel Spreadsheet? It will address much
the same logic as an array and you may be able to use the
spreadhseet functions too.
-----原始消息-----
当数组是
大约4000时,Visual Studio .NET开始抱怨。如果我将数组粘贴到via notepad中,那么
打开Visual工作室它会工作。现在我的数组超过26,000,而Visual
Studio也不喜欢。每当我打开prokect时,我都会收到以下
错误:
由于低内存或可能的堆损坏,C#comipler无法报告
报告错误。建议
保存所有文件,关闭并重启

如果我等待大约60秒,我可以将该程序用作
,因为我不在课堂上那个数组(大约633kb)。

所以我认为是时候将数组移到另一个
文件了。那么有人能帮帮我吗?我在想一个.dat文件或任何其他
文件,用户不能简单地打开和阅读这将是我的第一选择。
否则,我可以使用普通的旧文本文件。
-----Original Message-----
Visual Studio .NET started complaing when the array was around 4000. Ifound that if I pasted the array in via notepad then opened Visual Studio itwould work. Now my array is over 26,000 and Visual Studio just doesn''t likeit. Everytime I open the prokect I get the following error:
"An Error occurred which the C# comipler is unable to report due to lowmemory or possible heap corruption. It is recommended that you save all yourfiles, close and restart"

If I wait for about 60 seconds I can use the program as long as I stay outof the class with that array (about 633kb).

So I think it''s time to move the array out to another file. So Can anyonehelp me out here? I am thinking a .dat file or any other file that a usercan''t simply open and read would be my first choice. Else I wopuld resort toa plain old text file.



这是一个可行的解决方案。事实上,在将它们导入程序之前,我将我的ARRAY列表保存在Excel

表中。我最初导入它们

使它成为一个独立的.exe文件。现在似乎越来越多了。所以想到一个外部文件就会浮现在脑海中。一个Excel文件会产生很多

与.txt相同的结果。或.csv。我虽然.dat文件,因为所有

我看到的与程序相关的你不能简单地打开和

读取/修改。

Excel文件和其他mentiod将向用户开放。我有很多带有一些程序文件的程序,然后在新信息发布时更新.dat

文件。我一直很喜欢这种方法。
That is a viable solution. In fact I maintain my ARRAY lists in an Excel
sheet prior to importing them into the program. I originally imported them
to make it one stand alone .exe file. Now it seems to out growing that. So
the thought of an external file comes to mind. A Excel file would yeild much
the same results as a .txt. or .csv. I though of the .dat file because all
the ones I''ve seen associated with programs you can''t simply open and
read/modify.
An Excel file and the others mentiod would be open to the user. I have
seen many programs that have a few program files, then they update the .dat
files when new info comes out. I always liked this approach.


XML文件怎么样?


" Yogi_Bear_79" < IT ***** @ spamfree.com>在留言中写道

news:wN ******************** @ comcast.com ...
What about an XML file?

"Yogi_Bear_79" <IT*****@spamfree.com> wrote in message
news:wN********************@comcast.com...
那个是一个可行的解决方案事实上,在将它们导入程序之前,我将我的ARRAY列表保存在Excel
表中。我最初导入了
,使它成为一个独立的.exe文件。现在似乎越来越多了。
因此想到了外部文件。一个Excel文件会产生
与.txt相同的结果。或.csv。我虽然使用.dat文件,因为所有我看过的与程序相关的文件都不能简单地打开和阅读/修改。

Excel文件其他的mentiod将对用户开放。我已经看到很多程序有一些程序文件,然后在新信息发布时更新
..dat文件。我一直很喜欢这种方法。
That is a viable solution. In fact I maintain my ARRAY lists in an Excel
sheet prior to importing them into the program. I originally imported them to make it one stand alone .exe file. Now it seems to out growing that. So the thought of an external file comes to mind. A Excel file would yeild much the same results as a .txt. or .csv. I though of the .dat file because all
the ones I''ve seen associated with programs you can''t simply open and
read/modify.
An Excel file and the others mentiod would be open to the user. I have
seen many programs that have a few program files, then they update the ..dat files when new info comes out. I always liked this approach.



这篇关于帮助 - 我的数组太大-----帮助移动到.dat文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆