Crash in CDockingPorts::UpdateAll

Bug reports for the stable versions go here.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

I'm trying to use GetGlobalDockScreen to override a dockscreen of a station, but I get a crash error related to docking ports ?

this code:

Code: Select all

<GetGlobalDockScreen>
         (switch
         	 ;if we are not docking at a stSistersOfDomina , we do nothing
         	 (not (eq (objGetType gSource) &stSistersOfDomina;))
         	 Nil
         	 
         	 ;otherwise we show the new dockscreen with medium priority.
         	 (eq (objGetType gSource) &stSistersOfDomina;)
         	 (block Nil
         	 	 (list &dsRefuseContamination; 10)
         	 	 (printTo 'log "GetGlobalDockScreen FIRING DOCKSCREEN!")
         	 )
         	 
         	 Nil
         	 
         )
      </GetGlobalDockScreen>
gives a crash
11/23/2013 22:40:30 GetGlobalDockScreen FIRING DOCKSCREEN!
11/23/2013 22:40:30 Crash in CDockingPorts::UpdateAll
11/23/2013 22:40:30 Unable to continue due to program error.

program state: OnAnimate
program state: updating object
obj class: CStation
obj name: Sisters of Domina
obj pointer: e0832a0
m_pBase: none
m_pTarget: none
m_Subordinates[0]: c4f21b0 Ronin/A-class gunship (CShip)
m_Subordinates[1]: c4f2338 Wolfen-class gunship (CShip)
m_DockingPorts[0]: c4f2648 freighter Heseltine (CShip)
m_DockingPorts[2]: c4f2338 Wolfen-class gunship (CShip)
m_DockingPorts[3]: c4f24c0 Borer-class gunship (CShip)
m_DockingPorts[4]: c4f27d0 freighter Jovian Cargo (CShip)
m_DockingPorts[7]: c4f21b0 Ronin/A-class gunship (CShip)
game state: in game
am I doing something wrong or is a problem with GetGlobalDockScreen ?
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Could you send me an extension (and instruction) to reproduce the problem? I've been tracking this bug down but haven't been able to reproduce it.

Thanks!
Post Reply