ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
pure virtual function error

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  09:20:26  3 April 2012
profilee-mailreply Message URLTo the Top
Nuor
Senior Resident
 

 
On forum: 03/10/2009
Messages: 735
pure virtual function error


			local size = self.list_box:GetSize()
			if size > 0 then
				for i=size-1,0,-1 do	self.list_box:RemoveItem(i) end
		--		self.list_box:RemoveAll()	-- pure virtual function error
			end



Using the above snippet of code if I use the commented line I'll get an error [error]Description : pure virtual function call

the line above it does the same thing, is MUCH slower but does not generate the same error. The error is completely predictable and makes no apparent sense. In most circumstances the RemoveAll() does not cause the error but in one particular case it always does. I have a nil check on self.list_box but the problem seems to be that self.list_box becomes nil while RemoveAll() is processing.

Is this a known issue with this function?
  13:23:23  3 April 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
 

Message edited by:
Lijenstina
04/03/2012 13:23:43
Messages: 1902
Got the same error when i called the teleport without adding the braces for the class.


atlas_extras.atlas:teleport_x16()


That code will result in LUA error: pure virtual function called

However this code works without errors.


atlas_extras.atlas():teleport_x16()

  21:33:29  3 April 2012
profilee-mailreply Message URLTo the Top
Nuor
Senior Resident
 

 
On forum: 03/10/2009
Messages: 735
I found the problem. I have a conflict with a Update routine.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.