NO

Author Topic: strange app shutdown  (Read 4308 times)

vic_mc

  • Guest
strange app shutdown
« on: November 26, 2012, 11:40:51 PM »
I have 2 computers, one Dell notebook and 1 Acer desktop.  I created a app using BCX/PellesC and works fine on the Dell and copied over to the Acer and works fine until when I shut it down and I get a Windows error that the app has quit working, please shut it down?

Never see anything like it and have now idea what is problem.  Anyone got any ideas?

Thanks,

Vic

CommonTater

  • Guest
Re: strange app shutdown
« Reply #1 on: November 26, 2012, 11:50:56 PM »
We're going to need a lot more information than that...

Console or GUI?
How are you shutting it down?
What versions of Windows are your machines running?

and so on.

vic_mc

  • Guest
Re: strange app shutdown
« Reply #2 on: November 27, 2012, 12:17:11 AM »
Sorry, I realized need more info,

Both Vista Home Premium, Service Pack 2, same versions, etc., GUI and tried console window too. shuts down with exit menu item and both close on x right top and close on top left of window.  I have compiled with same PellesC, same version, same BCX version, still same problems.

Vic

CommonTater

  • Guest
Re: strange app shutdown
« Reply #3 on: November 27, 2012, 05:43:09 AM »
Beats me... I've never had a problem like that...

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: strange app shutdown
« Reply #4 on: November 27, 2012, 10:24:49 AM »
Seems there is something corrupting the return value or any memory your application uses.

In some cases Windows might expect your application to be an installer, but it doesn't create an uninstall entry, so it assumes there was something wrong.

What does the Windows event log tell you?
---
Stefan

Proud member of the UltraDefrag Development Team

vic_mc

  • Guest
Re: strange app shutdown
« Reply #5 on: November 27, 2012, 02:46:35 PM »
Thanks Stefan for replying.  Here is the log, but how can read and understand it?

Fault bucket 3275205062, type 1
Event Name: APPCRASH
Response: None
Cab Id: 0

Problem signature:
P1: xIDE.exe
P2: 0.0.3.0
P3: 50b38296
P4: xIDE.exe
P5: 0.0.3.0
P6: 50b38296
P7: c0000005
P8: 0003f2c4
P9:
P10:

Attached files:
C:\Users\SlickII\AppData\Local\Temp\WER12AF.tmp.version.txt

These files may be available here:
C:\Users\SlickII\AppData\Local\Microsoft\Windows\WER\ReportArchive\Report18333e32

CommonTater

  • Guest
Re: strange app shutdown
« Reply #6 on: November 27, 2012, 03:36:21 PM »
Notice P7 ... C0000005 ...  that is the error code for attmpting to access protected memory...

These errors usually come up when trying to do stuff with NULL or uninitialized pointers or writing 128 characters to a 64 character buffer... 

http://blogs.msdn.com/b/calvin_hsia/archive/2004/06/30/170344.aspx

Check the final steps of your program as it closes down...

I'd also guess the Acer has "Data Execution Prevention" enabled for all programs but the Dell does not...
Control Panel -> System -> Advanced System Properties -> Advanced -> Performance -> Settings -> Data Execution Prevention ... 


vic_mc

  • Guest
Re: strange app shutdown
« Reply #7 on: November 27, 2012, 04:23:07 PM »
Thanks, Tator, I'll check that.

Vic

CommonTater

  • Guest
Re: strange app shutdown
« Reply #8 on: November 27, 2012, 05:07:54 PM »
Thanks, Tator, I'll check that.

Vic

FWIW ... you actually want it on... especially when debugging code.

vic_mc

  • Guest
Re: strange app shutdown
« Reply #9 on: November 27, 2012, 05:40:35 PM »
Turned on for both computers...

Vic

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: strange app shutdown
« Reply #10 on: November 27, 2012, 09:19:43 PM »
I would enable DEP only for essential Windows programs and services.

I never had a need to enable it for anything else.
---
Stefan

Proud member of the UltraDefrag Development Team

CommonTater

  • Guest
Re: strange app shutdown
« Reply #11 on: November 27, 2012, 09:57:14 PM »
I would enable DEP only for essential Windows programs and services.

I never had a need to enable it for anything else.

Although it has little impact on well behaved software... DEP is one dandy good way to find stuff like software that modifies itself and overruns buffers... Almost better than some of the common AV scanners.  There's no harm in running with it off if you're reasonably sure your system is stable.


Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: strange app shutdown
« Reply #12 on: November 28, 2012, 10:06:51 AM »
In many cases the CPU has already DEP capabilities build in, so software DEP is no longer needed.
---
Stefan

Proud member of the UltraDefrag Development Team