Index: /issm/trunk/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp
===================================================================
--- /issm/trunk/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp	(revision 4409)
+++ /issm/trunk/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp	(revision 4410)
@@ -23,10 +23,10 @@
 	parameters->FindParam(&analysis_type,AnalysisTypeEnum);
 	
-	//_printf_("      Configuring elements...\n");
+	_printf_("      Configuring elements...\n");
 	for (i=0;i<elements->Size();i++){
 		element=(Element*)elements->GetObjectByOffset(i);
 		element->Configure(elements,loads,nodes,materials,parameters);
 	}
-	//_printf_("      Configuring loads...\n");
+	_printf_("      Configuring loads...\n");
 	for (i=0;i<loads->Size();i++){
 		load=(Load*)loads->GetObjectByOffset(i);
@@ -35,5 +35,5 @@
 		}
 	}
-	//_printf_("      Configuring nodes...\n");
+	_printf_("      Configuring nodes...\n");
 	for (i=0;i<nodes->Size();i++){
 		node=(Node*)nodes->GetObjectByOffset(i);
Index: /issm/trunk/src/c/objects/Elements/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4409)
+++ /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4410)
@@ -602,5 +602,5 @@
 	/*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective 
 	 * datasets, using internal ids and offsets hidden in hooks: */
-	this->hnodes[analysis_counter]->configure(nodesin);
+	if (this->hnodes[analysis_counter]) this->hnodes[analysis_counter]->configure(nodesin);
 	this->hmatice->configure(materialsin);
 	this->hmatpar->configure(materialsin);
@@ -608,5 +608,6 @@
 
 	/*Now, go pick up the objects inside the hooks: */
-	this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
+	if (this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
+	else this->nodes=NULL;
 	this->matice=(Matice*)this->hmatice->delivers();
 	this->matpar=(Matpar*)this->hmatpar->delivers();
Index: /issm/trunk/src/c/objects/Elements/PentaHook.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/PentaHook.cpp	(revision 4409)
+++ /issm/trunk/src/c/objects/Elements/PentaHook.cpp	(revision 4410)
@@ -53,4 +53,9 @@
 	this->hneighbors=NULL; 
 
+	//Initialize hnodes as NULL
+	for(int i=0;i<this->numanalyses;i++){
+		this->hnodes[i]=NULL;
+	}
+
 }
 /*}}}*/
Index: /issm/trunk/src/c/objects/Elements/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 4409)
+++ /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 4410)
@@ -487,10 +487,11 @@
 	/*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective 
 	 * datasets, using internal ids and offsets hidden in hooks: */
-	this->hnodes[analysis_counter]->configure(nodesin);
+	if(this->hnodes[analysis_counter]) this->hnodes[analysis_counter]->configure(nodesin);
 	this->hmatice->configure(materialsin);
 	this->hmatpar->configure(materialsin);
 
 	/*Now, go pick up the objects inside the hooks: */
-	this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
+	if(this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp();
+	else this->nodes=NULL;
 	this->matice=(Matice*)this->hmatice->delivers();
 	this->matpar=(Matpar*)this->hmatpar->delivers();
Index: /issm/trunk/src/c/objects/Elements/TriaHook.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/TriaHook.cpp	(revision 4409)
+++ /issm/trunk/src/c/objects/Elements/TriaHook.cpp	(revision 4410)
@@ -50,7 +50,7 @@
 	this->hmatpar=new Hook(&matpar_id,1);
 
-	//Initialize hnodes
+	//Initialize hnodes as NULL
 	for(int i=0;i<this->numanalyses;i++){
-		this->hnodes[i]=new Hook();
+		this->hnodes[i]=NULL;
 	}
 
@@ -60,8 +60,5 @@
 void TriaHook::SetHookNodes(int* node_ids,int analysis_counter){
 
-	/*Delete existing Hook (empty)*/
-	delete this->hnodes[analysis_counter];
-
-	/*Replace by new Hook*/
+	/*initialize hook*/
 	this->hnodes[analysis_counter]=new Hook(node_ids,3);
 }
