Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Multiple MATLAB sessions accessing one memmap

Subject: Multiple MATLAB sessions accessing one memmap

From: John Marcovici

Date: 29 Apr, 2009 23:18:02

Message: 1 of 5

I'd like to have multiple instances of MATLAB access the same file (different parts of it) via a memory map, and this is working, albeit with the intermittent error that "the process cannot access the file because it is being by another process." This kind of defeats the purpose of using memmap for me. Any idea why this error is occurring, and what I can do to fix it?

Subject: Multiple MATLAB sessions accessing one memmap

From: Scott French

Date: 18 May, 2009 20:51:01

Message: 2 of 5

"John Marcovici" <johnmarcovici@junkhotmail.com> wrote in message <gtan7a$4ll$1@fred.mathworks.com>...
> I'd like to have multiple instances of MATLAB access the same file (different parts of it) via a memory map, and this is working, albeit with the intermittent error that "the process cannot access the file because it is being by another process." This kind of defeats the purpose of using memmap for me. Any idea why this error is occurring, and what I can do to fix it?

Can you specify what version of MATLAB you are using and on what platform/OS?

Thanks,
Scott French
The MathWorks

Subject: Multiple MATLAB sessions accessing one memmap

From: John Marcovici

Date: 18 May, 2009 21:35:01

Message: 3 of 5

"Scott French" <scott.french@mathworks.com> wrote in message >
> Can you specify what version of MATLAB you are using and on what platform/OS?
>
> Thanks,
> Scott French
> The MathWorks

This happened using 2007a on a 32-bit XP machine. I corresponded at length with
Saurabh Thakur in tech. support about this [THREAD ID: 1-9OCAV2], so you may want to check with him as well, as he was able to reproduce the error using sample code I emailed to him.

Thanks,
John Marcovici

Subject: Multiple MATLAB sessions accessing one memmap

From: Scott French

Date: 21 May, 2009 12:41:02

Message: 4 of 5

"John Marcovici" <johnmarcovici@junkhotmail.com> wrote in message <guska5$ku0$1@fred.mathworks.com>...
> "Scott French" <scott.french@mathworks.com> wrote in message >
> > Can you specify what version of MATLAB you are using and on what platform/OS?
> >
> > Thanks,
> > Scott French
> > The MathWorks
>
> This happened using 2007a on a 32-bit XP machine. I corresponded at length with
> Saurabh Thakur in tech. support about this [THREAD ID: 1-9OCAV2], so you may want to check with him as well, as he was able to reproduce the error using sample code I emailed to him.
>
> Thanks,
> John Marcovici

Thank you for providing the information I requested.

A bug in memmapfile which leads to the same error message you reported was fixed in MATLAB R2008a. Unfortunately, I am unable to provide a patch for R2007a, which means updating to the R2008a release or later is probably your best plan.

Scott French
The MathWorks, Inc.

Subject: Multiple MATLAB sessions accessing one memmap

From: John Marcovici

Date: 21 May, 2009 15:02:01

Message: 5 of 5

> Thank you for providing the information I requested.
>
> A bug in memmapfile which leads to the same error message you reported was fixed in MATLAB R2008a. Unfortunately, I am unable to provide a patch for R2007a, which means updating to the R2008a release or later is probably your best plan.
>
> Scott French
> The MathWorks, Inc.

Sounds good. Thanks for hunting it down.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us