Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: MATLAB 2012a: loadlibrary notempdir obliterates a local function given for the prototype
Replies: 1   Last Post: May 2, 2013 3:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kzelechowski@e3tech.local

Posts: 27
Registered: 4/30/13
MATLAB 2012a: loadlibrary notempdir obliterates a local function given for the prototype
Posted: May 2, 2013 6:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Steps to reproduce:

function go
delete kernel32_proto.m
loadlibrary ('kernel32', @kernel32_proto, 'notempdir')

function [m,s,e,t] = kernel32_proto
zonk
return

Actual result:
Undefined function or variable 'kernel32_proto'.

Expected result:
Undefined function or variable 'zonk'.

Possible culprit:
line 101:
switch (str)

case 'notempdir'

usetempdir=false;

cleanupTempFiles=false;

genMfile=true;

line 290:

if genMfile && isempty(mfile_name)
protofunction=genvarname([classname '_proto']);
(and the value passed in the header parameter gets obliterated)

Note that the comment in line 289 says that the code applies to mode 2,
whereas this call runs in mode 3.









Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.