is there any robust solution to Out of memory error in Windows 7 64 bit machine where MCR of 32 bit is installed?

2 views (last 30 days)
I have one Image processing function (Algorithm)in MATLAB which does image processing on input image and output the XML format data
I am calling the function of that algorithm from .NET Windows Service at some time interval and generating output
This Application works perfect in 32 bit windows xp and windows 7 machine
but when i run service in 64 bit Windows7 machine - the scenario is different
Scenario: Windows Service works fine initially but when i keep service idle till half an hour then MATLAB is throwing *_OUT of memory ERROR constantly _*
I require to restart the service to avoid this error for next some time
Here my 64 bit Windows 7 machine has Matlab Commun Runtime of 32 bit version installed
please share if any one has any idea for resolving this issue
Thanks in Advance!

Answers (1)

David Sanchez
David Sanchez on 1 Aug 2013
You should install the MCR of the matlab version installed on the machine. If your application was created in a 32bit matlab version, it will cause problems when trying to run it on a 64bit machine ( and vice-versa ).
  4 Comments
Image Analyst
Image Analyst on 1 Aug 2013
I don't believe what David said is true. I have a 64 bit system and have both 32 bit and 64 bit MATLAB installed on my system. (The 32 bit version is for when I need to compile 32 bit apps for people who have 32 bit Windows.) The 32 bit executables run fine on my system - I do it all the time, though I have not let it idle for 30 minutes. And the advice to install the 32 bit MCR on the 64 bit system is correct but moot - you wouldn't even be able to launch your program if that were not already the case so obviously you've done that already.
The official MATLAB advice for memory problems is here: http://www.mathworks.com/help/matlab/memory.html

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!