Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 19:44
J. Dunlap3-Nov-03 19:44 
GeneralCleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:29
Paul Evans3-Nov-03 3:29 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 3:47
protectorNick Parker3-Nov-03 3:47 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:50
Paul Evans3-Nov-03 3:50 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 5:42
professionalJeff Varszegi3-Nov-03 5:42 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 5:55
protectorNick Parker3-Nov-03 5:55 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 6:11
professionalJeff Varszegi3-Nov-03 6:11 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 6:09
Paul Evans3-Nov-03 6:09 
Well, your interest in my dangly bits is quite flattering I suppose Wink | ;-)

Although less flattering is that I'm yet to find any sign of my dangly bits.

There is a record type class (you know XmlDocument m_xmlMetadata, string m_sSrcFilepath, etc etc) with the byte array in. I even have a special "cleanup" function that ensures that the array internally is nullfied just before the record reference itself is set to null.

The array is read accessible via a getter property though - so that's my current line of investigation.

I did try every few records with nothing. Invoking it at the end of each record being used also caused nothing to happen.

To give you an idea of the volume of data that's being banded around by this import application - it generated 1.5 gig of xml datafiles and imported 250 images - at the price of a steadly climbing memory usage of past 450meg.

Obviously it's doing some garbage collection, but the byte arrays because thats a similar size to the source images overall.

I do hope I'm not hitting some kind of .Net scalabilty issues!

What really ticks me off is after it's done all the importing, cleaned up all the objects (so the engine is nullified, etc etc) it STILL doesn't free up memory after a call to GC.

/**********************************
Paul Evans, Dorset, UK.
Personal Homepage "EnjoySoftware" @
http://www.enjoysoftware.co.uk/
**********************************/

GeneralRe: Cleaning up Arrays in C# Pin
Eric Gunnerson (msft)3-Nov-03 10:10
Eric Gunnerson (msft)3-Nov-03 10:10 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 22:48
Paul Evans3-Nov-03 22:48 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 5:47
professionalJeff Varszegi3-Nov-03 5:47 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 6:11
Paul Evans3-Nov-03 6:11 
GeneralRe: Cleaning up Arrays in C# Pin
MrEyes4-Nov-03 5:35
MrEyes4-Nov-03 5:35 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans5-Nov-03 4:50
Paul Evans5-Nov-03 4:50 
GeneralDynamic / Run-time casting Pin
3-Nov-03 3:12
suss3-Nov-03 3:12 
GeneralRe: Dynamic / Run-time casting Pin
Paul Evans3-Nov-03 3:34
Paul Evans3-Nov-03 3:34 
GeneralRe: Dynamic / Run-time casting Pin
in10se3-Nov-03 4:24
in10se3-Nov-03 4:24 
GeneralRe: Dynamic / Run-time casting Pin
CBoland3-Nov-03 9:00
CBoland3-Nov-03 9:00 
GeneralRe: Dynamic / Run-time casting Pin
in10se3-Nov-03 10:56
in10se3-Nov-03 10:56 
GeneralRe: Dynamic / Run-time casting Pin
Paul Evans9-Nov-03 12:02
Paul Evans9-Nov-03 12:02 
GeneralNewbie Socket Question Pin
Joel Holdsworth3-Nov-03 2:53
Joel Holdsworth3-Nov-03 2:53 
GeneralRe: Newbie Socket Question Pin
Eric Gunnerson (msft)3-Nov-03 10:04
Eric Gunnerson (msft)3-Nov-03 10:04 
GeneralXmlUrlResolver Pin
Member 6652453-Nov-03 2:42
Member 6652453-Nov-03 2:42 
GeneralRe: XmlUrlResolver Pin
Paul Evans3-Nov-03 3:36
Paul Evans3-Nov-03 3:36 
GeneralRe: XmlUrlResolver Pin
Member 6652453-Nov-03 3:49
Member 6652453-Nov-03 3:49 

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.