.NET Components for Mobility

OBEX problem with Widcomm when MS Stack dongle present

Last post 12-14-2009 9:21 AM by mermich. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 11-29-2009 8:01 PM

    OBEX problem with Widcomm when MS Stack dongle present

    First of all I would like to say that the InTheHand library is just brilliant. Many thanks for developing it!

    I am working on a WinForms application (all examples run on Windows XP SP3) that is to use two Bluetooth Dongles (one for each Bluetooth Stack: Widcomm and Microsoft) in order to provide increased performance. I have come across an error that is quite weird, as it occurs only on a particular configuration.

    I use ObexWebRequest to send files to mobile devices nearby. I have adapted the class so that it is me who decides which Stack (Dongle) is supposed to be used in that process:

    private ObexStatusCode Connect() {

    BluetoothClient cli = null;
    if (bthRadio != null)
            cli = bthRadio.StackFactory.CreateBluetoothClient();
    else cli = new BluetoothClient();

    Everything works perfectly well, when:
       1.    Only Widcomm Dongle is plugged in (and sends files)
       2.    Only Microsoft Dongle is plugged in (and sends files)
       3.    Both Dongles (Widcomm and Microsoft) are plugged in, but only Microsoft’s one is sending files (the other is just there – does nothing)

    The error happens, when Both Dongles (Widcomm and Microsoft) are plugged in, but only Widcomm’s one is sending files (Microsoft’s is just there – does nothing).

    It cannot proceed to the last line of the listing below (the same function as above – Connect()):

    BluetoothEndPoint bep = new BluetoothEndPoint(ba, serviceGuid);
    cli.Connect(bep);
    ns = cli.GetStream(); <-- never gets executed

    I tried to go deeper with that and managed to delve into the code. The listing is from WidcommBluetoothClient class:

    public void EndConnect(IAsyncResult asyncResult){
         AsyncResultNoResult ar2 = (AsyncResultNoResult)asyncResult;
         ar2.EndInvoke();
         Debug.Assert(m_arConnect == null, "NOT m_arConnect == null"); <-- never gets executed
    }

    I use the most recent version of the code from repository (61797) from November 27th. Never do both dongles work together at the same time.

    Is there any workournd possible? If necessary I can provide more specific information on how to reproduce the error.
  • 11-30-2009 11:27 AM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Yup that's the problem that I see here too. :-((  All that work to get multi-stack support and this happens...  I mentioned this briefly at http://32feetnetdev.wordpress.com/2009/07/28/widcomm-and-microsoft-together/

    When debugging it closely, what I see is that the Widcomm "callback" methods are never called.  There are two used for comms (CRfCommPort's OnDataReceived and OnEventReceived) and others for discovery/inquiry and when the MSFT stack is present/has been used then they just never seem to be called.  If only we could solve this...

    The Bluecove JSR-82 (Java) stack seems to have supported the two stacks together at one time, but as far as I can see they no longer do.  I've not got a reference to that at the moment.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-13-2009 4:57 AM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-13-2009 12:36 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Can't really tell if the problem is caused by my computer's configuration or what, but the new 32feetWidcomm.dll does not work properly.

    If I use the new DLL the dongle working on Widcomm is not detected at all. BluetoothRadio.AllRadios returns only Microsoft dongle or nothing at all (if I switch Microsoft dongle off). When I switch the DLL back to the previous version, suddenly the Widcomm is detected (although both stacks obviously still can't work at the same time).

    I have checked that on both 5.1 and 5.5 Broadcom Stack Software on Windows XP SP3.

    What do you think may be the problem? My computer's or the new DLL's?

  • 12-13-2009 1:02 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Ahh sorry about that.  I think I know the problem.  I've provided the DEBUG version of the DLL, and I guess that needs a special version of the VC++ runtime.  Give me a wee while (<1 hour) and I'll replace it with a RELEASE version.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-13-2009 1:46 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    I've updated the file (to one in RELEASE config).  Can you try that and let me know if that works.  Thanks.

    Don't know if you have this already, but you'll need .exe.config to tell the library to load multiple stacks, see the config below (More at the end of blog http://32feetnetdev.wordpress.com/2009/07/28/widcomm-and-microsoft-together/ ).

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <sectionGroup name="InTheHand.Net.Personal">
          <section name="BluetoothFactory"
              type="InTheHand.Net.Bluetooth.BluetoothFactorySection, InTheHand.Net.Personal"
              requirePermission="false" />
        </sectionGroup>
      </configSections>
      <!-- -->
      <InTheHand.Net.Personal>
        <BluetoothFactory reportAllErrors="false" oneStackOnly="false" >
        </BluetoothFactory>
      </InTheHand.Net.Personal>
    </configuration>

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-13-2009 3:08 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Thanks for preparing another file. Unfortunately, the problem occurs again.

    I am not any expert or anything, so there is always a chance I am making a mistake but ... the only change in my application I make is renaming the old DLL and pasting a new one. With the OLD one both Bluetooth Stacks are loaded. With the NEW one, only Microsoft is loaded.

    I have the configuration file you mentioned Just to make sure I played with oneStackOnly setting to check if it works. And it works, but with OLD dll only, as with the NEW one the only result I get is a single Microsoft Stack, regardless of the configuration.

    I have managed to gather some information, that you may find useful. Generally, an exception is thrown (only NEW dll) and caught within BluetoothFactory.GetStacks_inLock() when I try to retrieve BluetoothClient.AllRadios:

    Message: Unable to load DLL '32feetWidcomm': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
    Stack:    at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.NativeMethods.BtIf_Create(IntPtr& ppBtIf, OnDeviceResponded deviceResponded, OnInquiryComplete handleInquiryCompleted, OnDiscoveryComplete handleDiscoveryComplete)
       at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.Create() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtIf.cs:line 165
       at InTheHand.Net.Bluetooth.Widcomm.WidcommBtInterface..ctor(IBtIf btIf, WidcommBluetoothFactoryBase factory) in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtInterface.cs:line 38
       at InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory..ctor() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBluetoothFactory.cs:line 34

    Here is the whole output (thanks to reportAllErrors="true")

    'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe', Symbols loaded. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The thread 0x890 has exited with code 0 (0x0). 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe', Symbols loaded. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\ConsoleApplication1\bin\Debug\WcfService1.dll', Symbols loaded. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\SMDiagnostics\3.0.0.0__b77a5c561934e089\SMDiagnostics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\SMDiagnostics\3.0.0.0__b77a5c561934e089\SMDiagnostics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\3.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll' 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\3.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll' 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel.Selectors\3.0.0.0__b77a5c561934e089\System.IdentityModel.Selectors.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\InTheHand.Net.Personal.dll', Symbols loaded. Exception creating factory 'InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory, ex: System.DllNotFoundException: Unable to load DLL '32feetWidcomm': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.NativeMethods.BtIf_Create(IntPtr& ppBtIf, OnDeviceResponded deviceResponded, OnInquiryComplete handleInquiryCompleted, OnDiscoveryComplete handleDiscoveryComplete) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.Create() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtIf.cs:line 165 at InTheHand.Net.Bluetooth.Widcomm.WidcommBtInterface..ctor(IBtIf btIf, WidcommBluetoothFactoryBase factory) in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtIn---- DEBUG ASSERTION FAILED ---- ---- Assert Short Message ---- Exception creating factory 'InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory, ex: System.DllNotFoundException: Unable to load DLL '32feetWidcomm': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.NativeMethods.BtIf_Create(IntPtr& ppBtIf, OnDeviceResponded deviceResponded, OnInquiryComplete handleInquiryCompleted, OnDiscoveryComplete handleDiscoveryComplete) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.Create() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtIf.cs:line 165 at InTheHand.Net.Bluetooth.Widcomm.WidcommBtInterface..ctor(IBtIf btIf, WidcommBluetoothFactoryBase factory) in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtInterface.cs:line 38 at InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory..ctor() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBluetoothFactory.cs:line 34 ---- Assert Long Message ---- at BluetoothFactory.GetStacks_inLock() C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth\BluetoothFactory.cs(62) at BluetoothFactory.get_Factories() C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth\BluetoothFactory.cs(91) at BluetoothRadio.get_AllRadios() C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth\BluetoothRadio.cs(34) at Form1.DiscoverRadios(Object stateInfo) C:\Documents and Settings\XPMUser\Desktop\Projekt\Bth1\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs(30) at _ThreadPoolWaitCallback.WaitCallback_Context(Object state) at ExecutionContext.runTryCode(Object userData) at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at _ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack) at _ThreadPoolWaitCallback.PerformWaitCallback(Object state) Exception creating factory 'InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory, ex: System.DllNotFoundException: Unable to load DLL '32feetWidcomm': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.NativeMethods.BtIf_Create(IntPtr& ppBtIf, OnDeviceResponded deviceResponded, OnInquiryComplete handleInquiryCompleted, OnDiscoveryComplete handleDiscoveryComplete) at InTheHand.Net.Bluetooth.Widcomm.WidcommBtIf.Create() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtIf.cs:line 165 at InTheHand.Net.Bluetooth.Widcomm.WidcommBtInterface..ctor(IBtIf btIf, WidcommBluetoothFactoryBase factory) in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBtInterface.cs:line 38 at InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory..ctor() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBluetoothFactory.cs:line 34 Num factories: 1, Primary Factory: SocketsBluetoothFactory terface.cs:line 38 at InTheHand.Net.Bluetooth.Widcomm.WidcommBluetoothFactory..ctor() in C:\Documents and Settings\XPMUser\Desktop\Projekt\32feet-61797\InTheHand.Net.Personal\InTheHand.Net.Personal\Net.Bluetooth.Widcomm\WidcommBluetoothFactory.cs:line 34
  • 12-13-2009 4:30 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Bahhh! :-(  Is anything reported as missing if you run depends.exe on the file?  Are you running with 2.4 or a version from repository?

    Anyway I've removed some changes since 2.4, so version 3 is there now.  Fingers crossed...  (If it fails, depends.exe output please)

     

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-13-2009 8:05 PM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    After a countless number of hours, I have finally managed to get rid of the problem. Basically the issue was that a required version of VC++ Redist has not been present on the computer. Although, getting the proper version wasn't an easy task either. I had to install Microsoft Visual C++ 2005 SP1 Redistributable Package and then KB973544. As a result a new folder in C:\Windows\WinSxS for CRT 8.0.50727.4053 appeared.

    So finally my application (and also Test32FeetWidcommWin32.exe, which you have created) managed to run. Unfortunately that is the end of good news. The ObexWebRequest (BTW, thanks for introducing factory functionality) does not work, when used on Widcomm. It does not send anything (although some activity is visible - establishing connection with my mobile) either Microsoft dongle is present or not. I have used the most recent version of code from CodePlex. The same situation happens for both v2 and v3 of 32feetWidcomm.dll.

    Just to check, I have swaped 32feetWidcomm.dll file for the application to use the old version (2.4). And the ObexWebRequest worked! Obviously, only when used alone - no Windows dongle present.

  • 12-14-2009 5:47 AM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    Thanks very much for the effort you have put in. :-)  I've written a blog at http://32feetnetdev.wordpress.com/2009/12/14/new-widcomm-dependency/ to reflect your findings.

    The ObexWebRequest is one I have actually run as part of my testing.  I added a command to ConsoleMenuTesting which runs a instance on each found stack, and in testing I had both running sending to the opposite stack on the machine.  I find Widcomm a bit temperamental so maybe a reboot would help?  I'm in a rush at the moment but I'll have a look when I get a moment (making the send object much bigger, and sending to other devices etc).

    Thanks again.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-14-2009 9:21 AM In reply to

    Re: OBEX problem with Widcomm when MS Stack dongle present

    I have finally managed to run ObexWebRequest on Widcomm, while Microsoft Stack dongle present. The key was to downgrade Broadcom Bluetooth Stack to v5.1. I upgraded it to v5.5 yesterday, to check if that might have caused the problem with dll and the error. I don't think that is a drawback at all though, as v5.1 is at the moment the highest officially supported Bth Stack by Belkin (my dongle manufacturer) anyway.

    Just to let you know, the previous DDL (2.4) worked with v5.5 although only when Windows Stack dongle was not present.

    I haven't spent much time on testing yet. I'll probably focus on that in the coming weeks. So if I find out anything relevant, I'll let you know.

    Thank you for the support and Bluetooth improved functionality!

Page 1 of 1 (11 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.