Results 1 to 13 of 13

Thread: runtime errors

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    runtime errors

    One of my testers for my new game is saying that my game is giving them an error. They are getting run-time error:

    -2147200966 (8004503a)
    Method '~' of object '~' failed


    What does that mean?

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: runtime errors

    You have an object trying to do something that it is not capable of doing.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    Ok, but why is it happening when one of my beta testers trys the game? The game works completely fine on both of my computers and I'm using windows 98se on 1 and windows xp on the other.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: runtime errors

    98 and XP are very different kernals. Did you create an installation package?

    What are your programs references, etc.?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    Both of my testers are using Windows 2000. I did create a install package using the Package & Deployment Wizard. I'm mainly using the basic form design tools that come up except for winsock and media player.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: runtime errors

    When you get the error what is it thatyour clicking or doing?
    It may be related to media player?

    Do you have the same versions on all systems?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    The person that is getting is error is click on a button that checks for a win. Both of my testers should have the same version since I sent them both the game last night. What is the best way that you recommand to play sound files?

    I could use another tester to try the game and see if they get any error messages. I know the game is not don't but what I'm haveing them test is done.

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: runtime errors

    If you just need to play a sound you can use the PlaySound API.
    Then perhaps you can get rid of Media Player.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    I forgot about that api. Thanks for reminding me. I'll try that. Do you think that that will get rid of that error message?

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: runtime errors

    Not sure since it could be coming from almost anywhere.

    Try addng some logging too. In your error handlers write out to a file the
    values of your vars and the procedure the error occurred in.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    Could that error, -2147200966 (8004503a) Method '~' of object '~' failed, be caused by outdated dll files?

  12. #12
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: runtime errors

    Ever thought about using DirectSound? Heres a tutorial on it:

    http://216.5.163.53/DirectX4VB/Tutor...DA_SoundFx.asp

    And here is my module engine on it:

    VB Code:
    1. Option Explicit
    2.  
    3. Public DirectX8 As New DirectX8
    4.  
    5. Public DirectSound As DirectSound8
    6.  
    7. 'Right here is used to hold the sounds. Only holds 2 for now.
    8. Public DirectSound_Buffer(1) As DirectSoundSecondaryBuffer8
    9.  
    10. Public DirectSound_Enum As DirectSoundEnum8
    11.  
    12. Public Sub DirectSound_Initialize()
    13.  
    14.     Dim DirectSound_Buffer_Description As DSBUFFERDESC    'describes our sound file
    15.    
    16.     Set DirectSound_Enum = DirectX8.GetDSEnum
    17.     Set DirectSound = DirectX8.DirectSoundCreate(DirectSound_Enum.GetGuid(1))
    18.    
    19.     DirectSound.SetCooperativeLevel frmMain.hWnd, DSSCL_NORMAL
    20.     DirectSound_Buffer_Description.lFlags = DSBCAPS_CTRLFREQUENCY Or DSBCAPS_CTRLPAN Or DSBCAPS_CTRLVOLUME
    21.    
    22.     Set DirectSound_Buffer(0) = DirectSound.CreateSoundBufferFromFile(App.Path & "\Sounds\laser.wav", DirectSound_Buffer_Description)
    23.     Set DirectSound_Buffer(1) = DirectSound.CreateSoundBufferFromFile(App.Path & "\Sounds\water splashes.wav", DirectSound_Buffer_Description)
    24.  
    25. End Sub
    26.  
    27. Public Sub DirectSound_Play(Buffer As DirectSoundSecondaryBuffer8)
    28.    
    29.     Buffer.SetCurrentPosition 0
    30.     Buffer.Play DSBPLAY_DEFAULT
    31.  
    32. End Sub
    33.  
    34. Public Sub DirectSound_Play_Once(Buffer As DirectSoundSecondaryBuffer8)
    35.  
    36.     Buffer.Play DSBPLAY_DEFAULT
    37.  
    38. End Sub
    39.  
    40.  
    41. Public Sub DirectSound_Play_Loop(Buffer As DirectSoundSecondaryBuffer8)
    42.  
    43.     Buffer.Play DSBPLAY_LOOPING
    44.  
    45. End Sub
    46.  
    47. Public Sub DirectSound_Pause(Buffer As DirectSoundSecondaryBuffer8)
    48.  
    49.     Buffer.Stop
    50.  
    51. End Sub
    52.  
    53. Public Sub DirectSound_Stop(Buffer As DirectSoundSecondaryBuffer8)
    54.  
    55.     Buffer.SetCurrentPosition 0
    56.     Buffer.Stop
    57.  
    58. End Sub
    59.  
    60. Public Sub DirectSound_Shutdown()
    61.    
    62.     Set DirectSound_Buffer(0) = Nothing
    63.     Set DirectSound_Buffer(1) = Nothing
    64.     Set DirectSound_Enum = Nothing
    65.     Set DirectSound = Nothing
    66.     Set DirectX8 = Nothing
    67.    
    68. End Sub

    Then in your Form_Load() event just add this:

    VB Code:
    1. Private Sub Form_Load()
    2.  
    3.      DirectSound_Initialize
    4.  
    5. End Sub

    and in something like a command button do this:

    VB Code:
    1. Private Sub Command1_Click()
    2.  
    3.      DirectSound_Play DirectSound_Buffer(0) 'Plays sound 1
    4.  
    5. End Sub
    6.  
    7. Private Sub Command2_Click()
    8.  
    9.      DirectSound_Play DirectSound_Buffer(1) 'Plays sound 2
    10.  
    11. End Sub

    Don't forget to unload it from memory though

    VB Code:
    1. Private Sub Form_Unload(Cancel As Integer)
    2.  
    3.      DirectSound_Shutdown
    4.  
    5. End Sub

  13. #13

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    51

    Re: runtime errors

    1 of my beta testers for my game is having problems with images. The game is crashing for some reason while trying to set an preset image. The user is running the game on Windows 2000.

    Here is the code I'm using.

    imgBall.Picture = Image3(3).Picture
    imgPattern.Picture = imgPatterns(iIndex).Picture

    They work fine for me on both of my computers and a few other beta tester computers. Is there something wrong with that code that is causing the game to crash on Win 2000 computers? Also why is it causing the game to crash?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width