[prev in list] [next in list] [prev in thread] [next in thread] 

List:       orocos-users
Subject:    [Orocos-users] I used a bad way ?
From:       peter.soetens () fmtc ! be (Peter Soetens)
Date:       2009-01-30 13:41:35
Message-ID: 200901301441.36054.peter.soetens () fmtc ! be
[Download RAW message or body]

On Friday 30 January 2009 14:37:04 nicolas.mabire at basystemes.fr wrote:
> My code was :
> <code>
> ScriptingAccess* sa;
> res = sa->loadPrograms("example.ops");
> </code>

'sa' is not initialised and points to no object ('a dangling pointer'). It is 
bound to crash !

Peter

-- 
Peter Soetens -- FMTC -- <http://www.fmtc.be>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic