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!
ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25101] Wed, 10 February 2010 14:13 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello,

I found a strange error message:
index.php?t=getfile&id=2242&private=0

is this bug?

Regards, Ion Lupascu(tojocky)
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25108 is a reply to message #25101] Wed, 10 February 2010 21:09 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
I don't know if it is related but I was getting an error similar to this. I do most of my splitting and parsing with individual char/int.
    cc = ln.GetCount();
    for ( int i = 0; i < cc; i++ ){
    	ic = (ln[i]); ch = ic;

Somewhere before, or after this if String ln == ""; and I passed it to a function while debugging it would throw an error similar to this and pull up String.h

if (ln != "") {

This was a fix that worked for my code.
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25235 is a reply to message #25101] Mon, 15 February 2010 12:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
tojocky wrote on Wed, 10 February 2010 08:13

Hello,

I found a strange error message:
index.php?t=getfile&id=2242&private=0

is this bug?

Regards, Ion Lupascu(tojocky)


Yes, but not in theide, but in the code being debugged.

Message is not strange at all - debugger code has crashed, dereferencing NULL pointer.

Then, the bug can be in your code or in U++. Send a testcase...

Mirek
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25245 is a reply to message #25235] Mon, 15 February 2010 14:19 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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?

Regards, Ion Lupascu (tojocky)

luzr wrote on Mon, 15 February 2010 13:20



Yes, but not in theide, but in the code being debugged.

Message is not strange at all - debugger code has crashed, dereferencing NULL pointer.

Then, the bug can be in your code or in U++. Send a testcase...

Mirek

Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25248 is a reply to message #25245] Mon, 15 February 2010 15:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
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
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 next 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


Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25302 is a reply to message #25251] Tue, 16 February 2010 20:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Do you use GuiLock when changing CtrlLogText from the other thread?!

Mirek
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25321 is a reply to message #25302] Wed, 17 February 2010 08:37 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

As you can see I didn't use GuiLock.
Is this correct?:
void OracleXmlToXslConverter::ConvertXmlWorksheetToOracleXslXML(Gate3<int64, int64, String>& p_progress){
	GuiLock __;
	String v_error;
	ConvertXmlToXsl(source_file_address, v_error, p_progress);
	AtomicWrite(converting, 0);
	CtrlLogText.Refresh();
}


Regards, Ion Lupascu (tojocky)

luzr wrote on Tue, 16 February 2010 21:50

Do you use GuiLock when changing CtrlLogText from the other thread?!

Mirek

Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25372 is a reply to message #25321] Fri, 19 February 2010 16:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
tojocky wrote on Wed, 17 February 2010 02:37

As you can see I didn't use GuiLock.



I cannot see, because I do not see what is done in ConvertXmlToXsl... Smile

Quote:


Is this correct?:
void OracleXmlToXslConverter::ConvertXmlWorksheetToOracleXslXML(Gate3<int64, int64, String>& p_progress){
	GuiLock __;
	String v_error;
	ConvertXmlToXsl(source_file_address, v_error, p_progress);
	AtomicWrite(converting, 0);
	CtrlLogText.Refresh();
}




Yes. Does it work now?

Mirek
Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25374 is a reply to message #25372] Fri, 19 February 2010 20:44 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Yes, Now it work for me.
Thank you Mirek!

I can post my package if somebody need this!

I made an MS Excel template converter to Oracle XSL-XML BI Publisher! It gives possibility to draw layout template in MS Excel and after that save file in XML Spreadsheet.

Regards, Ion Lupascu (tojocky).

luzr wrote on Fri, 19 February 2010 17:49

tojocky wrote on Wed, 17 February 2010 02:37

As you can see I didn't use GuiLock.



I cannot see, because I do not see what is done in ConvertXmlToXsl... Smile

Quote:


Is this correct?:
void OracleXmlToXslConverter::ConvertXmlWorksheetToOracleXslXML(Gate3<int64, int64, String>& p_progress){
	GuiLock __;
	String v_error;
	ConvertXmlToXsl(source_file_address, v_error, p_progress);
	AtomicWrite(converting, 0);
	CtrlLogText.Refresh();
}




Yes. Does it work now?

Mirek

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


Current Time: Mon Apr 29 15:12:12 CEST 2024

Total time taken to generate the page: 0.02724 seconds