|
Well uninstalling version 2006a and rebooting seems to have
done the trick!!!
"Bill " <john.doe.nospam@mathworks.com> wrote in message
<fnam9i$5d6$1@fred.mathworks.com>...
> Steve,
>
> I did notice that earlier and did indeed explicitly
> register 2007b as a COM server. HOWEVER, I bet that 2006a
> is still registered and that I am somehow envoking both
of
> them. I am going to uninstall 2006a and see if that
helps.
> I'll let you know.
>
> Bill
>
>
>
> "Steven Lord" <slord@mathworks.com> wrote in message
> <fnal6r$h6k$1@fred.mathworks.com>...
> >
> > "Bill " <john.doe.nospam@mathworks.com> wrote in
message
> > news:fnabat$8ol$1@fred.mathworks.com...
> > > Well, I cannot reliably start the MatLab engine from
a C
> > > program. Last week it seemed to work every time that I
> > > tried. This week it has only worked once. The return
> from:
> > >
> > > if (!(ep = engOpen("\0")))
> > > {
> > > fprintf(stderr, "\nCan't start MATLAB engine\n");
> > > return EXIT_FAILURE;
> > > }
> > >
> > > has indicated failure almost every time. The
followinf
> may
> > > be related - I have version 2006a installed and
> yesterday
> > > installed and uninstalled and reinstalled version
> 2007b. I
> > > now have both installed. I am running my C program
from
> > > Visual Studio and have watched both versions being
> invoked
> > > (not at the same time) when I execute the code above,
> but I
> > > cannot tell why one version is chosen over the other.
In
> > > any case, the above code now fails every time. There
is
> > > obviously a lot that I do not understand here.
> >
> > Since you refer to Visual Studio, I assume you're on
> Windows. If so, is the
> > correct MATLAB installation registered as per the last
> part of the
> > Description section of the reference page for engOpen?
> >
> >
>
http://www.mathworks.com/access/helpdesk/help/techdoc/index.
> html?/access/helpdesk/help/techdoc/apiref/engopen.html
> >
> > Just to cover the other base, if you're on UNIX, what
> happens when you type
> > "matlab" at a terminal prompt? That's what the
> documentation says engOpen
> > will do in the case you described. Perhaps that will
> offer some additional
> > information about the cause of this problem.
> >
> > If that doesn't work, you may want to contact technical
> support -- they
> > should have some additional diagnostics you can try to
> determine the cause
> > of this behavior.
> >
> > --
> > Steve Lord
> > slord@mathworks.com
> >
> >
>
|