Click here to Skip to main content
15,914,397 members
Home / Discussions / C#
   

C#

 
QuestionHTK Pin
dileeparuwan6-May-09 3:25
dileeparuwan6-May-09 3:25 
QuestionUsing Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 3:21
Ami Vaknin6-May-09 3:21 
AnswerRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Henry Minute6-May-09 6:21
Henry Minute6-May-09 6:21 
GeneralRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 11:16
Ami Vaknin6-May-09 11:16 
QuestionOut of Memory exception.. Pin
Jacob Dixon6-May-09 3:16
Jacob Dixon6-May-09 3:16 
AnswerRe: Out of Memory exception.. Pin
S. Senthil Kumar6-May-09 9:09
S. Senthil Kumar6-May-09 9:09 
GeneralRe: Out of Memory exception.. Pin
Jacob Dixon6-May-09 10:18
Jacob Dixon6-May-09 10:18 
GeneralRe: Out of Memory exception.. Pin
S. Senthil Kumar6-May-09 10:25
S. Senthil Kumar6-May-09 10:25 
Jacob Dixon wrote:
but what i changed will help with memory since I'm setting it to null at the end?


No, it shouldn't make any difference. Even if you don't set it to null, the CLR and the GC know enough to figure out that the byte array has no references outside your method, and array will therefore get garbage collected.

If just one file gives you an OutOfMemoryException, you should try streaming the contents of the file i.e. loading smaller chunks repeatedly, rather than loading it in one big byte array. I don't know enough ADO.NET to figure out how to stream it to the database though.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Home Page |My Blog | My Articles | My Flickr | WinMacro

QuestionReading large xls files in C# Pin
aastudent6-May-09 3:08
aastudent6-May-09 3:08 
AnswerRe: Reading large xls files in C# Pin
foluis26-Mar-10 11:16
foluis26-Mar-10 11:16 
GeneralRe: Reading large xls files in C# Pin
aastudent28-Mar-10 21:47
aastudent28-Mar-10 21:47 
GeneralRe: Reading large xls files in C# Pin
foluis29-Mar-10 8:22
foluis29-Mar-10 8:22 
QuestionConverting C source code into C# source code Pin
dileeparuwan6-May-09 3:05
dileeparuwan6-May-09 3:05 
AnswerRe: Converting C source code into C# source code Pin
musefan6-May-09 3:13
musefan6-May-09 3:13 
GeneralRe: Converting C source code into C# source code Pin
dileeparuwan6-May-09 3:17
dileeparuwan6-May-09 3:17 
AnswerRe: Converting C source code into C# source code Pin
Dave Doknjas6-May-09 12:53
Dave Doknjas6-May-09 12:53 
Questioncall Oracle function which returns a REF CURSOR - tutorial? Pin
devvvy6-May-09 2:59
devvvy6-May-09 2:59 
AnswerRe: call Oracle function which returns a REF CURSOR - tutorial? Pin
TweakBird28-Dec-10 22:09
TweakBird28-Dec-10 22:09 
Questionsource code for video cutter Pin
twinkle116-May-09 2:58
twinkle116-May-09 2:58 
AnswerRe: source code for video cutter Pin
dheeraj.mittal3-Jun-10 19:35
dheeraj.mittal3-Jun-10 19:35 
QuestionLaunch Condition for crystal report in c#.net 3.5 Setup project. Pin
Narendra Reddy Vajrala6-May-09 2:18
Narendra Reddy Vajrala6-May-09 2:18 
AnswerRe: Launch Condition for crystal report in c#.net 3.5 Setup project. Pin
bhaumikdv25-May-09 22:46
bhaumikdv25-May-09 22:46 
GeneralRe: Launch Condition for crystal report in c#.net 3.5 Setup project. Pin
Narendra Reddy Vajrala12-Jun-09 5:54
Narendra Reddy Vajrala12-Jun-09 5:54 
QuestionListView SelectedIndexChanged exception Pin
piticcotoc6-May-09 2:06
piticcotoc6-May-09 2:06 
AnswerRe: ListView SelectedIndexChanged exception Pin
Druuler6-May-09 2:20
Druuler6-May-09 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.