Metin33
  • Ana sayfa
  • Forumlar
  • Metin2 Development
  • C++ / C# / Python
  • m.fatihagar

    Onaylanmış Üye
    Onaylanmış Üye
    11 Nis 2021
    20
    24
    Çevrimiçi zamanı
    7h 45m
    3
    25
    İstanbul
    Best answers
    0
    Oyuncu
    Metin2
    Warning Sysser Örneği:
    C++:
    ClientManager.cpp: In member function 'void CClientManager::MainLoop()':
    ClientManager.cpp:230:10: warning: deleting object of polymorphic class type 'CItemPriceListTableCache' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
      230 |   delete pCache;


    Çözümü
    *************
    1-Cache.h içine gir.
    2-Arat --> CItemPriceListTableCache(void);
    3-Altına Ekle -->virtual ~CItemPriceListTableCache();
    4-Kaydet Çık.
    5-Cache.cpp içine gir.
    6-Alttaki Kod Bloğunu Arat.
    C++:
    CItemPriceListTableCache::CItemPriceListTableCache()
    {
        m_expireTime = MIN(s_nMinFlushSec, g_iItemPriceListTableCacheFlushSeconds);
    }
    7-Bu kod Bloğunu Altına Ekle.
    C++:
    CItemPriceListTableCache::~CItemPriceListTableCache()
    {
    }
    8-Build al.
     
    Üst