|
Oh well I don't know everything, but I can answer some of your questions:
1) Nothing, assuming that all your pointer magic is 64bit clean
2) I don't know, I never tried to do it wrong. It definitely does not work when you reference 32bit dlls for which there is no 64bit version, but for the rest I don't know.
3) .NET 2.0 contains a new CLR, .NET 3/3.5 are just extra class libraries, that could be why (not sure) - .NET 3.5 apps can certainly run in 64bit mode (they do on my computer)
4) Not that I know off, but the C# compiler barely does any optimizations anyway, some constant folding (and it can be fooled into not-folding really easily, such as 4+x+2 instead of x+4+2).. the JIT compiler has most of the optimizations (and the 64bit JIT has some more optimizations than the 32bit one)
edit: and I would like to add that when you're running a program on an x64 machine there is no significant difference between an Any-CPU build and an x64-only build - both will run in 64bit mode and both will fail when any of the dependencies doesn't have an x64/Any-CPU version. Neither Any-CPU nor x64 compiled apps will "revert to 32bit" on a 64bit machine, not under any circumstances, this is often a bad thing since many programs don't work in 64bit mode but are Any-CPU anyway (fortunately it's possible to edit them to be x86-only)
modified on Thursday, January 28, 2010 6:46 PM
|
|
|
|
|
Hello Everybody .... I have been working on C# Windows Application almost for 2 years and .. But now I wanted to start working on Devices like mobiles ... Is that possible to write some code and to run on mobiles?? .... If yes I will move on working on it ...just give me ur suggestions
Thank you alll
|
|
|
|
|
if your device supports the .NET Framework (or the .NET Compact Framework), then you can create apps for it using C#.
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]
|
|
|
|
|
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?
|
|
|
|