SmartAssembly 6.6.3 OutOfMemoryException with 64-bit App
craigm
Posts: 17
Hi,
I'm having issues with version 6.6.3 of SmartAssembly when trying to generate a 64-bit version of my application. It seems to be running out of memory at a similar point it would if it were a 32-bit application. It works fine without processing through SmartAssembly, but once I process it, it throws an out of memory exception, even if all of the options are turned off (no obfuscation, pruning, control flow, etc).
I was able to reproduce this program with a simple command line application with the following code:
I've reverted to version 6.1 and it seems to be working fine so I'm going to use this in the meantime.
Thanks,
Craig
I'm having issues with version 6.6.3 of SmartAssembly when trying to generate a 64-bit version of my application. It seems to be running out of memory at a similar point it would if it were a 32-bit application. It works fine without processing through SmartAssembly, but once I process it, it throws an out of memory exception, even if all of the options are turned off (no obfuscation, pruning, control flow, etc).
I was able to reproduce this program with a simple command line application with the following code:
class Program { static void Main(string[] args) { try { var l = new List<object>(); for (int i = 1; i <= 4096; i++) { l.Add(new A()); Console.WriteLine("Created " + i.ToString("#,##0") + "MB"); } Console.WriteLine("No out of memory exception."); } catch (Exception e) { Console.WriteLine(e.ToString()); } Console.WriteLine((Environment.Is64BitProcess ? "64" : "32") + "-bit process"); Console.ReadKey(); } } class A { byte[] b; public A() { b = new Byte[1048576]; } }
I've reverted to version 6.1 and it seems to be working fine so I'm going to use this in the meantime.
Thanks,
Craig
Comments
Thanks,
Craig
I've just released SmartAssembly 6.6.4.95, which includes this fix. To download it, use 'Check for Updates' in SmartAssembly's menu.
Thanks for telling us about the bug.
Dom.
Project Manager,
Redgate.