Why Python Exception <class ' gdb appears. Memoryerror ' > Cannot access memory at address question?

Source: Internet
Author: User

Problem Description: Write list ListView to notebook.

In the main function,

Win ==// used to create tab 1

In the Create_page_one function.

struct _add {    *view;     *win;    } ADD; .... ADD adder;..  /* * * Create list */==

G_signal_connect (G_object (button1), "clicked", G_callback (Event_to_add), (Gpointer) &adder); Binding Event Event_to_add

In the Event_to_add function.

//function Prototypes: Event_to_add (Gtkwidget *widget, gpointer data)..... Gtkwidget*view; Gtkwidget*win; View= ((ADD *) data)View;win= ((ADD *) data)win; /** * Create a dialog box*/Dialog= Gtk_dialog_new_with_buttons ("Add New User", Gtk_window (Win), Gtk_dialog_modal, GTK_STOCK_OK, GTK_RESPONSE_OK, Gtk_stock_cancel, Gtk_response_cancel, NULL) ;。。。 /** * Add to List*/Model=Gtk_tree_view_get_model (Gtk_tree_view (view)); Gtk_list_store_append (Gtk_list_store model),&iter); Gtk_list_store_set (Gtk_list_store model),&iter, user_id, user_id, PASSWD, PASSWD, CLASS, Flag, CHOICE, FALSE,-1 ); 。。。 

Why Python Exception <class ' gdb appears. Memoryerror ' > Cannot access memory at address question?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.