Author Topic: Pure Virtual Function Call?  (Read 1634 times)

0 Members and 1 Guest are viewing this topic.

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Pure Virtual Function Call?
Has anyone else ever gotten this error? It's an unclickable error box (essentially a CTD) that I'm getting with various builds (so I'm fairly sure it's not build related) whenever I click commit from the briefing screen or when I look at certain ships in the techroom (So far a couple of TI ships and the Alastor, though this is still very preliminary - there could be more, or it could be intermittend and unrelated to the specific ships.

Basically just wondering if anyone else has had this, and how/if they fixed it? I'm running XP with a 9500 pro and first encountered the error on 3.6.9. I've tried basics like rebooting, varying the build, a clean data directory etc. but nothing too specific. Any ideas?
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: Pure Virtual Function Call?
a purely virtual function is defined as follows

Code: [Select]
class example
{
         virtual bool doStuff()=0;
}

it's for defining an interface that has be to implemented by children classes as such

Code: [Select]
class example2: public example
{
        virtual bool doStuff() { cout << "I pittah da foo!"; }
}

a "pure virtual function call" runtime error occurs when the instantiated class does not implement it's version of the purely virtual function in the defined interface parent class - so it's vtable contains a null functor which he runtime detects and raises a fatal error (null pointer access)
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Pure Virtual Function Call?
Interesting. I was consistently getting the problem with one fighter until I replaced its pcx maps with tgas. Now, it works, in the tech room at least.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: Pure Virtual Function Call?
the fact that FSO has no virtual functions that I am aware of only makes this more mysterious. though I suppose the error might show up when a null function pointer was called, which FSO DOES use.

and I can't think of a situation were a pure virtual function call could make it to runtime, if you try to instantiate a class with an undefined virtual function it'll give you a syntax error.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Pure Virtual Function Call?
:(

Bugger. Have been working all week, so no time for FS2 - was hoping someone would have some kind of an idea by now. Oh well - reformat in a week or so, so I suppose that will have to be the next step.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp