Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 1.62 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. maybe someone can see what I'm missing (debug case, C  , function pointer)
  2. void GraphicVisualizationDraw(WidgetVisualization *widget) {
  3.  
  4. }
  5.        
  6. ==8281== Invalid write of size 4
  7. ==8281==    at 0x52D12C7: LCD::WidgetVisualization::WidgetVisualization(LCD::LCDCore*, std::string, Json::Value*, int, int, int) (WidgetVisualization.cpp:72)
  8. ==8281==    by 0x530F0C3: LCD::LCDCore::BuildLayouts() (LCDCore.cpp:342)
  9. ==8281==    by 0x5306A07: LCD::LCDControl::ConfigSetup() (LCDControl.cpp:213)
  10. ==8281==    by 0x53062EC: LCD::LCDControl::Start() (LCDControl.cpp:57)
  11. ==8281==    by 0x52D84E4: (anonymous namespace)::lcdcontrol_init(_VisPluginData*) (actor_lcdcontrol.cpp:115)
  12. ==8281==    by 0x40645FA: visual_plugin_realize (lv_plugin.cpp:207)
  13. ==8281==    by 0x405B1E7: visual_actor_realize (lv_actor.cpp:265)
  14. ==8281==    by 0x404C02B: visual_bin_realize (lv_bin.c:108)
  15. ==8281==    by 0x80507D1: main (lv-tool.cpp:378)
  16.  
  17.  
  18. WidgetVisualization::WidgetVisualization(LCDCore *v, std::string n, Json::Value *section, int row, int col, int layer) : Widget(v, n, section, row, col, layer,
  19.     WIDGET_TYPE_VISUALIZATION | WIDGET_TYPE_RC | WIDGET_TYPE_SPECIAL) {
  20.  
  21.     LCDError("widgetvisualization: layer: %d", layer_);
  22.  
  23.     if(lcd_type_ == LCD_TEXT)
  24.         Draw = TextVisualizationDraw;
  25.     else if(lcd_type_ == LCD_GRAPHIC)
  26.         Draw = GraphicVisualizationDraw;// line 72
  27.     else
  28.         Draw = 0;
  29.        
  30. ==8281== Invalid write of size 4
  31. ==8281==    at 0x52D12C7: LCD::WidgetVisualization::WidgetVisualization(LCD::LCDCore*, std::string, Json::Value*, int, int, int) (WidgetVisualization.cpp:72)
  32. ==8281==    by 0x530F0C3: LCD::LCDCore::BuildLayouts() (LCDCore.cpp:342)