specified class size for type `CatType' is smaller than the parent type's `GObject
来源:互联网 发布:seo外链招聘 编辑:程序博客网 时间:2024/05/13 21:27
编写了一个小小的Gobject程序,运行是出现错误:
(process:23258): GLib-GObject-WARNING **: specified class size for type `CatType' is smaller than the parent type's `GObject' class size
type = 0-----------------------------------g_type_register_static的返回为0
(process:23258): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
查了好久,突然发现原来错在:
struct _Cat
{
GTypeInstance parent;
.......................
};
struct _CatClass
{
GTypeClass parent_class;
..........................
};
分别改成是:
struct _Cat
{
GObject parent;
.......................
};
struct _CatClass
{
GObjectClass parent_class;
..........................
};
就好了
- specified class size for type `CatType' is smaller than the parent type's `GObject
- Data size bigger than max size for this type: 5829
- Caused by No result type specified for result named 'loginsuc', perhaps the parent package does not
- Caused by: No result type specified for result named 'success', perhaps the parent package does not
- The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class<
- New Memory allocation 1046759 bytes is smaller than the minimum allocation size of 1048576 bytes.
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the问题
- he method get(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments
- The method newJob(Class<QuartzTest>) is undefined for the type Test
- method is ambiguous for the type
- method is ambiguous for the type
- The operator == is undefined for the argument type(s) int, null
- The operator || is undefined for the argument type(s) int, int
- MySQL出现The maximum row size for the used table type, not counting BLOBs, is 8126.错误
- 【填坑】The hierarchy of the type class is inconsistent
- 关于The method setMapperClass(Class<? extends Mapper>) in the type Job is not applicable for the argum
- mysql 报错:Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65
- 转 mysql安全设置
- 自我评价的英文对照
- 严冬欲御寒增强体质 首当养肾
- Failed to connect to remote VM
- openFileDialog的使用
- specified class size for type `CatType' is smaller than the parent type's `GObject
- 多进程 socket exit的问题
- 处理字串的小程序
- 如何理解C run-time library (C运行时库)
- scala delimited continuation and callcc
- 动态性能视图:V$FILESTAT
- new 修饰符是起什么作用?
- oracle10g初始化参数说明
- podcast 格式 例子