Red Gate forums :: View topic - System.OutOfMemoryException in app protected with SA6
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

System.OutOfMemoryException in app protected with SA6

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
DaveNay



Joined: 23 Mar 2012
Posts: 4

PostPosted: Fri Mar 23, 2012 9:42 pm    Post subject: System.OutOfMemoryException in app protected with SA6 Reply with quote

We have been using SmartAssembly for several years on our product (since before redgate). Most recently we were on Version 5.5 (build 153) for quite a while without upgrading. Earlier this week, I upgraded our build server to use Version 6.6.3.41 (current version at the moment). We are now reliably getting System.OutOfMemoryException errors thrown in our application at run time. (There have been some reports of System.OutOfMemoryException in SA itself while building, but this is NOT our situation.) I have even attempted to perform a build of our application with every single SA protection option set to Off/No and we still receive System.OutOfMemoryException at run time.

If I use SA 5.5(build 153) to protect our application, everything works fine (as it has for years). I can flip back and forth between SA5.5 and SA 6.6 feeding in the same binaries, and the results are consistent.

The unprotected binaries also do not produce System.OutOfMemoryException.

Enabling Automated Error Reporting in SA 6.6 yields no additional information.

Any insight anyone could lend me is greatly appreciated, as the primary reason we finally upgraded from 5.5 to 6.6 was due to some odd behavior at run time that went away after the upgrade, so we are currently stuck with one portion of our application working properly only with 5.5 and a different portion working properly only with 6.6.

Thank you,
Dave
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Mar 26, 2012 10:08 am    Post subject: Reply with quote

Hi Dave,

SmartAssembly recreates the assembly, so it could be possible some modification caused this to happen, but as you said, it's incredibly difficult to tell if you don't get any error information.

I did see one case where changing from merging to embedding fixed it.

Otherwise, it's going to be a matter of attaching a debugger to your application, getting the stack trace from the point of the exception, and working from there.
Back to top
View user's profile Send private message
Simon C



Joined: 26 Feb 2008
Posts: 140
Location: Red Gate Software

PostPosted: Tue Apr 03, 2012 9:34 am    Post subject: Reply with quote

Out of interest, is your application 64-bit only (as opposed to AnyCPU or 32-bit only)?
Back to top
View user's profile Send private message Send e-mail
DaveNay



Joined: 23 Mar 2012
Posts: 4

PostPosted: Tue Apr 17, 2012 3:00 pm    Post subject: Re: Reply with quote

Simon C wrote:
Out of interest, is your application 64-bit only (as opposed to AnyCPU or 32-bit only)?


Hi Simon, sorry for the delay. Yes, our application is 64-bit only.
Back to top
View user's profile Send private message
DaveNay



Joined: 23 Mar 2012
Posts: 4

PostPosted: Tue Apr 17, 2012 3:05 pm    Post subject: Re: Reply with quote

Simon C wrote:
Out of interest, is your application 64-bit only (as opposed to AnyCPU or 32-bit only)?


I just saw the other thread on this forum with the identical issue, and the fix. II will be testing immediately to see if it fixes my issue also.
Back to top
View user's profile Send private message
DaveNay



Joined: 23 Mar 2012
Posts: 4

PostPosted: Tue Apr 17, 2012 4:34 pm    Post subject: Re: Reply with quote

DaveNay wrote:
Simon C wrote:
Out of interest, is your application 64-bit only (as opposed to AnyCPU or 32-bit only)?


I just saw the other thread on this forum with the identical issue, and the fix. II will be testing immediately to see if it fixes my issue also.


SmartAssemby 6.6.4.95 has fixed our OutOfMemoryException problems on 64-bit assemblies.

Thanks guys!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group