Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 2
Registered: ‎10-12-2009
My Device: Not Specified

Device simulator not launching in Visual Studio 2008

Hi:

 

I'm running VS 2008 on Vista 32bit and I installed the plugin.  When running VS 2008 as an administrator, I hit F5 and RIM.Net.Tools.ScriptHost.exe is launched but the device simulator is not launched.

 

So, I figured out that if I go into Tools > Options > Blackberry and reselect the already selected simulator (Blackberry 9000) and click OK, the next time I hit F5, the device simulator is launched fine.  I shut down VS 2008 and restarted and I have to repeat this everytime to get the device simulator running.  Is there any solution or workaround to the plugin remembering which simulator it's supposed to be running?

 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Device simulator not launching in Visual Studio 2008

When the simulator is trying to launch, you will have a dialog popping up to tell you where it is along its process.  Can you select the details button on this dialog and copy and paste the text into a message post...

 

Also if there is any .log files in the "bin" directory of where the plug-in is installed, could you please also post them. 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 2
Registered: ‎10-12-2009
My Device: Not Specified

Re: Device simulator not launching in Visual Studio 2008

Hi Tim:

 

When the problem occurs, the Start Debugging dialog does not pop up.  Once I reset the device simulator, the following information is displayed:

 

[Start BlackBerry MDS-CS] Starting BlackBerry MDS Connection Services...
[Start BlackBerry MDS-CS] DONE!
[Start Device Simulator] Launching Fledge: Launch file - C:\Program Files\Research In Motion\BlackBerry VS9 Plugin 1.2\handheld\simulator_4_6_0\fledge.exe, Parameters - /app=Jvm.dll /handheld=9000 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9000.xml /app-param=JvmDebugModeOff /session=9000 /app-param=MdsDebug:smileysurprised:n /app-param=BrowserDebugPort:5557 /app-param=BrowserDebug:smileysurprised:n /app-param=NoTutorial /keep-lcd-on /pin=0x2100001A /app-param=BrowserDebugPort:5557, Skin - BlackBerry 9000 (v4.6.0.212), PIN - 0x2100001A
[Start Device Simulator] Waiting for simulator to finish loading...
[Start Device Simulator] DONE!
[Start Debug Session] Connecting to web debug port...
[Start Debug Session] DONE!
[Start Debug Session] Wait for debug message listeners to start-up...
[Start Debug Session] DONE!
[Start Debug Session] Send debug handshake request
[Start Debug Session] Wait for handshake response...
[Start Debug Session] DONE!

The log file contains:

 

<entry type="Information" date="12 Oct 2009 12:32:52">BrowserLauncher: Install called...</entry>
<entry type="Information" date="12 Oct 2009 12:32:55">BrowserLauncher: browsers.xml updated.</entry>
<entry type="Error" date="12 Oct 2009 12:58:28">Object reference not set to an instance of an object.
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Error" date="12 Oct 2009 01:14:20">Object reference not set to an instance of an object.
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Information" date="12 Oct 2009 05:11:20">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Error" date="12 Oct 2009 05:11:32">type(-1) or size(-256) mismatch for this data type.
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2.Deserialize(Byte[] bytes)
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2..ctor(String name, Byte[] bytes, Int32 offset)
   at MDS.NET.DebugEngine.Transport.TransportDataFactory_v2.GetTransportDataFromInteger(Byte[] data, String name, Int32 offset)
   at MDS.NET.DebugEngine.Protocol.Message.Factory.MsgFactory_v2.GetPayloadSize(Byte[] headerData)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.GetPayloadSize(Byte[] rawHeader)
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Error" date="12 Oct 2009 05:11:35">ClearAllBreakpointsRequest is not supported in the current protocol</entry>
<entry type="Error" date="12 Oct 2009 05:14:47"></entry>
<entry type="Error" date="12 Oct 2009 05:14:47"></entry>
<entry type="Information" date="12 Oct 2009 05:18:08">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Error" date="12 Oct 2009 05:18:33">type(4) or size(356) mismatch for this data type.
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2.Deserialize(Byte[] bytes)
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2..ctor(String name, Byte[] bytes, Int32 offset)
   at MDS.NET.DebugEngine.Transport.TransportDataFactory_v2.GetTransportDataFromInteger(Byte[] data, String name, Int32 offset)
   at MDS.NET.DebugEngine.Protocol.Message.Factory.MsgFactory_v2.GetPayloadSize(Byte[] headerData)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.GetPayloadSize(Byte[] rawHeader)
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Error" date="12 Oct 2009 05:18:36">ClearAllBreakpointsRequest is not supported in the current protocol</entry>
<entry type="Error" date="12 Oct 2009 05:21:59"></entry>
<entry type="Error" date="12 Oct 2009 05:21:59"></entry>
<entry type="Information" date="12 Oct 2009 05:48:00">ERRORRESUMEACTION_ReexecuteErrorStatement:</entry>
<entry type="Error" date="12 Oct 2009 05:48:28"></entry>
<entry type="Error" date="12 Oct 2009 05:48:28"></entry>
<entry type="Error" date="12 Oct 2009 05:53:26">ClearAllBreakpointsRequest is not supported in the current protocol</entry>
<entry type="Error" date="12 Oct 2009 05:53:34"></entry>
<entry type="Error" date="12 Oct 2009 05:53:34"></entry>
<entry type="Information" date="12 Oct 2009 06:08:26">ERRORRESUMEACTION_ReexecuteErrorStatement:</entry>
<entry type="Error" date="12 Oct 2009 06:08:27">type(1024) or size(256) mismatch for this data type.
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2.Deserialize(Byte[] bytes)
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2..ctor(String name, Byte[] bytes, Int32 offset)
   at MDS.NET.DebugEngine.Transport.TransportDataFactory_v2.GetTransportDataFromInteger(Byte[] data, String name, Int32 offset)
   at MDS.NET.DebugEngine.Protocol.Message.Factory.MsgFactory_v2.GetPayloadSize(Byte[] headerData)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.GetPayloadSize(Byte[] rawHeader)
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Error" date="12 Oct 2009 06:08:50"></entry>
<entry type="Error" date="12 Oct 2009 06:08:50"></entry>
<entry type="Error" date="12 Oct 2009 06:16:03">ClearAllBreakpointsRequest is not supported in the current protocol</entry>
<entry type="Information" date="12 Oct 2009 07:10:26">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Information" date="12 Oct 2009 07:10:54">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Information" date="12 Oct 2009 07:10:54">ScriptError::XActiveScriptErrorDebug::GetSourcePosition() called</entry>
<entry type="Information" date="12 Oct 2009 07:10:54">ScriptError::XActiveScriptErrorDebug::GetSourceLineText() called</entry>
<entry type="Error" date="12 Oct 2009 07:11:10"></entry>
<entry type="Error" date="12 Oct 2009 07:11:10"></entry>
<entry type="Error" date="12 Oct 2009 07:41:42"></entry>
<entry type="Error" date="12 Oct 2009 07:41:42"></entry>
<entry type="Error" date="12 Oct 2009 07:57:32"></entry>
<entry type="Error" date="12 Oct 2009 07:57:32"></entry>
<entry type="Information" date="12 Oct 2009 07:58:57">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Error" date="12 Oct 2009 07:59:06">type(1024) or size(1024) mismatch for this data type.
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2.Deserialize(Byte[] bytes)
   at MDS.NET.DebugEngine.Transport.Data.IntegerData_v2..ctor(String name, Byte[] bytes, Int32 offset)
   at MDS.NET.DebugEngine.Transport.TransportDataFactory_v2.GetTransportDataFromInteger(Byte[] data, String name, Int32 offset)
   at MDS.NET.DebugEngine.Protocol.Message.Factory.MsgFactory_v2.GetPayloadSize(Byte[] headerData)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.GetPayloadSize(Byte[] rawHeader)
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ListenForData()</entry>
<entry type="Error" date="12 Oct 2009 07:59:09">ClearAllBreakpointsRequest is not supported in the current protocol</entry>
<entry type="Error" date="12 Oct 2009 07:59:57"></entry>
<entry type="Error" date="12 Oct 2009 07:59:57"></entry>
<entry type="Error" date="12 Oct 2009 09:17:20"></entry>
<entry type="Error" date="12 Oct 2009 09:17:20"></entry>
<entry type="Error" date="12 Oct 2009 09:42:50"></entry>
<entry type="Error" date="12 Oct 2009 09:42:50"></entry>
<entry type="Error" date="12 Oct 2009 09:50:28"></entry>
<entry type="Error" date="12 Oct 2009 09:50:28"></entry>
<entry type="Error" date="12 Oct 2009 10:06:09">MQueue::smileytongue:ushResourceLoadedData : One or more of the passed properties are invalid.</entry>
<entry type="Error" date="12 Oct 2009 10:19:36"></entry>
<entry type="Error" date="12 Oct 2009 10:19:36"></entry>
<entry type="Error" date="12 Oct 2009 10:36:03">MQueue::smileytongue:ushScriptHostDocument : One or more of the passed properties are invalid.</entry>
<entry type="Information" date="12 Oct 2009 10:36:19">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Information" date="12 Oct 2009 10:36:44">ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller:</entry>
<entry type="Error" date="12 Oct 2009 10:36:51">MQueue::smileytongue:ushResourceLoadedData : One or more of the passed properties are invalid.</entry>
<entry type="Error" date="12 Oct 2009 10:36:52">MQueue::smileytongue:ushScriptHostDocument : One or more of the passed properties are invalid.</entry>
<entry type="Error" date="12 Oct 2009 10:36:52">'=' is an unexpected token. The expected token is ';'. Line 1, position 202.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
   at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
   at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32&amp; charRefEndPos)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at MDS.NET.DebugEngine.DebugEvent.Info.DebugScopeObject.Parse(Int32 level, String xml)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.ProcessResponseMessage(IDebugMessage msg)
   at MDS.NET.DebugEngine.Protocol.Versioned.DebugProtocol_v2.ProcessIncomingMessage(Byte[] rawMessage)
   at RIM.Net.Tools.DebugEngine.Controller.RuntimeController.ProcessMessageList()</entry>
<entry type="Error" date="12 Oct 2009 10:36:55">ClearAllBreakpointsRequest is not supported in the current protocol</entry>

The ScriptHost log file contains:

 

.\ScriptHost_IActiveScriptSiteDebug.cpp:85->ScriptHost::XActiveScriptSiteDebug::smileysurprised:nScriptErrorDebug ERR : Runtime error
.\ScriptHost_IActiveScriptSiteDebug.cpp:85->ScriptHost::XActiveScriptSiteDebug::smileysurprised:nScriptErrorDebug ERR : Runtime error
.\SymbolProvider.cpp:157->SymbolProvider::GetFieldInfo ERR : Time out for waiting field info
.\SymbolProvider.cpp:157->SymbolProvider::GetFieldInfo ERR : Time out for waiting field info
.\ScriptHost_IActiveScriptSiteDebug.cpp:85->ScriptHost::XActiveScriptSiteDebug::smileysurprised:nScriptErrorDebug ERR : Runtime error
.\ScriptHost_IActiveScriptSiteDebug.cpp:85->ScriptHost::XActiveScriptSiteDebug::smileysurprised:nScriptErrorDebug ERR : Runtime error