003
02.10.2005, 18:23 Uhr
~Marv
Gast
|
Ja, wo is denn meine Glaskugel Hab da was gefunden...
C++: |
void createList() { this->list_Verzeichnis_A = new lySyncListMembers(m_sDirNameA, ""); this->list = new lySyncListMembers(this->m_sDirNameA, this->m_sDirNameB); //this->list->clear(); this->createList(m_sDirNameA); this->list_Verzeichnis_A = this->list; this->list->clear(); // System::GC::Collect(); this->list_Verzeichnis_B = new lySyncListMembers(m_sDirNameB, ""); this->list = new lySyncListMembers(this->m_sDirNameA, this->m_sDirNameB); //this->list->clear(); this->createList(m_sDirNameB); this->list_Verzeichnis_B = this->list; this->list->clear(); // System::GC::Collect(); this->list_DiffertentContent = this->createList(list_Verzeichnis_A, list_Verzeichnis_B); // System::GC::Collect();
}
|
Probs macht: this->list->clear(); Wenn ich list->clear() so stehen lasse sind auch die Inhalte von list_Verzeichnis_A usw. weg. Wie war das mit Call by Reference und Call by Value ? |