BEX error c0000417 VC++ and MFC - visual-studio-2010

I had access, via a friend, to a vc++ code which has MFC components with AxisMediaControl object to stream and record videos from an IP camera.
Now I am a complete novice in MFC and VC++. But I was going through the code as I know some C++ and was trying out if I could catch some MFC. It was probably a wrong choice starting with a complex application.
But nevertheless, in brief the application has three AFX threads running, one to read I/O from a hardware, One which implements some logic based on these I/O inputs and one which looks for any change in configuration of these I/O pins - It has a shared memory open and reads if there is any content in that shared memory and saves the content as a file.
Based on the I/O this application and the second thread mentions starts playing then records video from an IP camera.
When I run the application after compiling in VS2010, it runs as a standalone application as an exe for some random time and then I see a BEX error.
Log Name: Application Source: Application Error Date:
1/20/2015 1:50:59 PM Event ID: 1000 Task Category: (100) Level:
Error Keywords: Classic User: N/A Computer: ITSME
Description: Faulting application name: Video.exe, version: 1.0.0.1,
time stamp: 0x54bcf6f8 Faulting module name: Video.exe, version:
1.0.0.1, time stamp: 0x54bcf6f8 Exception code: 0xc0000417 Fault offset: 0x001256cd Faulting process id: 0x608 Faulting application
start time: 0x01d03489d809fe4d Faulting application path:
D\iRIDSClient\bin\Video.exe Faulting module path:
D\iRIDSClient\bin\Video.exe Report Id:
42d67f3f-a07d-11e4-8756-00306421c6e4 Event Xml:
1000
2
100
0x80000000000000
8427
Application
ITSME
Video.exe
1.0.0.1
54bcf6f8
Video.exe
1.0.0.1
54bcf6f8
c0000417
001256cd
608
01d03489d809fe4d
D:\iRIDSClient\bin\Video.exe
D:\iRIDSClient\bin\Video.exe
42d67f3f-a07d-11e4-8756-00306421c6e4 .
I got this from the windows event logger.
I am not pasting the code here as I wont be able to comprehend code related suggestions. Could anybody please give an idea on what situations can this error code occur. Where can I start to solve this error. I know this is unauthorized memory access error. But WHAT operation(s) could cause it? Please help.

Related

Windows 11 keep (3-4 times a day) blue screening and restarting

I already formatted the notebook. But it's still happening. How can i find the source of the error?
The event log when the notebook restart:
Always start with a 6008 event error ( The system shutdown that happened at XX:XX:XX XX/XX/XX wasn't expected ). Source: Eventlog.
Then go to a 168 event error (Dump file generation completed successfully). Source: volmgr.
Then go to a 1101 event error (Audit events were dropped by transport. 0). Source: Eventlog.
Then go to multiple 1108 event errors. Source: Eventlog.
Then go to a 1001 event error (The computer was rebooted after an error check. This check was: 0x0000000a (0x0000000000000, 0x00000000000002, 0x0000000000000, 0xfffff80126ac1b4b). a memory dump was saved in.....). Source: BugCheck.
And the last one is 10010 event error (The server (8CFC164F-4BE5...) did not register with DCOM within the required timeout.) Source: DistributedCOM.

Generate Invoice in PeopleSoft

Has anyone here tried running Generate Invoice in PeopleSoft and encountered an error for its process instance? I can't pinpoint what is causing the error since when process monitor shows error - there are no log files to check.
Here are some additional files that may be useful
Server: PSNT
Process Type: COBOL SQL
Process Name: SFPBIPRC
Description: Invoice Batch Process
Does anyone knows how to debug this?
Thanks!

Trying to convert existing WCF service to Web Role can't deploy without errors

I've converted existing WCF application to web role by adding it with "Add web role project in solution". Convert menu doesn't offer me option to convert. Our application requires .NET 4.6.1
Application runs fine on full emulator. However deployment fails with two scenarios:
osFamily attribute set to "5" in Serviceconfiguration(no .NET 4.6.1 installation script required):
19:15:16 - Instance 0 of role Severa.API is restarting
Details: [11/28T17:15Z]Failed to load role entrypoint. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
--- End of inner exception stack trace ---
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) Last exit time: [2016/11/28, 17:15:06.916]. Last exit code: 0.
osFamily attribute set to "4" in Serviceconfiguration with .NET 4.6.1 installation:
The feature named NetFx451 that is required by the uploaded package is not available in the OS * chosen for the deployment.
I've used the .NET installation script in other projects with success. Also I have added WebRole.CS class to the project.
Is the issue here that the webrole is not WCF type meaning some setting etc. is missing?
We've managed to identify and fix the issue.
I've enabled Fusion logging and immediately got the missing information.
What would have saved a lot of time and point us to right direction would have been to understand that web role in CS consists of two processes: WAIISHost which runs RoleEntryPoint code in startup and good old W3WP for the Web application itself.
WAIIShost can't read Web.config and requires an empty Web.config file named after name of the project and redeployed successfully. I followed instructions from this article:
Post about the issue

Error deploy BMP project using Tibco Business Studio

I try to deploy a BPM project but I get error when create application as such:
create.app:[AMXAdminTask] INFO - Processing 1 objects[AMXAdminTask]
INFO - Adding application...[AMXAdminTask] ERROR - Failed to add
Application 'com.example.bmpsample'[AMXAdminTask] ERROR - Follower
application component
urn:amx:BPMEnvironment/com.example.bmpsample/BMPSampleProcessFlow_1.0.0.201311211151
requires capability
com.tibco.amf.sca.model.componenttype.impl.RequiredCapabilityImpl#7396acb
(id: com.tibco.bx.capability.implementation.bx, version: 1.0.0, type:
factory) but the target application does not provide it.
BUILD
FAILEDD:\wsbmp.BSServers\scripts\com.example.bmpsample.deployment-build.xml:37:
Failed on error Total time: 7 seconds
I also got same error while deploying bpm project from studio, to resolve that below information will help you :
Summary When using TIBCO Business Studio to deploy a DAA that is
dependant on another DAA which is not in the deployed state results in errors
such as:
Follower application component
urn:amx:BPMEnvironment/com.example.appa/APPAProcessFlow requires
capability
com.tibco.amf.sca.model.componenttype.impl.RequiredCapabilityImp
l#7ee0f191 (id: com.tibco.bx.capability.implementation.bx,
version: 1.0.0, type: factory) but the target application does
not provide it.
Workaround Make sure the dependant DAA is deployed.
Thanks & Regards,
Srinivasa Reddy P

Windows error reporting - reports service as hang during loading of service dependent windows dll-s

I have a service that starts at Win7 startup. If I start the service after boot I cannot find any warning in event log reported by Windows Error Reporting service, but if it starts automatically during boot I get this:
Fault bucket , type 0
Event Name: ServiceHang
Response: Not available
Cab Id: 0
Problem signature:
P1: serviceName
P2: serviceName
P3: 0.0.0.0
P4: 10
P5: 2
P6:
P7:
P8:
P9:
P10:
Attached files:
These files may be available here:
Analysis symbol:
Rechecking for solution: 0
Report Id: 46283ee5-85ba-11e2-9242-001a4d425476
Report Status: 4
Looking into the wer generated file is says :
LoadedModule[0]=C:\Program Files (x86)\..\serviceName.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\wow64.dll
LoadedModule[3]=C:\Windows\SYSTEM32\wow64win.dll
LoadedModule[4]=C:\Windows\SYSTEM32\wow64cpu.dll
It seems like that while loading of the service by the windows loader it was detected something that looks like a hang. But I collected logs using performance recorder during boot for the described report and I could see from that the following:
It looks that by measuring the distance between loading of the .exe (from the graph above) and the loading of the module that is not mentioned in the WER report (kernel32.dll) is no more than 200 ms (and all these are microsoft dll-s). I wonder why is WER reporting that as a hang and if I I can do something about it. I always reproduces at system boot and not in any other condition.
NOTE The service starts successfully. It's only the nagging event viewer report at every boot.

Resources