Eagletalon 34 Junior Poster in Training

Hi there everyone,

I really hope someone can help me, I am working with Visual C++ with QT libraries and using... well... something that represents MVC (long story)... now I need to pass a const QString& from my 1 controller class to the model of another class...

When doing so I get an access violation app crash... I have checked the variable to be passed just before the function call and also entered a message to be displayed first thing in the function being called... the value is available and displays 100%, but before the next debug message shows the app crashes... Anyone with any advice as to why this could happen or how to fix it?


Sending:

if(NoFaultFound){

		qDebug() << "Executes" << endl;
		system("pause");

		for(int k = 0; k < ResourceNumbersToUpdateList.count(); k++){

			qDebug() << "Value check: " << ResourceNumbersToUpdateList.at(k) << endl;
			system("pause");

			ResourceTWObject->DataObject->updateOperation(ResourceNumbersToUpdateList.at(k));

			qDebug() << "Does not reach" << endl;
			system("pause");
		}
	}

Receiving:

void ResourceContainerCLS::updateOperation(const QString& ResourceCode){

	qDebug() << "does not execute" << endl;
	system("pause");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.