Click here to Skip to main content
14,547,127 members
   

C#

 
GeneralRe: Size of attachments to mail send? Pin
Member 387988123-Jul-08 20:06
MemberMember 387988123-Jul-08 20:06 
GeneralRe: Size of attachments to mail send? Pin
N a v a n e e t h23-Jul-08 20:33
MemberN a v a n e e t h23-Jul-08 20:33 
GeneralRe: Size of attachments to mail send? Pin
Member 387988123-Jul-08 20:44
MemberMember 387988123-Jul-08 20:44 
QuestionError converting Int64 to Int32 and vice versa Pin
JoeRip23-Jul-08 18:45
MemberJoeRip23-Jul-08 18:45 
AnswerRe: Error converting Int64 to Int32 and vice versa Pin
half-life23-Jul-08 19:48
Memberhalf-life23-Jul-08 19:48 
GeneralRe: Error converting Int64 to Int32 and vice versa Pin
JoeRip23-Jul-08 19:57
MemberJoeRip23-Jul-08 19:57 
AnswerRe: Error converting Int64 to Int32 and vice versa Pin
Robert.C.Cartaino24-Jul-08 8:30
MemberRobert.C.Cartaino24-Jul-08 8:30 
GeneralRe: Error converting Int64 to Int32 and vice versa Pin
JoeRip24-Jul-08 10:44
MemberJoeRip24-Jul-08 10:44 
Sure:

The following High / Low combination: -1173074781 / -1181223073
was round-tripping back as -1173074782 / -1181223073

(note the High Order output is one more than the input.)

I determined that that code which builds the 64bit INT was the culprit, here's why. These IDs are passed to me by an application that actually stores a 64 bit number in it's XML database. However, instead of passing me the 64bit number, it passes me two 32 bit numbers.

I looked inside the database for the record I was querying, and the 64bit number stored there is: BA144CA3B997F75F

But my code (return (((Int64)highID << 32) + (Int64)lowID)) was returning BA144CA2B997F75F (note the difference at the 8th digit - the 2 should be a three)

So I was getting a bad 64 bit number from my code. I changed my units to UInt64, and my code started returning a 64 bit number which matched that number stored in the database.

I don't know exactly why it was failing, but I could tell it was a "size" issue, because some inputs were returning the correct 64 bit numbers (as validated in the database), and some were not.
QuestionCan you get the resualt? help me, please! Pin
sgncdc23-Jul-08 17:56
Membersgncdc23-Jul-08 17:56 
AnswerRe: Can you get the resualt? help me, please! Pin
half-life23-Jul-08 19:41
Memberhalf-life23-Jul-08 19:41 
AnswerRe: Can you get the resualt? help me, please! Pin
sgncdc23-Jul-08 20:25
Membersgncdc23-Jul-08 20:25 
GeneralRe: Can you get the resualt? help me, please! Pin
Guffa23-Jul-08 23:18
MemberGuffa23-Jul-08 23:18 
AnswerRe: Can you get the resualt? help me, please! Pin
Christian Graus23-Jul-08 23:41
mveChristian Graus23-Jul-08 23:41 
QuestionProblems when I update database from a xml file Pin
dienhuflit23-Jul-08 17:51
Memberdienhuflit23-Jul-08 17:51 
AnswerRe: Problems when I update database from a xml file Pin
half-life23-Jul-08 19:57
Memberhalf-life23-Jul-08 19:57 
GeneralRe: Problems when I update database from a xml file Pin
dienhuflit24-Jul-08 15:23
Memberdienhuflit24-Jul-08 15:23 
QuestionData storage and Uploading file Pin
Banjo Ayorinde23-Jul-08 17:13
MemberBanjo Ayorinde23-Jul-08 17:13 
AnswerRe: Data storage and Uploading file Pin
half-life23-Jul-08 19:53
Memberhalf-life23-Jul-08 19:53 
GeneralRe: Data storage and Uploading file Pin
Abdul Sami X24-Jul-08 20:15
MemberAbdul Sami X24-Jul-08 20:15 
QuestionCopy Dictionay Object To Other [modified] Pin
vaibhav.jape@gmail.com23-Jul-08 13:30
Membervaibhav.jape@gmail.com23-Jul-08 13:30 
AnswerRe: Copy Dictionay Object To Other Pin
N a v a n e e t h23-Jul-08 17:01
MemberN a v a n e e t h23-Jul-08 17:01 
GeneralRe: Copy Dictionay Object To Other Pin
vaibhav.jape@gmail.com23-Jul-08 17:20
Membervaibhav.jape@gmail.com23-Jul-08 17:20 
AnswerRe: Copy Dictionay Object To Other [modified] Pin
Elroy Dsilva23-Jul-08 17:10
MemberElroy Dsilva23-Jul-08 17:10 
AnswerRe: Copy Dictionay Object To Other Pin
Elroy Dsilva23-Jul-08 17:37
MemberElroy Dsilva23-Jul-08 17:37 
AnswerRe: Copy Dictionay Object To Other Pin
N a v a n e e t h23-Jul-08 19:30
MemberN a v a n e e t h23-Jul-08 19:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.