Dapperduck / nulldc

Automatically exported from code.google.com/p/nulldc
1 stars 0 forks source link

[GDR] Throw error message instead of crashing on load #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1: Run a disk image normally.
2: Close program
2: Go into cfg file and set LoadDefaultImage = 1
3: Start program.

What is the expected output? What do you see instead?

The expected output is: To load the configured default image

But instead I see: "Windows has encountered an unexpected error"

Problem Event Name: BEX
  Application Name: nullDC_Win32_Release-NoTrace.exe
  Application Version:  0.0.0.0
  Application Timestamp:    4c1d99cf
  Fault Module Name:    MSVCR100.dll
  Fault Module Version: 10.0.30319.1
  Fault Module Timestamp:   4ba1dbbe
  Exception Offset: 0008ae6e
  Exception Code:   c0000417
  Exception Data:   00000000
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:    1033
  Additional Information 1: 86f1
  Additional Information 2: 86f1d8b75a26f9bf3df8ecad2e413bd6
  Additional Information 3: 5b99
  Additional Information 4: 5b99975c00a9700d6b0ed053387c82bf

What version of the product are you using? What build? What plugins?

I use version: v104 r50

I use a Release-NoTrace build

I use the following plugins:

PowerVR Plugin: drkPvr_Win32.dll
GDRom Plugin: ImgReader_Win32.dll
AICA Plugin: nullAICA_Win32.dll
ARM7 Plugin: vbaARM_Win32.dll
Maple Plugin(s): drkMapleDevices_Win32.dll
Ext.Device Plugin: nullExtDev_Win32.dll

On what kind of system? Windows 7 x64 (fully patched, msvc 2010 x86 and x64 
installed).  Core i7 920, 6GB RAM, x58 chipset, ATI HD4890

My system specifications are as follows:

Operating System: Windows 7 x64
CPU: Core i7 920
Video Card: AT HD4890
Sound Card: Onboard (ALC800 series)
Additional related hardware and/or software:

Please provide any additional information below:

The image used is Jet Grind Radio v1.005 (2000)(Sega)(NTSC)(US)[!].cdi, which 
works just fine when the LoadDefaultImage is set to false.

Original issue reported on code.google.com by jeremys...@gmail.com on 18 Jul 2010 at 5:51

GoogleCodeExporter commented 8 years ago
You're supposed to set a default image before telling the emulator to use it. 
Just loading an image will not work, you have to set it as default from the 
image reader option menu.

Still, I guess that the crash should be replaced by an error message or a 
prompt to select a default image...

Original comment by Mr.PsyMan on 18 Jul 2010 at 6:53

GoogleCodeExporter commented 8 years ago
Yes, thanks for the quick reply. 

As noted in my original post, I previously had run that image.  In my config 
file I have this line, before setting the LoadDefaultImage to true:

LastImage=D:\Emulators\Sega Dreamcast\roms\Jet Grind Radio v1.005 
(2000)(Sega)(NTSC)(US)[!].cdi

But it seems that there was another setting that needs to be set.  I assumed 
that the last loaded program would be the default.

DefaultImage=defualt.gdi

The above line is "out of the box", and was not set by me (sic).

In fact, if I change the defaultImage setting noted above to the image path, it 
works fine (no crash).

So you are right, it should give some valuable error message.  I think some 
exception handling around the load of the default image should help, and then 
if there is some error, just throw a message box up with the exception text.

Thanks, now I have a workaround.

Original comment by jeremys...@gmail.com on 18 Jul 2010 at 7:51

GoogleCodeExporter commented 8 years ago

Original comment by KrossX3 on 18 Dec 2010 at 7:24