General Protection Fault in module WIN87EM.DLL while Running Windows XP Mode

I am attempting to run a legacy, 16-bit program, P3, on a Windows XP Mode Virtual Machine, hosted by a Windows 7 x64 box. When performing various activities in the program, I receive "P3 caused a General Protection Fault in module WIN87EM.DLL
at 0001:02C6." This occurs on multiple platforms (Core i5, Core 2 Duo).
Based on my research, I have found "The Windows 80x87 emulator library,
WIN87EM.DLL, works at the 16-bit-Windows level
to virtualize the coprocessor among multiple Windows-based applications that run inside the system VM."
It appears to me that, with the Virtual Machine using a Virtualized Processor (not related to the above reference to "virtualized coprocessor") as opposed to an emulated processor, the Virtual Math Coprocessor Device (VMCPD) and/or WIN87EM.DLL
generate an error from the virtualized processor (perhaps they do no recognize it?)
In addition "When the kernel loads an application, it checks to see if floating-point hardware is present. If a coprocessor is not present, the kernel uses the
fixup records to replace the actual floating-point instructions with
Interrupt 3x calls to emulation code in WIN87EM.DLL."
I have found some information that points to "hiding" the math coprocessor from the Virtual Machine, so it doesn't go to the processor. This apparently can be achieved by using a program called WinFloat which includes a tool called HIDE87, which is suppose
to hide the math coprocessor from the kernal.
The issue I'm running into is, to properly achieve this, HIDE87 must be loaded before Windows. I have tried a couple techniques, but I think I'm doing it wrong. I have tried adding the HIDE87 program to the System32 directory and then adding
HIDE87 (just before autocheck autochk *) to BootExecute under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
key.
For a little more info, when you run HIDE87 from the command prompt it reads "HIDE87: Int 11h hook installed (must reboot to remove)." The documentation says this is what needs to occur before Windows loads. You can find WinFloat here:
http://support.microsoft.com/kb/97265.
Any help or insight would be greatly appreciated.

This link helped point me to winfloat to solve the very same issue with WIN87EM.dll crashing under Windows XP on VMware 5 for an old legacy Windows 3.1.  I thought I would mention that the original approach taken by tstock_sjc should work fine.   First
off, winfloat is a self extracting executable and we really don't want to run winfloat, but rather hide87.com which is a tiny TSR that is inside the winfloat archive.  When you run any DOS or Windows 3.1 executable, Windows XP first boots up (if one isn't
already running) a mini-MSDOS 5 environment called NTVDM.exe.   Just as with the original MSDOS, when the shell loads, it loads files similar to config.sys and autoexec.bat.   Of course, there are more restrictions on drivers and not everything
under MSDOS is emulated but nevertheless, it is a fairly good approximation of an MSDOS 5 environment.  The issue that tstock_sjc had was NTVDM.exe looks for %WINDIR%\system32\autoexec.nt and %WINDIR%\system32\config.nt instead of autoexec.bat
and config.sys.  If you extract hide87.com out of winfloat.exe and place it into the %WINDIR%\system32 directory and add a line like %SystemRoot%\system32\hide87.com to the end of autoexec.nt , NTVDM will indeed load this TSR before launching its emulated
copy of of Windows 3.1 (wowexec.exe).  When the 16 bit application is finally launched after wowexec.exe, the coprocessor is then masked.  It worked fine for me anyway (after applying changes and rebooting).  Under process monitor I could clearly
see NTVDM.exe reading autoexec.nt and hide87.com and the WIN87EM.dll GP fault went away. 

Similar Messages

  • General protection fault windows 3.1

    I am  using a real time devices pc104 computer stack running windows 3.1, trying to install labwindows 5.1.  program installs, but when I try to run I get
    "CVI caused a general protection fault in module cvi.exe at 0001:07A4."  Any one have an idea why?  I have this program installed on an identical computer stack with no problems.  I have also tried a third stack with the same result as the first.

    Hi scottharris,
    It seems as if this is a known issue of Windows 3.x.  I've looked through our records, and it doesn't seem as if this particular behavior has been reported when opening CVI.  So, unfortunately, I cannot give you a direct solution to this issue.  You may want to take a look at some of the many online troubleshooting guides for General Protection Faults, like this one.
    Regards,
    Sara Lewandroski
    Applications Engineer | National Instruments
    http://www.ni.com/support

  • "Program" caused an invalid page fault in module SQORA32.DLL in 0177:02f92c

    We has an Visual FoxPro that generated an invalid page fault en module SQORA32.DLL
    We use Windows 98 SE, ODBC 9.2.0.6.5
    Server Windows 2003, Database 9.2.0.7
    any ideas...

    Hi all,
    Found the prob' or atleast the workaound for this...
    APart from setting the fill property of the canvases to Transparent, set the same for all the DB blocks too...
    Now my form is working fine in both OS.
    Regards
    -Sree Ram

  • RT DLL general protection fault associated with serial I/O

    Hello,
    I'm experiencing Generatl Protection Faults on my real-time PC running LabView Real Time 9.1.0.  The faults occur when oppening/reading/writing from a serial rs-232/422 port, regardless of whether I use the Serial library or VISA library. 
    How do I debug this? Is there a stack dump stored somewhere on the RT system when a fault occurs?
    I am using LabWindows/CVI 2009 with the corresponding RT module to do my development.
    Regards,
    ndo

    Michael,
    I was able to get a report of the crash just as the KB instructed. 
    (Although no report was generated when I ran my DLL in debug mode, the report was only generated when I deployed the DLL to the RT system and a crash occurred. )
    I've attached the report here, can you tell me why it's crashing?
    Regards,
    ndo
    Attachments:
    lvrt_err_log.txt ‏51 KB

  • General protection fault with alt-tabbin​g and pop ups

    Hi,
    This is probably a case of me doing something I shouldn't, but I figured out a while ago that I could get resizable modal pop ups by doing something like this:
    SetPanelAttribute(panelHandle2, ATTR_SIZABLE, 0);
    InstallPopup(panelHandle2);
    SetPanelAttribute(panelHandle2, ATTR_SIZABLE, 1);
    This is almost certainly a hack, but it seems to work and I get modal pop ups that the user can resize and maximize.  However, the run-time engine does not seem to like this, and I am getting general protection faults when alt-tabbing between the main application window and the pop up (which both have taskbar buttons).  The address where it crashes, at least on my computer, is 0x684F5E34 which is in cvirte.dll.  This also seems to crash in the release configuation.
    I've attached a small sample application.  In order to see the problem, launch the application, open the Pop Up, and alt-tab a few times between the two windows.  On my development PC this will generate a general protection fault after a few times (often the first time).  I'm running CVI 2012SP1 on a Windows XP Pro PC.
    Any insight would be helpful.  Thanks.
    Attachments:
    Pop Up Test.zip ‏5 KB

    What I don't understand is how you can switch between main and popup panel since the latter is displayed with InstallPopup: I never succeed in getting focus to the main panel when the popup is active, and it is not even listed among windows in alt-tab procedure. If I select the main window in taskbar, the popup immediately comes up and gets the focus.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Savepanelstate general protection fault

    I'm once in a while receiving a "General Protection Fault" when using SavePanelState in CVI 2010 running Windows XP.
    This a program that runs 24/7, and that function call is probably executed 20k times a day, and runs on number of benches with the same configuration and no problems.
    It sounds similiar to the problem that was found a while back for 64 bit applications, the CVI Runtime engine is 10.0.1.419.
    Any updates that would correct this available?  Any other ideas?
    Terry

    Hi Terry,
    There was a bug in 64-bit for SavePanelState, but it was related to the creation of the save file. It could only occur for 64-bit applications and SavePanelState would always fail. So I don't think that is related to your issue.
    Am I correct that this issue only occurs on 1 system? How often does it occur?
    Are you able to reproduce this with the debugger attached? Is there an address attached to the fault?
    Could you generate a crash dump and send it to us?
    How To Create and Submit a Crash Dump to NI
    National Instruments
    Product Support Engineer

  • CVI2009 general protection fault in user interface library commands

    I have a program which we have been using and updating since 1999.  We have updated it in various versions of LabWindows/CVI and had no problems.  We recently updated it and compiled it in CVI2009 and now we get general protection faults.  The faults are occurring in commands from the user interface library and not always in the same command.  Sometimes it will process the commands properly and sometimes not.  PlotXY, PrintCtrl, SetMouseCursor, and DiscardPanel have each caused the faults.  Any suggestions?

    Hello - 
    My initial guess is that you are running into the issue described in this KB.  What is the version of cvirte.dll in c:\windows\system32?  If it is 9.1.0.427, you need to upgrade to version 9.1.0.428, which is linked in the KB.
    Let us know if that does not resolve it for you!
    NickB
    National Instruments

  • JAVA caused an invalid page fault in module KERNEL32.DLL at 016f:bff7b9a6

    Hi All,
    This problem is bugging me for last two days. Actually I am trying to embed Internet Explorer inside Java application. Everything is working fine till I dont close the application window. But just when I close the window everything goes down. I am working on win98 platform and not sure if it is this reason. The exact error message I am getting is:
    JAVA caused an invalid page fault in
    module KERNEL32.DLL at 016f:bff7b9a6.
    Registers:
    EAX=00000000 CS=016f EIP=bff7b9a6 EFLGS=00000246
    EBX=00000001 SS=0177 ESP=0c08fb7c EBP=653cfbd0
    ECX=004271ec DS=0177 ESI=653cfbd0 FS=443f
    EDX=00427310 ES=0177 EDI=0042701c GS=0000
    Bytes at CS:EIP:
    ff 76 04 e8 13 89 ff ff 5e c2 04 00 56 8b 74 24
    Stack dump:
    004272e4 653a8f88 653cfbd0 0042701c 004272e4 004271fc 00000000 653aaf7b 0042701c 0b1df32c 5f3ed308 0c08fc70 00000000 5f3e5adc 004272e4 5f3ed6d8
    Also since JVM is also crashing it is creating a log file which reads:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D0670CD
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(WToolkit.java:240)
         at java.lang.Thread.run(Thread.java:536)
    Dynamic libraries:
    0x7CC00000 - 0x7CC1D000      C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
    Local Time = Tue May 14 18:46:45 2002
    Elapsed Time = 616
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
    I am not getting any clue about this error. Please help me out. :-(

    aman ghus jao bans balli bamboo lekar..

  • Graph control causes general protection fault when changing axis range (64bit)

    Hello,
    i wrote a 32bit application which i'm porting to 64bit now and stumbled across a problem with the graph control.
    The Graph axsis are set to editable so that the user can change the axis range manually at runtime. The 32bit version has no problem here, but the 64bit  version is crashing  with a general protection fault at the source line with RunUserInterface().
    Is there a compiler option/value or something i should be aware of when swithing to 64bit that should be set?
    Or is this just a problem with the code of the control?
    I tried it with LabWindows v13.0.2 (278)  and v13.0.1, running under Windows 7 64bit.
    Thanks.

    Hello, danouj!
    Thank you for reporting this issue to us!
    However, information you provided is still unsufficient for us to determine the background of this bug.
    Please also provide the following details, so that we can identify the issue and investigate whether a workaround for this problem exists:
    From my understanding, when porting the application to 64-bit, you also performed some code changes to your CVI application. What are these code changes?
    If you run the 64-bit version of your application without these code changes, does the application also crash?
    What is the address of this crash?
    It would also be very useful, if you can send us a copy of a minimal snapshot of your project application, in which the problem still occurs, for us to investigate the issue.
    You can upload the sources at ftp://ftp.natinst.com/incoming
    Best regards,
    - Johannes

  • F50DBG32 caused an invalid page fault in module MSVCRT40.DLL at 0167:7967d7f0.

    HI all,
    I trying to run a multi-tabbed form built in forms 5.0 with Oracle 8.1.7 db running on a solaris m/c.
    The client m/c os is windows '98.
    but when trying to run it, i get the following error:
    F50DBG32 caused an invalid page fault in
    module MSVCRT40.DLL at 0167:7967d7f0.
    Registers:
    EAX=796aadff CS=0167 EIP=7967d7f0 EFLGS=00010286
    EBX=00aef3f4 SS=016f ESP=00aef284 EBP=00aef290
    ECX=008e56c0 DS=016f ESI=00357365 FS=586f
    EDX=0000001f ES=016f EDI=008e579c GS=0000
    Bytes at CS:EIP:
    8a 06 46 8a 27 47 38 c4 74 f2 2c 41 3c 1a 1a c9
    Stack dump:
    00aef3f4 00aef43c ffffffff 00aef2a8 617e7573 008e579c 00357365 008e56c0 008e56a8 00aef3a8 617d8bae 0101343c 008e56c0 00aef43c 00000001 00aef3f4
    . The problem is tat the same form runs fine in a Win-NT machine.
    Unfortunately, we have a mixed group of users for this form. some of them have NT and some others have Win95/98...
    Any help?
    Regards
    -Sree Ram

    Hi all,
    Found the prob' or atleast the workaound for this...
    APart from setting the fill property of the canvases to Transparent, set the same for all the DB blocks too...
    Now my form is working fine in both OS.
    Regards
    -Sree Ram

  • NIMAX caused an invalid page fault in module PDM.DLL at 0167:4a01259d

    When I closed the MAX 2.2 and get the following problem~~
    NIMAX caused an invalid page fault in
    module PDM.DLL at 0167:4a01259d.
    Registers:
    EAX=00000000 CS=0167 EIP=4a01259d EFLGS=00010246
    EBX=00761f04 SS=016f ESP=022cfe44 EBP=00000000
    ECX=007700b0 DS=016f ESI=00781a10 FS=3f87
    EDX=00000004 ES=016f EDI=00761ef4 GS=0000
    Bytes at CS:EIP:
    8b 10 ff 52 08 83 c6 04 eb c9 53 ff 15 f4 00 02
    Stack dump:
    00000000 00849070 00761ee8 00000001 4a01275a 00761ee4 00849070 00000000 4a012fed 00761ee8 4a012b06 0084a020 00000000 00000000 00000000 00760630
    Can anyone help me to solve this problem?

    Hello Ivan ,
    Thank you for your inquiry regarding problems closing MAX 2.2. It sounds like MAX crashes causing an invalid page fault in module PDM.DLL. This problem can happen when Microsoft Visual Studio is installed. The following link is a great resource when dealing with this issue.
    http://digital.ni.com/public.nsf/websearch/1F1B0B6A05772B6A86256BC1005634D3?OpenDocument
    Other resources similar to this can be found on the ni.com website by clicking the support tab at the top of the home page. Then search for �PDM.DLL� from Technical Resources at the top of the page or topics similar to this. I hope these resources help. Let me know if I can further assist you.
    Shea C.
    Applications Engineering

  • RWBLD60 caused a stack fault in module RWLIB60.DLL at 0167:00a40983.

    Oracle Reports Services
    Release Notes
    Release 1.0.2
    for Windows or UNIX
    October 2000
    Part No. A86271-01
    The following error is generated when trying to get a comma delimited text output report in windows 98.
    RWBLD60 caused a stack fault in module RWLIB60.DLL at 0167:00a40983.
    Registers:
    Appreciate if you could tell me a solution to over come this

    Hi all,
    Found the prob' or atleast the workaound for this...
    APart from setting the fill property of the canvases to Transparent, set the same for all the DB blocks too...
    Now my form is working fine in both OS.
    Regards
    -Sree Ram

  • Alert subscription data source module encountered errors while running

    Hello All,
    After I configured subscriptions with many monitors, error alerts appear at SCOM(scom 2012 r2) console in active alert page.
    I googled it and found some topics at TechNet but I could not figure it out. Alert description is shown below
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
    One or more workflows were affected by this.
    Workflow name: Subscriptioneaa7b044_b3c1_4198_be71_ffaaf66a163f
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: STS
     Any idea?
    Thanks

    As I understand, this issue occurs and remains after I configure a subscription with too many rules and/or monitors( i.e al available rule and/or monitor of a management pack).
    After I had deleted those subscription with many rule/monitor, this issue was resolved. 
    Any idea?

  • Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.

    Hi,    We recently started getting these errors a couple times a day.   There are 12 of them in total.     We also have exactly 12 subscriptions.   Does this indicate some db issue causing all of these
    to fail?
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: ExecuteScalar requires an open and available Connection. The connection's current state is closed.
    One or more workflows were affected by this.
    Workflow name: Subscription8b108a3e_4e3d_4fd0_b67e_cbfc21cd10b8
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: A Company Management Group
    Thanks Lance

    Hi,
    Do you have hotfixes applied?
    http://blogs.technet.com/kevinholman/archive/2009/01/27/which-hotfixes-should-i-apply.aspx
    Also, I found a relevant thread for your reference.
    Alert subscription data source module encountered errors while running</u1:p>
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/50557249-7f97-4b67-9729-f7088202385b/alert-subscription-data-source-module-encountered-errors-while-running?forum=operationsmanagergeneral</u1:p>
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How can I turn on the integrated bluetooth radio while running windows 7 through bootcamp?

    I am running a partitioned windows 7 64-bit on my macbook pro. The integrated bluetooth radio is turned on while using the Mac OS, but not while running windows 7. How can I fix this?

    spainchaud wrote:
    I would also like to be able to check if HT is working under Mac OS.
    Another way to do that is to turn on Verbose Mode and watch the processor IDs that are enabled. And/or open the kernel.log in Console and find the beginning of today's boot. You should see a list of "AppleACPICPU: ProcessorId=# LocalApicId=# Enabled" counting up to the number of processors your Mac could have. For example, I've got one CPU but the Mac could hold two. Each CPU has six processors and each processor has two threads, so the kernel.log shows ProcessorId 0 to 11 having LocalApicId's enabled and 12 to 23 having LocalApicId's disabled (because the second CPU isn't installed).

Maybe you are looking for

  • Average sum for a column in ALV tree layout

    Hi, I've trying to set an average sum for a column in an ALV tree report.  In the field catalog i set the DO_SUM field to 'X' and this will do a total sum, but I can't find out how in the code to do the average sum. Also to get round this I was going

  • EntityManagerFactory injection problems

    I am continually getting the following error on the application server: Version = Sun Java System Application Server 9.1_01 Running on an i86 machine with the Sun operating system installed. I do not seem to get this error on the windows version of t

  • Question on CLASSPATH

    Hi, I can run the application use this command line: java -classpath .;C:\oracle\ora92\jdbc\lib\ojdbc14.jar TestClassForNameApp If I use the batch containing the following: set CLASSPATH = .;C:\oracle\ora92\jdbc\lib\ojdbc14.jar java TestClassForNameA

  • How to avoid af:dialog from being showed when af:table is empty?

    Hi, Is there any way to disable af:dialog if table has no records? And re-enable when new records added..? And also additional question about af:dialog, How can I close the dialog after my custom button is pressed? Thanks

  • Extract Assets bug

    Hi I have a layer that contains black rectangles with a Drop Shadow layer effect. This layer is renamed so it gets exported by the Extracts Assets feature. But when I preview the layer in the Extract Assets panel, the layer is empty and it is not exp