![]() |
#5 |
Участник
|
Цитата:
Сообщение от TDV
![]() Доброго времени суток,
Удалось решить проблему? Тоже самое появляется. В Job работает нормально, из EP та же ошибка.(запускается через menuitem out) Ошибка при вызове в WinApi::getOSVersion() X++: client static public container getOSVersion() { #define.OSVERSIONINFOSIZE(276) // includes 128 TCHARs DLL dll; DLLFunction dllFunction; Binary binary; ; dll = new DLL(#KernelDLL); dllFunction = new DLLFunction(dll,'GetVersionExW'); binary = new Binary(#OSVERSIONINFOSIZE); binary.dWord(0,#OSVERSIONINFOSIZE); dllFunction.arg(ExtTypes::Pointer); dllFunction.returns(ExtTypes::Byte); dllFunction.call(binary); // здесь валится return [binary.dWord(4),binary.dWord(8),binary.dWord(16)]; } X++: #define.Win98Platform(1) public void makeReportRun(ReportName reportName = this.lastValueElementName()) { Args args; Report report; [B]if (conpeek(WinAPI::getOSVersion(), 3) > #Win98Platform)[/B] { super(reportName); return; } // Running under Windows 98 or prior OS version args = new Args(reportName); if (! reportRun || reportRun.name() != reportName) { args.caller(this); reportRun = SalesPurchReport_RU::newSysReportRun(args); } report = reportRun.report(); report.interactive(false); queryNextUniqueId = report.query().nextUniqueId(); treeQueryVersion = report.query().version(); } Что делать с этим? Как решили проблему? DAX2009RU8 SP2010Sp1 |
|