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

Asked by meghna bhatt about 15 hours ago
Latest activity Commented on by Image Analyst about 8 hours ago

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!

0 Comments

meghna bhatt

Products

1 Answer

Answer by David Sanchez about 15 hours ago

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

David Sanchez about 13 hours ago

right. It all has to do with the MCR installed on the machine. In order to make your 32b application work on a 64b machine, install the MCR of the 32b matlab version on the 64b machine.

meghna bhatt about 8 hours ago

I am already doing this I have installed 32 bit in windows 7 64 bit machine but it does not work

Image Analyst about 8 hours ago

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

David Sanchez

Contact us