Hi,
No matter what I tried, I keep receiving this error:
??? Cant map view of file. It may be locked by another program.
Error in ==> spm_read_vols at 34
Y(:,:,p,i) = spm_slice_vol(V(i),spm_matrix([0 0 p]),V(i).dim(1:2),0);
Error in ==> load_analyze_pattern at 155
[Vdata] = spm_read_vols(curvol);
Error in ==> tutorial_easy_spm_yorgos_real at 66
subj = load_analyze_pattern(subj,'epi','bigmac',raw_filenames);
I tried all the usual suspets, such as restarting matlab, rebooting, changing image names, changing image location , changing folder location or even trying another computer and the outcome was the sameg
--
---
Greg Detre
cell: 617 642 3902
email: gr...@gregdetre.co.uk
web: http://www.princeton.edu/~gdetre/
??? Cant map view of file. It may be locked by another program.
Error in ==> spm_read_vols at 34
Y(:,:,p,i) = spm_slice_vol(V(i),spm_matrix([0 0 p]),V(i).dim(1:2),0);
Error in ==> load_analyze_pattern at 155
[Vdata] = spm_read_vols(curvol);
Error in ==> tutorial_easy_spm_yorgos_real at 66
subj = load_analyze_pattern(subj,'epi','ofc',raw_filenames);
is it possible that you're using SPM at the same time to access the
file, or some anti-virus program?
what version of windows are you running?
we may have to contact the SPM list to see if they have any ideas
g
georc...@googlemail.com wrote:
> Actually the solution I described also does not work most of the
> times. I do not know what the error could be.
> >
>
g
George Christopoulos wrote:
> It seems that everything depends on the mask. Some masks are good,
> i.e. the error never appears, whereas others always produce the error.
> I attach a 'good' (rINSULA.img) and a 'bad' mask
> (rINF_OPER_TRI_ORB.img) to check it out if you can, cause I could not
> spot any differences.
>
> I recall having a similar problem many months ago in SPM5 (not SPM2),
> but it was solved by downloading the new SPM. SPM is off, so I do not
> think that it is the one that is locking it. I tried a 2nd computer
> and the problems still remains.
>
> I am using Windows XP.
>
> g
>
> 2008/6/11 Greg Detre <gde...@princeton.edu <mailto:gde...@princeton.edu>>:
>
>
> garrett and i were discussing this, and we're not sure what could be
> causing this. the problem is in a low-level SPM mex file that we think
> does some kind of memory mapping of the file. we don't know why the
> locking would break when using load_analyze_pattern.m, and why this
> isn't a more widespread problem. has anybody else on the list
> experienced this too?
>
> is it possible that you're using SPM at the same time to access the
> file, or some anti-virus program?
>
> what version of windows are you running?
>
> we may have to contact the SPM list to see if they have any ideas
>
> g
>
>
> georc...@googlemail.com <mailto:georc...@googlemail.com> wrote:
> > Actually the solution I described also does not work most of the
> > times. I do not know what the error could be.
> > >
> >
>
>
> --
>
>
> ---
> Greg Detre
> cell: 617 642 3902
> email: gr...@gregdetre.co.uk <mailto:gr...@gregdetre.co.uk>
> web: http://www.princeton.edu/~gdetre/
> <http://www.princeton.edu/%7Egdetre/>
g
George Christopoulos wrote:
> No, I generated both in the same way, using Pickatlas
>
>
Greg Detre wrote:
> did you mean SPM2? SPM5 is the latest version
>
> g