Thread View: comp.windows.ms.programmer
1 messages
1 total messages
Started by Arto Kujala
Mon, 14 Sep 1992 12:29
Destructor problem in a DLL
Author: Arto Kujala
Date: Mon, 14 Sep 1992 12:29
Date: Mon, 14 Sep 1992 12:29
24 lines
1216 bytes
1216 bytes
I am programming a windows DLL with Borland C++, OWL and Classlibs.
The DLL is used from a VB application. When closing the DLL, there is
the following problem:
I have a class, that can not use its own data in its own destructor
without a runtime error ("An error has occured..." and sometimes
a General Protection Fault).
For example, this class (Drawings) has a private
variable xSize:
class Drawings {
private:
int xSize;
...
If I try to copy xSize (int theSize = xSize) in destructor of Drawings,
a "An error has occured..." dialog box is given. All other variables
of the class seem to be in same state.
What could be wrong in my code? I noticed
that WEP is called before the destructor (my WEP does nothing).
--Arto
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