Red Gate forums :: View topic - Out of memory exception after project build, close/reopen
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

Out of memory exception after project build, close/reopen

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



Joined: 03 Nov 2011
Posts: 5

PostPosted: Wed Nov 30, 2011 5:43 pm    Post subject: Out of memory exception after project build, close/reopen Reply with quote

Using version 6.5.2.21 Pro

if SA is closed and i open it and my project, then build my project, things work as expected.

if i then close the project (and leave SA open), then reopen my project and try to rebuild my project, i am getting a

System.OutOfMemoryException

If i close SA between runs, it works fine.

let me know if you want me to do anything else (extended logging, etc) on this.
_________________
Eric R Peterson
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 547

PostPosted: Thu Dec 01, 2011 6:17 pm    Post subject: Reply with quote

It is a known issue that SA does leak some memory upon each build, sorry. I will add this t the accumulation of reproductions we keep.

Can you tell us how much memory is used up by the SA project after 1 iteration please?
Back to top
View user's profile Send private message
EricPeterson



Joined: 03 Nov 2011
Posts: 5

PostPosted: Mon Dec 05, 2011 4:26 am    Post subject: Reply with quote

Just opening SA and loading my project:

SmartAssembly.exe SmartAssembly.exe 5024 < 0.01 172,316 K 202,640 K SmartAssembly Red Gate Software Ltd.

After one build:

SmartAssembly.exe SmartAssembly.exe 5024 0.01 1,227,888 K 1,055,156 K SmartAssembly Red Gate Software Ltd.

Without closing SA, after second build:

SmartAssembly.exe SmartAssembly.exe 5024 0.02 499,076 K 446,916 K SmartAssembly Red Gate Software Ltd.

What is interesting is when i clicked Build, it immediately died. Clicking retry threw an unhandled exception which i reported via SA (object reference not set to an object). I used my email address on the bug report as well.

SA shut down after i submitted the error.

Let me know if you want anything else from me and i will get it ASAP.

Eric
_________________
Eric R Peterson
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 547

PostPosted: Mon Dec 05, 2011 2:13 pm    Post subject: Reply with quote

I wonder if we can seperate building smartassembly-protected app from building app (since they are, really, independant). I was also told that If you accidently build the vshost of an app, you get this exception during the build. In other words- let's take visual studio out of the equation just for now...
Back to top
View user's profile Send private message
EricPeterson



Joined: 03 Nov 2011
Posts: 5

PostPosted: Mon Dec 05, 2011 4:15 pm    Post subject: Reply with quote

i am only talking about using SA. VS was not even open when i did the test above.

please advise
_________________
Eric R Peterson
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 547

PostPosted: Fri Dec 09, 2011 1:24 pm    Post subject: Reply with quote

As I say- memory leaking are a known issue- but it sounds like you have a different problem- that of it actually *crashing*. But is it crashing because too much memory has been used?
Can you downgrade to 6.2 and see if it behaves better please:

http://downloads.red-gate.com/checkforupdates/SmartAssembly/SmartAssembly_6.2.2.215.exe

This, at least, proves its a regression and we will know which part of the code is causing the issue
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