|
Is there any mechanism to know whether the .Net Framework work resides in or no? ... just for e.g .. I wanted to transfer Phonebook from ma PC to ma Nokia mobile ... using either bluetooth or USB cable ....
Thank you for your response
|
|
|
|
|
yes. it starts by reading the documentation to discover whether .NET *can* run or not on your mobile.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
You're a cruel man, Luc!
Luc Pattyn wrote: reading
Nasty.
Luc Pattyn wrote: documentation
Ouch!
Luc Pattyn wrote: discover
There is no excuse for that kind of language in here! Please go and wash your mouth out with <SOAP>
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
OriginalGriff wrote: wash your mouth out with soap
Sorry, can't do that, the soap documentation warns me against it. I'll have a instead. If that doesn't help, I'll try another one.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
modified on Thursday, January 28, 2010 2:46 PM
|
|
|
|
|
Nokia (AFAIK) have never used a Windows OS so no .NET Framework has ever been available on aby device of theirs. They mainly use their own OS or Symbian, on a few high end devices they have used Linux.
You're best bet might be to look at HTC (mainly Windows Mobile but some are Android) or a few recent Samsungs.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
So u r saying that i must have to learn their OS in order to operate on Nokia?
|
|
|
|
|
|
Hey ma frnds ... I was working on ListViewItem and I want to put check boxes on 2 columns ... Can u tell me how to do that?
Thank you.
|
|
|
|
|
|
hi, i need your help
when i insert data in my table show error
Error is
ERROR [42S02] [Microsoft][SQL Native Client][SQL Server]Invalid object name 'test'
and i use this coding
string MyString = "Select * from test";
OdbcConnection cn = new OdbcConnection("Driver={SQL Native Client};Server=localhost;UID=sa;PWD=java;");
OdbcCommand cmd = new OdbcCommand(MyString, cn);
cn.Open();
MessageBox.Show("Connected");
cmd.CommandText = "insert into test values ('" + textBox1.Text + "','" + textBox2.Text + "')";
MessageBox.Show(cmd.CommandText);
cmd.ExecuteNonQuery();
cn.Close();
Thanks In Advance
jawad khatri
|
|
|
|
|
Did you verify that you have a table named "test"?
|
|
|
|
|
|
You also didn't supply which database or catalogue you wish to connect to, so you are probably just connnected to the master database which I very much doubt has a table called test. Add a Database=[dbname]; section to your query string.
|
|
|
|
|
cmd.CommandText = "insert into test values ('" + textBox1.Text + "','" + textBox2.Text + "')";
---------------------------------------------------------------------------------------
try this one....
cmd.CommandText = "insert into test values ('" textBox1.Text + "','" + textBox2.Text + "')";
|
|
|
|
|
Hi. anybody pleas tell me how work with a-gps on windows mobile.
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
serialPort1.BaudRate = 4800;<br />
serialPort1.PortName = comboBox1.SelectedItem.ToString();<br />
serialPort1.Open();<br />
timer1.Enabled = true;<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
<br />
}<br />
<br />
private void timer1_Tick(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
string data = serialPort1.ReadExisting();<br />
listBox1.Items.Add(data);<br />
}<br />
catch(Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}<br />
<br />
this code work with gps device, but if I run app on phone with a-gps - it crash with OutOfMemoryException
|
|
|
|
|
the only line here could couse to crash with exception is: listBox1.Items.Add(data); . You put it in timer, and it will crash after certain time.
I do not know about windows mobile, but I know that in 32bit of windows have a limit to 4,294,967,295 numbers of items before it reach limit. You attempt to hold all data in memory. This is a bad design
|
|
|
|
|
this code work on windows mobile 6.0 more then 3 hours without pause. but when I run it on windows mobile 6.5 and connect to a-gps device it crash.
|
|
|
|
|
I cant point to what exactly is problem, but is the only infromation you get that it is exception OutOfMemoryException?
You will probalbly get more information if you use exe with debugging information
|
|
|
|
|
I wont to know haw van I take coordinate from a-gps. Code that I post work excellent with GPS device and didn't work with a-gps.
When I take it string data = serialport.ReadExisting() app crashed with OutOfMemoryException
|
|
|
|
|
did you tried stancrm suggestion?
If it doesn't help, i do not know how to help you
|
|
|
|
|
|
hmmm this error only on windows mobile 6.5 and mobile phone
6.0 or 6.1 or PDA work good
error on string
string data = serialPort1.ReadExisting();
or serialPort1.ReadLine();
maybe I must read data from com port and gps use other method?
|
|
|
|
|
Hi,
I have developed an application to test some devices. The idea is to send and recieve message by device on each device in parallel. I can set for each device a timing (e.g. 100ms) between each message sending.
For that I have used the thread with time but it seems that is not the good idea because if the execution of the function need more time than the time between each send, the call is stacked into the pool execution. So when I stop the test execution, the application continue to send message due to the queue of execution in the pool.
I think that I use to many thread for one application and the runtime is very slow due to context switching or something like that.
Have an idea about the good possibility to do this application ?
I think maybe that is better if I use one service by device and the application is connected to each service to retrieve some status information. What do you think ?
Thank you for your answer...
|
|
|
|
|
Hi,
your question is not clear at all, please provide more and more accurate information, such as:
- "some devices": what are they? what is their function? how many? how do they connect?
- "to send and recieve message": how many? how long should testing a single device take?
- "I have used the thread with time": what does that mean? and which kind of thread? a Thread instance? a ThreadPool.QueueWorkItem? a BackgroundWorker? ...
- "the call is stacked into the pool execution": huh? what pool would that be?
One thing I can say is a service is probably not the right way to tackle the problem.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Hi,
Thank your for your answer.
The type of the devices and their functions and how many devices have no importance. The goal of my application is to test an embedded board. So the board have many device depending of the board and different type of devices. You can think that we have between 1 to 5 differents devices. But my application have a low interface for each type of devices and so handle the access to the device by a same interface to have an abstraction of the type of device to the upper level (of course implementation is different).
My problem is at the higher level.
For my test I send message through a device (in my case but you can abstract this problem with a network area where we need to send message to another application). The message received at the other side is read and returned by the same link that as been recieved. When the message is coming back to my application I check it to control that have no corruption in the data and so report the information into a log file and an window of statistic.
This is made in parallel and we have no limit of time i.e. it can be run 1h, 10h, 1 day. The user run the test and stop it by press a button. We can assume any idea of the time that have the board to take to return the message to the application, this is depending of the device and the runtime of the onboard side.Maybe is never returned in case of problem in the board side (no more memory, busy for a moment). This is the reason of we have a thread to send and one to read and the statistic of the number sending/recieved.
My first conception is as follow:
1 thread by devices for sending message
1 thread by devices to wait/read message received
1 thread to log and check message recieved to a file/window report.
The goal is to have an independant thread for each output and input. We want to send message in continue through each output.
I use the timer and timer delegate for the thread. At first I use a Thread object but this is not precise of when he run. With the Timer, we can ask it to wakeup at every x ms (e.g. each 100ms) to send a message. So I see that the Timer work with a ThreadPool.
What do you suggest otherwise that the service ?
|
|
|
|