Thread View: comp.os.msdos.programmer
1 messages
1 total messages
Started by Dave Martin
Thu, 28 Jan 1993 15:10
BC++ 3.0 vs 3.1 bug fixed?
Author: Dave Martin
Date: Thu, 28 Jan 1993 15:10
Date: Thu, 28 Jan 1993 15:10
36 lines
1257 bytes
1257 bytes
I am having a problem in BC++3.0 with virtual functions.
It was compiled huge model with and without optimization, and various
other flags is dos mode.
Basically, the wrong function is being invoked.
my program is structured like this:
class base
{
..
virtual somefunc()
};
class a : public class base
{
..
virtual unrelatedfunc()
};
class b: public class base,public class someotherbase
{
..
virtual somefunc()
};
b someb;
someb->somefunc() actually calls unrelatedfunc in class a.
I verified this with the debugger, and by putting output statements
just before the call to someb->somefunc(), and in unrelatedfunc().
needless to say, the program goes nuts because the context is totally
wrong for unrelatedfunc().
Is this a known problem? is it fixed in 3.1?
dave@csulx.weber.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads