[1726]OutOfMemoryException in rename refactoring

Hello,

while renaming a property R# throws a bunch of OutOfMemoryException's. Unfortunately this causes VS to crash so i'm unable to send an error report.

I'm working with VS 2008 on Windows XP. The machine is an older P4 with 3 GB Ram. The solution is a VB solution with around 100 Forms, 200 class files and 30 VB modules. The property is defined in global scope and frequently used in the whole solution. After restarting Visual Studio i noticed that the refactoring itself was successful. Is there a logfile somewhere (mybe generated by the exception reporter) which i can upload to help with the analysis?

Same refactoring on a Core2Duo with 4GB Ram on Windows 7 64bit and VS2010 don't throw OutOf MemoryExceptions.

Regards
Klaus

5 comments
Comment actions Permalink

Hello,

The log files are suppressed by default to prevent wasting resources. They
have to be turned on explicitly with "/ReSharper.LogFile" command line parameter,
and will go to %TEMP%/JetLogs folder or the given filename, if specified.

However, most of the time OutOfMemoryExceptions wouldn't have any useful
information of them -- just the stack trace of the exact point where the
memory finally ran out.

I think it's the 200-file count that caused the problem. If you had the checkbox
saying smth like "keep documents open to enable undo" enabled in the Refactoring
window (ON by default), ReSharper attempted opening all of those 200 files
in a row. Could well exhaust the available virtual memory. Running the refactoring
without this checkbox is much more likely to succeed without any problems.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello Serge,

thanks for the tip, i've tried it out and the refactoring was completed much much faster. But there will be the risk that i can't easily revert the refactoring if something goes wrong and i have an intermediate state of my source.

Regards
Klaus

0
Comment actions Permalink

Hello,

I'd suggest turning the checkbox off only when the refactored symbol has
usages in quite a lot of files. In the normal course of things it does not
cause any big problems.

I think I know how to enable Undo without opening all those documents, but
it means rewriting too much code, and I'm currently not sure when this could
be done.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

a grand banquetyou should select a elegant evening dress http://www.hairhey.com it appears have a floral impression of China http://www.hairhey.com Bally sent a fur bag with purple petals Marni offered a colorful flower necklace Though The year school reunion party is imminent and worse still it is going to be herve leger dress http://www.shoesmum.com Vera Wangs wedding dress is black and white she sent a bracelet decorated with green leaves and dark purple glassflowers http://www.jewelryover.com Most foreigners think of China as something like colorful flowers http://www.shoesmum.com  red lanterns and calligraphy Every bride dreams of a wonderful weddingthe wedding is a holy banqueti think the bride should wwhite wedding dress

---
Original message URL: http://devnet.jetbrains.net/message/5274473#5274473

0
Comment actions Permalink

I find it really helps to rely on version control software (Subversion, Git,
or Mercurial) to save working state at regular intervals while refactoring
code. This way if either the compiler or the unit tests fail for whatever
reason, I can always revert to the previous working version without worrying
about losing changes or breaking the code. I listed these three because
commits are really cheap and fast operations so you can commit as often as
you want.

"Klaus Luedenscheidt"  wrote in message
news:6477829.21001278580803420.JavaMail.devnet@domU-12-31-39-18-36-57.compute-1.internal...

Hello Serge,

thanks for the tip, i've tried it out and the refactoring was completed much
much faster. But there will be the risk that i can't easily revert the
refactoring if something goes wrong and i have an intermediate state of my
source.

Regards
Klaus

---
Original message URL: http://devnet.jetbrains.net/message/5267253#5267253

0

Please sign in to leave a comment.