Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING!
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25251 is a reply to message #25248] Mon, 15 February 2010 16:10 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Mirek,

I found the problem:
From the main thread and the second thread run refresh ctrl. If resfresh take some time(log ctrl is bigger) than it conflicts!

I have this situation:
From main thread i start a thread for processing file. Like this:
	
	AtomicWrite(converting, 1);
	stop_process = false;
	//SetTimeCallback(-200, THISBACK(UpdateProgress), TIMEID_PROGRESS);
	Thread().Run(THISBACK1(ConvertXmlWorksheetToOracleXslXML, THISBACK(CheckCancel)));
	
	while(AtomicRead(converting)) {
		ProcessEvents();
		GuiSleep(300);
	}
	return stop_process;
}



methods convert file and check cancel like this:
void OracleXmlToXslConverter::ConvertXmlWorksheetToOracleXslXML(Gate3<int64, int64, String>& p_progress){
	String v_error;
	ConvertXmlToXsl(source_file_address, v_error, p_progress);
	AtomicWrite(converting, 0);
}

void OracleXmlToXslConverter::ConvertXmlWorksheetToOracleXslXML(Gate3<int64, int64, String>& p_progress){
	String v_error;
	ConvertXmlToXsl(source_file_address, v_error, p_progress);
	AtomicWrite(converting, 0);
==>>HERE	CtrlLogText.Refresh();
}


function "ConvertXmlToXsl" process file and return log!

If I comment "CtrlLogText.Refresh();" then all works fine!
I can upload this package if is need!

My function converts MS XML Spreadsheet intro XSL-XML layout template for Oracle E-Business Suite XML publisher.

Best Regards, Ion Lupascu (tojocky)

luzr wrote on Mon, 15 February 2010 16:10

tojocky wrote on Mon, 15 February 2010 08:19

Mirek,

Thank you for reply!

I used RichTextCtrl for show log. If RichTextCtrl data (text) increase more than x bytes size then program prompt error!
Is any limitation for String or RichTextCtrl data?



2GB for String. Hard to say what is RichText limit... but I think at least 200M of characters (depends on formatting).

I think RichTextCtrl (and String) are quite tested by time. But I can fix your problem if I get a testcase:)

Mirek


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Defs.h minmax() change/fix
Next Topic: Loss of digits in double Xmlize
Goto Forum:
  


Current Time: Thu May 08 04:33:35 CEST 2025

Total time taken to generate the page: 0.05081 seconds