Hi,
Attached is a patch that let last error code return from SablotRunProcessor
instead of always returns E_OK as a call to processor->cleanupAfterRun() clears
the pending errorcode.
Regards,
Steven
-------------------- Begin Cut below this line here ---------------------------
--- sablot.cpp Wed Jul 19 20:42:36 2000
+++ sablot.cpp.new Thu Jul 20 11:16:53 2000
@@ -146,10 +146,10 @@
}
if (problem || P(processor_) -> open(sheetURI,inputURI,resultURI))
{
+ int code = P(processor_) -> situation -> getError();
P(processor_) -> cleanupAfterRun();
P(processor_) -> freeResultArgs();
// cdelete(proc);
- int code = P(processor_) -> situation -> getError();
P(processor_) -> situation->clear();
return code;
}
---------------------- End Cut Before this line here --------------------------
-------------------------------------------------
This mail sent through IMP: pc245.das.com.hk
--- sablot.cpp Wed Jul 19 20:42:36 2000
+++ sablot.cpp.new Thu Jul 20 11:16:53 2000
@@ -146,10 +146,10 @@
}
if (problem || P(processor_) -> open(sheetURI,inputURI,resultURI))
{
+ int code = P(processor_) -> situation -> getError();
P(processor_) -> cleanupAfterRun();
P(processor_) -> freeResultArgs();
// cdelete(proc);
- int code = P(processor_) -> situation -> getError();
P(processor_) -> situation->clear();
return code;
}