New demo

Discussion in 'Architecture and Products' started by Humus, Jan 27, 2003.

  1. cellarboy

    Newcomer

    Joined:
    Jun 18, 2002
    Messages:
    143
    Likes Received:
    2
    Location:
    Calgary, Alberta
    I don't get anything when I try to run the demo. The process runs and shows 99% CPU usage, but there's absolutely no display. All I see is the desktop.

    Running a 9500pro, DX9 and the latest Catalyst drivers. Any ideas?
     
  2. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    I get the same problem.
    Heres a stack trace


    ********************************

    Exception code: C0000005 ACCESS_VIOLATION
    Fault address: 0040276E 01:0000176E D:\Demos\Humus\SoftCoronas\SoftCoronas.exe

    Registers:
    EAX:00C75FF4
    EBX:00C52358
    ECX:FFFFFFFF
    EDX:00000280
    ESI:FFFFFFEC
    EDI:00000001
    CS:EIP:001B:0040276E
    SS:ESP:0023:0012FE58 EBP:0012FE78
    DS:0023 ES:0023 FS:0038 GS:0000
    Flags:00010213

    Call stack:
    Address Frame Logical addr Module
    0040276E 0012FE78 0001:0000176E D:\Demos\Humus\SoftCoronas\SoftCoronas.exe
    0040D12E 0012FECC 0001:0000C12E D:\Demos\Humus\SoftCoronas\SoftCoronas.exe
    0040B961 0012FF00 0001:0000A961 D:\Demos\Humus\SoftCoronas\SoftCoronas.exe
    73DDB4F3 0012FFC0 0001:0000A4F3 C:\WINDOWS\System32\MFC42.DLL
    77E814C7 0012FFF0 0001:000204C7 C:\WINDOWS\system32\kernel32.dll


    Windows XP SP1, DX9, Cat 3.0a's
    Flipping AA on/off doesn't fix it like it (still) does with the ShadowsThatRock demo
     
  3. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    Refuses to run on my GF3 and 40.72 dets, stating "cannot find DLL OPENAL32.DLL".

    Nice that you do error checking and all, Humus, but this is a bit silly... :)


    *G*
     
  4. jjayb

    Regular

    Joined:
    Feb 13, 2002
    Messages:
    358
    Likes Received:
    1
    Nice that you actually read the info with the demo. Or for that matter even read the rest of the posts here. :wink:
     
  5. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    http://developer.creative.com/scripts/DC_D&H_Games-Downloads.asp?opt=2

    Nice that you made this post and all, Grall, but not reading the download intructions is even sillier :twisted:
     
  6. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    I'm out of ideas on this one. Seams there are many people getting this :?
     
  7. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    I've got Visual Studio .NET (full install) on my PC @ home. But I ain't any kinda C/C++ programmer. Is it just a case of opening the main project file and then running it through the debugger and see which line of code is failing?

    If there's any more steps to help fixing this then by all means let me know.
     
  8. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Yeah, that's basically it. You'll need to download the framework too though.
    The important code is in the drawFrame() function in Main.cpp, you could just try commenting away stuff and see if you can get it going.
     
  9. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    Erm - do I need anything extra like the OpenGL and Vorbis SDKs?

    Also, I will only be able to do this over the weekend - it's my 30th Birthday today and I've already had a few beers with work and loads more planned for tonight :lol:
     
  10. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    OpenGL should be included with your compiler. For the vorbis, if you don't want to install the SDK you can always just uncomment this line at the top of the Main.cpp file:

    //#define NO_AUDIO

    And of course, happy birthday! :)
     
  11. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    Okay, now that we're done being cynical :)roll:) I can add that there wasn't anything in the download instructions about any external libraries required. Actually, I couldn't see any download instructions period.

    Would have been better if the error message explained audio could not be initialized (so I knew wth was wrong) and/or gave me the choice of running *without* audio...


    *G*
     
  12. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Unfortunately I have no control over what error message pops up when a statically linked dll is missing. That's just a standard Windows MessageBox, none that I have created. The other option is of course to use dynamic linking, but that would be much more painful. Given the amount of people having trouble I may just aswell do that to the next time.
     
  13. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    I installed the sound DLL thingy, now I get another msgbox it can't find VORBIS-something-or-other.DLL... :) Maybe I need to reboot first before the bloody thing works. Just haven't been arsed to try that yet, heh.

    *G*
     
  14. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Well, you need the vorbis ogg decoding dll too. Links on top of the demo page.
     
  15. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    Gotta download DirectX9 SDK by the looks of it - needs d3d9.h and d3dx9.h

    May take some time
     
  16. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Ack! Shoudn't really be needed, but now that you say it, my framework probably includes it, even though nothing DX is used.
     
  17. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    I'll also point out to any Humus-demo-wannabe-compilers that you do also need the Vorbis and OpenAL SDK's due to the framework needing them even when the app doesn't

    :roll: :roll: :roll:

    Also, according to VS .NET, the ATL::CRegKey::QueryValue has been depricated.

    And about line 482 in RenderWindow.cpp, it doesn't like values += data for some reason, but it does like values = '"' + data + '"'

    I may actually get this compiled tonight - provided I dont need to do much else - :roll:
     
  18. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    OK, there's a compiler error I just cannot solve.

    RenderApp.cpp, line 140 m_msgCur is undefined.

    I suspect that this is a pointer to the Windows Messaging Queue or something like that which handles window messages such as WM_foobar. So it should be defined in an MS .h file somewhere, but I've got no idea where :(

    Everything else now compiles, apart from the depreciated warning I get which I posted above.

    Any help here? :?:
     
  19. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Alright, time to install VS .NET to ensure compatibility I guess. :?
    The framework should really not require the vorbis and OpenAL SDK unless you actually use audio. I can't see how anything from these could every be accessed unless audio.h is included, and it's only included in demos that require audio of course.
     
  20. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    MSDN - the one thing MS did right :lol:

    Fixes to get this to work/compile

    RenderApp.cpp
    Add this decleration to RenderApp:Run()
    MSG m_msgCur;

    Comment out m_nDisablePumpCount = 0; ~line 159 to get debug build to compile

    2ndly, I cannot get a debug build to work as it brings up a message box stating that it cannot find MSVCRTD.DLL.
    I assume the ending D stands for debug.

    However, I can work around the crash we are seeing by disabling sound in the app by uncommenting the line #define NO_MUSIC in Main.cpp line 13.
    So I'd say the bug is in your sound code.

    For reference, I'm using WinXP Pro SP1 with a SB Audigy and the 2.83 Audigy 2 drivers.

    Here's a link to download my fixed build with sound disabled. Simply replace the existing EXE file over Humus's demo.
    http://www.driverheaven.net/uberlord/SoftCoronas-nosound.zip
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...