Home » U++ Library support » U++ Core » ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING!
|
|
|
|
|
|
| Re: ERROR: EXCEPTION_ACCESS_VIOLATION IN CORE ON DEBUGGING! [message #25245 is a reply to message #25235] |
Mon, 15 February 2010 14: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?
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 #25251 is a reply to message #25248] |
Mon, 15 February 2010 16:10   |
|
|
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 #25321 is a reply to message #25302] |
Wed, 17 February 2010 08:37   |
|
|
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 #25374 is a reply to message #25372] |
Fri, 19 February 2010 20:44  |
|
|
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... 
| 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
|
|
|
|
|
Goto Forum:
Current Time: Sun Oct 26 11:43:09 CET 2025
Total time taken to generate the page: 0.03739 seconds
|