Feb 5, 2011 at 3:57 PM
Edited Feb 5, 2011 at 4:00 PM
I have tried the following:
- Started a Virtual Machine with just a fresh install of Windows 7 x86
- Installed Visual C# 2010 Express
- Installed XNA Game Studio 4.0 Express
- Unpacked the Nuclex Framework sources R1242
- Copied over the TrueTypeImporter from the R1242 binary distribution
- Opened "Framework (xna-4.0-x86).sln" and compiled
No issues, same as on my workstation.
I have just published a new release and this time included a prebuilt
Nuclex.Fonts.Content.TrueTypeImporter.dll in the Source distribution. The only step required to compile now is to open the solution and hit compile.
For the memory issue, I downloaded ANTS Memory Profiler 6.0 and ran the Nuclex.UserInterface.Demo executable in it:
The memory usage remains at one and a half MiB during the whole run. I took a snapshot and looked for the screen class:
There's one instance, using 48 Bytes. Sorry, I can't figure out any issues in my code. If you wish, you could send me your profiling data. You can find mine here:
Some other things to check: using Nuclex.Support.EnumHelper class from the Nuclex.Support library, what does
EnumHelper.GetHighestValue<Microsoft.Xna.Framework.Input.Keys>() evaluate to? On my system, it's 254.
Do you observe the same memory usage initializing a BitArray with 255 elements like this: var
heldKeys = new BitArray(255);? For me, it uses 8 bytes of memory.