Urbi SDK Remote for C++  2.7.5
ultest.cc
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009-2011, Gostai S.A.S.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  */
00010 
00011 #include <urbi/uobject.hh>
00012 
00013 class ultest : public urbi::UObject
00014 {
00015 public:
00016   ultest(const std::string& name)
00017     : urbi::UObject(name)
00018   {
00019     UBindFunction(ultest, f);
00020   }
00021 
00022   int f()
00023   {
00024     // Problem here.
00025     new urbi::UList();
00026     return 0;
00027   }
00028 
00029 };
00030 
00031 UStart(ultest);