473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

.net mobile debugging issue

I am having trouble stopping debug mode within my mobile app using VS2008 in .net 2.0 mode. I am following MS best practtices as to how forms should be loaded using ShowDialog. Once a particualr form of mine is loaded and then I click the stop debugging button the app stays open (freezes) and then I need to do a soft reset on the device. This is how I am opening the form:

frmLimnology frm = new frmLimnology(Site, true);
frm.Owner = this;
frm.ShowDialog();

Anyone run into something similar?
thanks
Jul 21 '08 #1
4 2505
markmcgookin
648 Expert 512MB
Hi,

Are the 2 variables you are passing the form supported in the constructor of the form? Are they valid and not null (or will it support nulls)

try frm.Show() instead of showDialog() as that launches the form in Dialog style and halts the parent code until it is closed (unless you need this) if you have any more trouble post some more code off the form that you are having an issue with.

Cheers,

Mark
Jul 21 '08 #2
I am using a Symbol MC70 w/ windows Mobile 5.0 with a barcode scanner. It appears that VS cannot successfully stop debugging if a form is opened that is Enabled for barcode scanning. I am using Symbol's Dev kit 1.7. If I set the EnableScanner property to false I don't have any problems.
Jul 23 '08 #3
markmcgookin
648 Expert 512MB
I am using a Symbol MC70 w/ windows Mobile 5.0 with a barcode scanner. It appears that VS cannot successfully stop debugging if a form is opened that is Enabled for barcode scanning. I am using Symbol's Dev kit 1.7. If I set the EnableScanner property to false I don't have any problems.
We have developed applications using the barcode scanner on the MC70 and havent had any of those problems.... hmm.

I'll try and dig out some code for you...
Jul 23 '08 #4
Setting the EnableScan property to true on the form activate method and set the EnableScan property to false on the deactivate method of the form seems to have resolved my issue. I tried this after receiving the following from motorla:

When you click to Terminate Debugging in Visual Studio 2005 or Visual Studio 2008, it shuts down the communication between you host PC and the MC7004. This will not necessary terminate the program on the MC7004.

The program on the MC7004 is relying on and requiring communication with the host PC to run stabily in debug mode. Taking that link away causes the program to become unstable. It can either error out and crash or lock up.

Either way, because the program did not exit cleanly, it was not able to release the Scanning API resouces and shut down properly. Since the Scanning API resources were not released properly, another application more than likely will not be able to access the Scanning API again and claim those resouces. This can only be resovled with a warm or cold boot.

Usually, when working with programs in Windows Mobile 5.0, it is best to put a Command Button that calls the program to Close and use that the end debugging. When the program closes, the debugging session will end.

If the program for whatever reason does end up unstable and locking up, a warm or cold boot is required to fix the problem if the Scanning API resources were not released.
Jul 29 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
0
by: Wiktor Zychla | last post by:
Hi there, I've just started to dig into mobile ASP.NET and I'd really wish to clarify few things. I have the experience with ASP.NET. 1) Some tutorials mention something called Microsoft...
1
by: Thomas | last post by:
Hi, I have written a Web Service using Axis C++ Server and a .Net Windows client. I considered every interoperability issue between Axis and .Net( Doc/Literal ...) The .Net Windows client can...
4
by: SJ | last post by:
I have a mobile web application running on a server at work. There is a strange thing happening though: 1) I can access and login to my mobile web app from any internet browser. (good thing). 2)...
7
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
0
by: mtembene | last post by:
I am new to this Mobile Web development and am having an issue that I would like some help with. I have a Mobile Web form that contains a DeviceSpecific object. In the Header Template for this...
1
by: =?Utf-8?B?V29vZGdub21l?= | last post by:
Hi, I have use the following code to transmit a file back to the browser that worked fine on a HTC_TTyN device running windows mobile 5.0. The code executes in the onclick event of a mobilelist...
0
by: =?Utf-8?B?SnVsaWFu?= | last post by:
My first problem is: I am having an issue when using a web service. The web service is written by another department and say its running fine but when I call it, I sometimes I get a...
9
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I downloaded the sample application that the Microsoft video ASPNETAJAXForWinMobile described but it doesn't work on my Windows Mobile 6 emulator. After enabling the script error reporting...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.