wxMac help: KERN_INVALID_ADDRESS at address: 0x42a40008 in wxListBase::GetCount (this=0x42a40000) at /netopt/ncbi_tools/wxMac-2.6.3/include/wx-2.6/wx/list.h:477

Stefan Csomor csomor at advancedconcepts.ch
Wed Oct 18 21:59:12 PDT 2006


Hi
 
the this pointer looks suspicious (0x42a4000), as if it assumes a
outdated member variable layout somewhere. Try a clean rebuild of
everything.
 
Best,
 
Stefan


  _____  

	From: Xu, Ming (NIH/NLM/NCBI) [F] [mailto:mxu at ncbi.nlm.nih.gov] 
	Sent: Dienstag, 17. Oktober 2006 21:40
	To: wx-users at lists.wxwindows.org
	Subject: wxMac help: KERN_INVALID_ADDRESS at address: 0x42a40008
in wxListBase::GetCount (this=0x42a40000) at
/netopt/ncbi_tools/wxMac-2.6.3/include/wx-2.6/wx/list.h:477
	
	

	Hello.

	 

	I have an app that reads xml files using an in-house tool and
views cached data with wxWidget. It run fine on wxWidget/wxMac 6.3.0
fine before.  Recently I made some change in the source codes on reading
data , compiling is fine but the app crashed after a xml file have been
read and loaded. 

	 

	Below is error msg from cmd line gdb.

	 

	
========================================================================
==============

	program received signal EXC_BAD_ACCESS, Could not access memory.

	Reason: KERN_INVALID_ADDRESS at address: 0x42a40008

	0x0088ffe8 in wxListBase::GetCount (this=0x42a40000) at
/netopt/ncbi_tools/wxMac-2.6.3/include/wx-2.6/wx/list.h:477

	477         size_t GetCount() const { return m_count; }

	 

	(gdb) where

	#0  0x0088ffe8 in wxListBase::GetCount (this=0x42a40000) at
/netopt/ncbi_tools/wxMac-2.6.3/include/wx-2.6/wx/list.h:477

	#1  0x00ba2f90 in wxObjectList::size (this=0x42a40000) at
../src/common/event.cpp:1128

	#2  0x004e0554 in wxEvtHandler::ProcessPendingEvents
(this=0x11edba70) at ../src/common/event.cpp:1141

	#3  0x004a4d64 in wxAppConsole::ProcessPendingEvents
(this=0xd6377f0) at ../src/common/appbase.cpp:296

	#4  0x0060eeec in wxMacProcessNotifierAndPendingEvents () at
../src/mac/carbon/macnotfy.cpp:135

	#5  0x005619b0 in wxApp::MacHandleOneEvent (this=0xd6377f0,
evr=0xd6984e0) at ../src/mac/carbon/app.cpp:1273

	#6  0x00561ad0 in wxApp::MacDoOneEvent (this=0xd6377f0) at
../src/mac/carbon/app.cpp:1248

	#7  0x00561b84 in wxApp::MainLoop (this=0xd6377f0) at
../src/mac/carbon/app.cpp:1093

	#8  0x0057f764 in wxAppBase::OnRun (this=0xd6377f0) at
../src/common/appcmn.cpp:340

	#9  0x004a4380 in wxEntry (argc=@0xbffff198, argv=0xbffff234) at
../src/common/init.cpp:439

	#10 0x00002794 in main (argc=1, argv=0xbffff234) at
parser.cpp:161

	(gdb) 

	 

	IMPLEMENT_APP(MyApp)  at parser.cpp:161

	 

	 

	 

	 

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061019/17748222/attachment.htm


More information about the wx-users mailing list