--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> >   pszVarAddr = ppsv->GetVarAddr(pszVarName);
> >   (check to make sure its non-zero)
> >   m_nBufSize = _msize(pszVarAddr);
> > 
> > bombs out in debug mode IN DBGHEAP.C in
> > _msize_dbg(void * pUserData...)
> 
> Did you try compiling your dll in non-debug?  Maybe your dll is 
> calling debug versions of malloc library which are possibly not 
> compatible with the non-debug versions which PPro is using.

Maybe.  I'll try.
 
> > Just realised: I the var named in pszVarName might be set to null
> > string.  Would that explain?
> 
> This should cause getvaraddr to return NULL which I understood you 
> were checking for.

You're right, went back and checked code (I use broadband and access
this group on a machine different than my development machines).
String was non-null.

But, getvaraddr returning NULL for a NULL string is very bad news.
It means getvaraddr isn't a good test of whether a variable has been
declared, so this will cause plugin xxx to throw an incorrect error:

   local myVar
   local result = xxx.serv("myVar")

assuming xxx.serv expects name of a declared var as argument.

> > If you can get _msize to work in your code, could you add a new
> > PPROSERVICES service GetVarSize(argname)?  
 
> I don't want to do any more on 4.4 at this stage, especially if you 
> can get msize to work.

No great urgency.  When you could get to it, maybe GetVarSize(argname)
can return -1 if no such variable has been declared.  Meanwhile
I'll issue dll plugin with workarounds and a bit less safety for
func calls that use BYTE* arguments.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to