 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
大苯蛋
註冊時間: 2004-04-18 文章: 9 來自: 桃園
第 1 樓
|
發表於: 星期日 四月 18, 2004 11:19 am 文章主題: 我用VFP6.0寫的程式到別台電腦執行印表會當機(Windows 訊息為 VM |
|
|
平台為 Windows 98 SE
在我自己的電腦執行很正常,到其他電腦就會當機並出現 VMCPD(01)+00000360的
Windows系統錯誤訊息
印表程式是使用 Report 指令 _________________ 我用VFP6.0寫一個程式在我的電腦上印表都沒問題,但是到別人的電腦執行程式印表後就會當機,Windows錯誤碼
VMCPD(01)+00000360請各位高手救救我吧
(平台為Windows 98 SE,印表機測試正常,用word測試
過) |
|
回頂端 |
|
 |
大苯蛋
註冊時間: 2004-04-18 文章: 9 來自: 桃園
第 2 樓
|
發表於: 星期二 四月 20, 2004 2:43 pm 文章主題: |
|
|
程式已經編譯為.EXE
平台為 Windows 98 SE
我測試的結果很奇怪,如下
Epson PHOTO 700 (LPT1) 沒問題
Epson COLOR 600 (LPT1) 要在印表前加入 set pdsetup to 才可以
Fujisitu DL3600 (LPT1) 沒問題
Lexmark X1100 (USB) 只要印完就當,出現Wndows錯誤訊息VMCPD(01)+
00000360
有人可以救救我嗎
拜託 ! 拜託 _________________ 我用VFP6.0寫一個程式在我的電腦上印表都沒問題,但是到別人的電腦執行程式印表後就會當機,Windows錯誤碼
VMCPD(01)+00000360請各位高手救救我吧
(平台為Windows 98 SE,印表機測試正常,用word測試
過) |
|
回頂端 |
|
 |
syntech
註冊時間: 2003-05-16 文章: 4249 來自: Taipei,Taiwan
第 3 樓
|
發表於: 星期二 四月 20, 2004 2:53 pm 文章主題: |
|
|
應該是這個問題吧. 我遇到 全錄(xeror) 的雷射印表機 部分型號也會
=======================
Knowledge Base
FIX: Divide by Zero Creates Err with Third-Party Print DriversPSS ID Number: 183522
Article Last Modified on 6/16/1999
--------------------------------------------------------------------------------
The information in this article applies to:
Microsoft Visual FoxPro for Windows 5.0
Microsoft Visual FoxPro for Windows 5.0a
Microsoft Visual FoxPro for Windows 6.0
--------------------------------------------------------------------------------
This article was previously published under Q183522
SYMPTOMS
If certain third-party printer or fax drivers are loaded when one of several commands, which invoke printer driver routines are used, and followed by division by zero, Visual FoxPro 5.0 or 5.0a terminates with the following error:
This program has performed and illegal operation and will be shut down.
If the problem persists, contact the program vendor.
When you click the Details button, the following information displays:
VFP caused an exception 10H in module VFP.EXE at <address>.
Under similar circumstances, Visual FoxPro 6.0 may hang or cause Windows 95 or Windows 98 to display a blue screen error similar to the following:
A fatal exception 0D has occurred at 0028:c0038f07 in VXD VMCPD(01) + 00002DB. The current application will be terminated.
* Press any key to terminate the current application.
* Press CTRL+ALT+DEL again to restart your computer. You will lose
any unsaved information in all applications.
These errors can occur during report printing, report preview, or issuing one of several other commands followed by a BROWSE with the KEY clause. This error may also occur randomly. Please see the RESOLUTION section for more scenarios that can cause the errors.
CAUSE
Visual FoxPro sets the numeric coprocessor to handle exceptions in hardware. The printer driver routines change this numeric coprocessor setting so that coprocessor exception handling takes place in software, but fails to restore the original setting when the printer driver routines have completed. When a subsequent numeric coprocessor exception occurs in Visual FoxPro (division by zero, for instance), the numeric coprocessor expects the exception to be handled in software. Visual FoxPro is not able to do this, and an exception error, crash or hang occurs.
RESOLUTION
Here are three ways you can work around this error:
Use a printer driver supplied with Windows 95. -or-
Disable the numeric coprocessor through Control Panel. Open Control Panel and double-click the System icon. In the System Properties dialog box, select the Device Manager tab. Scroll down the list and expand the System Devices listing. Double-click Numeric Data Processor and select the Settings tab. Make sure the option button "Never use the numeric data processor" is selected.
NOTE: This change may result in the following error messages on reboot:
A fatal exception 0D has occurred at 0028:c0038f07 in VXD VMCPD(01) + 00002DB. The current application will be terminated. * Press any key to terminate the current application. * Press CTRL+ALT+DEL again to restart your computer. You will lose any unsaved information in all applications.
If this happens, restart in safe mode.
Enable the numeric coprocessor through the Control Panel. Open Control Panel and double-click the System icon. In the System Properties dialog box, select the Device Manager tab. Scroll down the list and expand the System Devices listing. Double-click Numeric Data Processor and select the Settings tab. Make sure the option button "Always use the numeric data processor" is selected. After restarting the computer, the preceding error is gone; however, either item 1 or item 3 is required to resolve the 10h error. -or-
Use the _fpreset function in the Microsoft Visual C++ run-time DLL to reset the numeric coprocessor. This is demonstrated in the following code:
*-- Code begins here
DECLARE _fpreset IN msvcrt20.dll
=_fpreset()
*-- Code ends here
This can be implemented within an application by adding this to the beginning of your main program:
DECLARE _fpreset IN msvcrt20.dll
The DECLARE statement only needs to be made once. You should use the call to _fpreset() immediately after using any of the following functions or commands:
GETPRINTER()
REPORT FORM ... TO PRINTER
REPORT FORM ... PREVIEW
SET( "Printer", 2)
SET( "Printer", 3)
SET PRINTER TO NAME <printer name>
SYS(1037)
You should also call _fpreset() after calling File/Page Setup from the Visual FoxPro menu, or after clicking the "Print One Copy" button on the FoxPro Standard toolbar.
It may also be necessary to add a call to _fpreset() to Dataenvironment BeforeOpenTables and Destroy methods of each report. Under some circumstances, you may also need to add _fpreset() calls to the end of the Load and Destroy methods of forms, especially in, but not limited to, custom forms from which your application does printing.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
MORE INFORMATION
On a Windows 95 computer, install the Hewlett-Packard 6.0 printer driver.
The Hewlett-Packard 6.0 printer does not have to be physically installed on the computer; just the print driver is needed.
Run the following code:
*-- Code begins here.
=GETPRINTER() && Select the HP6 printer.
m1 = 9/0 && Any division by zero will work.
*-- Code ends here.
Alternatively, create a report, add a text field and set the expression to "m1/m2" without the quotes, or set the expression to 9/0 and then, click OK. Next, preview the report.
Additional query words: kbvfp600fix kbdse LaserJet LJ Lexmark
Keywords: kbbug kbvfp600fix kbVS600sp3fix KB183522
Technology: kbAudDeveloper kbVFP500 kbVFP500a kbVFP600 kbVFPsearch
--------------------------------------------------------------------------------
Send feedback to Microsoft
& 2004 Microsoft Corporation. All rights reserved. _________________ 如果公司有下列困擾:
1. 找不到便宜,快速,簡易的 生產排程軟體
2. 不知道如何快速排定 採購計劃
3. 成本抓不準,自己算比軟體算有用
4. 想學習系統規劃,想找系統架構的顧問
請聯絡我們,也許我們幫得上忙 |
|
回頂端 |
|
 |
大苯蛋
註冊時間: 2004-04-18 文章: 9 來自: 桃園
第 4 樓
|
發表於: 星期二 四月 20, 2004 3:36 pm 文章主題: |
|
|
太感謝您了
關掉數值處理運算器問題就解決了 ! 但又多了一個問題,請見諒
關掉後會影響其他程式運算速度嗎 ? 如 AutoCAD 2000
望請不吝賜教 _________________ 我用VFP6.0寫一個程式在我的電腦上印表都沒問題,但是到別人的電腦執行程式印表後就會當機,Windows錯誤碼
VMCPD(01)+00000360請各位高手救救我吧
(平台為Windows 98 SE,印表機測試正常,用word測試
過) |
|
回頂端 |
|
 |
syntech
註冊時間: 2003-05-16 文章: 4249 來自: Taipei,Taiwan
第 5 樓
|
發表於: 星期二 四月 20, 2004 3:47 pm 文章主題: |
|
|
我是叫客戶用其他印表機.......
其實應該是要改程式啦 _________________ 如果公司有下列困擾:
1. 找不到便宜,快速,簡易的 生產排程軟體
2. 不知道如何快速排定 採購計劃
3. 成本抓不準,自己算比軟體算有用
4. 想學習系統規劃,想找系統架構的顧問
請聯絡我們,也許我們幫得上忙 |
|
回頂端 |
|
 |
大苯蛋
註冊時間: 2004-04-18 文章: 9 來自: 桃園
第 6 樓
|
發表於: 星期二 四月 20, 2004 5:09 pm 文章主題: |
|
|
壞消息
關掉數值運算處理器 IE會出問題
傷腦筋
還有別的方法嗎 _________________ 我用VFP6.0寫一個程式在我的電腦上印表都沒問題,但是到別人的電腦執行程式印表後就會當機,Windows錯誤碼
VMCPD(01)+00000360請各位高手救救我吧
(平台為Windows 98 SE,印表機測試正常,用word測試
過) |
|
回頂端 |
|
 |
大苯蛋
註冊時間: 2004-04-18 文章: 9 來自: 桃園
第 7 樓
|
發表於: 星期二 四月 20, 2004 7:19 pm 文章主題: |
|
|
解決了
是我的版本太舊的關係
到微軟網站下載 MDAC 2.8
Visual Studio 6.0 (SP5)
安裝後就好了
謝謝大家的關心 _________________ 我用VFP6.0寫一個程式在我的電腦上印表都沒問題,但是到別人的電腦執行程式印表後就會當機,Windows錯誤碼
VMCPD(01)+00000360請各位高手救救我吧
(平台為Windows 98 SE,印表機測試正常,用word測試
過) |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|