Crash with PA_SetVariableParameter in v11.2

View: New views
2 Messages — Rating Filter:   Alert me  

Crash with PA_SetVariableParameter in v11.2

by Jeffrey Kain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

We have a plug-in that we wrote for ourselves and we found a place where
PA_SetVariableParameter was being passed a '1' for the 4th parameter.
This flag indicates to clear the old data from the destination variable.
For some reason this causes a crash in v11.  Changing the flag to '0'
fixed the issue.

Just FYI - the workaround is easy (we were already clearing the data
manually anyway) but maybe this can be fixed in a future version of 4D.

Jeff


**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/


    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Crash with PA_SetVariableParameter in v11.2

by Mog0 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for this. It sounds exactly the same as the crashing problem  
that I've been having with my plugin. The plugin works perfectly with  
4D 2004.7 but running it in 4D v11.4 causes crashes. I'll go change  
the 4th parameter.

I'm unsure based on the documentation, what exactly does that 4th  
parameter do?
What changes should I make to my code depending on whether I pass 1 or  
0?

Scott

On 23 Jul 2008, at 21:11, Jeffrey Kain wrote:

> Hello,
>
> We have a plug-in that we wrote for ourselves and we found a place  
> where
> PA_SetVariableParameter was being passed a '1' for the 4th parameter.
> This flag indicates to clear the old data from the destination  
> variable.
> For some reason this causes a crash in v11.  Changing the flag to '0'
> fixed the issue.
>
> Just FYI - the workaround is easy (we were already clearing the data
> manually anyway) but maybe this can be fixed in a future version of  
> 4D.
>
> Jeff
>
>
> **********************************************************************
> 4D Plugins hosted by 4D, Inc.                      http://www.4D.com/
>
>
>    Did you know?  The 4D Partner Program now gives you
>    access to Hotfix releases as soon as they are available!
>    To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                      mailto:4D-Plugins-off@...
> ***********************************************************************
>

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************