Results 1 to 6 of 6

Thread: Vb 2010: My app crasching...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    23

    Vb 2010: My app crasching...

    Hello!
    I have developed an app in VB 2010 Express. It contains some forms (of course) and images from a resource. I have a Windows Mediaplayer too. This runs well on my x86 Windows 7 pro-pc, but when I try it on another Windows 7 x86 it only crash. At first it shown up in process manager, but short time later it disappear from the list (crash). The target pc has Net.Framework 4.5 and I have tried to compile my program several times and even copy directly from the debug-folder. It contains the required Windows Mediaplayer-files AxInterop.WMPLib.dll and Interop.WMPLib.dll.

    I think there is some problem with the media player, because I made a clean test app with some buttons and images and it worked well on the target computer. Any idea what's wrong?
    Attached Images Attached Images  

  2. #2

    Re: Vb 2010: My app crasching...

    Quote Originally Posted by C2000 View Post
    Hello!
    I have developed an app in VB 2010 Express. It contains some forms (of course) and images from a resource. I have a Windows Mediaplayer too. This runs well on my x86 Windows 7 pro-pc, but when I try it on another Windows 7 x86 it only crash. At first it shown up in process manager, but short time later it disappear from the list (crash). The target pc has Net.Framework 4.5 and I have tried to compile my program several times and even copy directly from the debug-folder. It contains the required Windows Mediaplayer-files AxInterop.WMPLib.dll and Interop.WMPLib.dll.

    I think there is some problem with the media player, because I made a clean test app with some buttons and images and it worked well on the target computer. Any idea what's wrong?
    Well...no, not really. I can clearly see your program in Explorer (as well as some interesting words; Swedish Windows?) but without my Crystal Ball Decompiler Tool (It's in the shop for repairs again; blew out the Deobfuscator again :/) or my Insta-Reader Glasses, I really can't tell you what might be wrong with your program. It might be really nice to see, say, the source code. Do you also have try-catch blocks in your code? That's very important and can really help out with fixing problems or bugs. Help us so we can help you!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    23

    Re: Vb 2010: My app crasching...

    You had right, It's swedish! I can send the project files in a pm to you if you want.

    And I don't use try-catch blocks because I'm not familiar with it...

  4. #4

    Re: Vb 2010: My app crasching...

    Quote Originally Posted by C2000 View Post
    You had right, It's swedish! I can send the project files in a pm to you if you want.

    And I don't use try-catch blocks because I'm not familiar with it...
    I am at work so I can't accept project files. It's much easier if you post code on the forum instead. Also, you really should familiarize yourself with Try-Catch blocks. They are very effective when it comes to Exception handling.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    23

    Re: Vb 2010: My app crasching...

    Now I checked the app in configuration manager, I tried to switch the output folder to release instead of debug. This gave me two warnings. Maybe this cause the app to crash on the other computer. (?)

    Code:
    Warning	1	
    Type library importer encountered a property getter 'sessionPlaylistCount' on type 'WMPLib.IWMPNowPlayingHelperDispatch' without a valid return type.  The importer will attempt to import this property as a method instead.	
    
    
    Warning	2	
    At least one of the arguments for 'IWMPGraphEventHandler.NotifyAcquireCredentials' cannot be marshaled by the runtime marshaler.  Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

  6. #6
    Junior Member
    Join Date
    Sep 2012
    Posts
    17

    Re: Vb 2010: My app crasching...

    I'm curious to see if you finally got your app working!? What was the problem...and how did you fixed it?
    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