C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problème avec un destructeur

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Bruno.Barral
Guest





PostPosted: Sun Feb 01, 2004 10:42 am    Post subject: Problème avec un destructeur Reply with quote



Bonjour,

J'ai développé une application en VC++ 6.0 avec les MFC sous Windows ME,
mais qui fonctionne sous n'importe quel Windows 9x et supérieurs.

J'ai créé les classes suivantes :

class TheOff
{
public :
CString OName;
};

class TheDem
{
public :
CString DName;
};



class Sav
{
public :
long IDSav;
CString name;
TheOff lof;
TheDem led;
};

Pour créer un objet Sav, je fais :

mysav = new Sav;

Pour détruire un objet Sav, je fais :

delete mysav;

(Je n'ai pas défini de destructeur à moi dans la classe Sav).

Or, dans une fonction où je détruis beaucoup d'objets de type Sav, j'ai un
plantage avec le message suivant :

Sav::`scalar deleting destructor'(unsigned int 1) + 37 bytes

Et je ne comprends pas le sens de ce message ...

Quelqu'un a une idée ?

Merci !



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.