Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending mails Pin
alok_2k326-Feb-08 18:43
alok_2k326-Feb-08 18:43 
GeneralRe: Sending mails Pin
Judah Gabriel Himango27-Feb-08 4:08
sponsorJudah Gabriel Himango27-Feb-08 4:08 
GeneralLinq expressions instead of reflection Pin
Roger Alsing26-Feb-08 4:11
Roger Alsing26-Feb-08 4:11 
QuestionMemory leak? Pin
Harvey Saayman26-Feb-08 3:55
Harvey Saayman26-Feb-08 3:55 
AnswerRe: Memory leak? Pin
J4amieC26-Feb-08 4:31
J4amieC26-Feb-08 4:31 
AnswerRe: Memory leak? Pin
Judah Gabriel Himango26-Feb-08 4:31
sponsorJudah Gabriel Himango26-Feb-08 4:31 
Generalmarshalling a complex structure Pin
cruppstahl26-Feb-08 3:41
cruppstahl26-Feb-08 3:41 
GeneralRe: marshalling a complex structure Pin
J a a n s26-Feb-08 5:33
professionalJ a a n s26-Feb-08 5:33 
I am not sure about the following code block; but you can give a try

<br />
fixed (byte* bk = data)<br />
{<br />
  key.data = bk;<br />
  int st = FindLow(handle, IntPtr.Zero, ref key, ref record, flags);<br />
  if (st == 0)<br />
    {<br />
    //return record.data;  // <--- doesn't compile<br />
    IntPtr recData = new IntPtr(record.data);<br />
    byte[] newArray = new byte[record.size];<br />
    Marshal.Copy(recData, newArray, 0, record.size);<br />
    return newArray;<br />
    }<br />
  throw new DatabaseException(st);<br />
}<br />


Please check whether record.data has to be pinned or not.

*jaans

GeneralRe: marshalling a complex structure Pin
cruppstahl26-Feb-08 5:50
cruppstahl26-Feb-08 5:50 
GeneralRunning Single Instance For C# Pin
tr_thorn26-Feb-08 3:09
tr_thorn26-Feb-08 3:09 
GeneralRe: Running Single Instance For C# Pin
Bekjong26-Feb-08 3:27
Bekjong26-Feb-08 3:27 
GeneralRe: Running Single Instance For C# Pin
DaveyM6926-Feb-08 4:36
professionalDaveyM6926-Feb-08 4:36 
QuestionHow to remove a runtime created object? Pin
Cuelight26-Feb-08 2:42
Cuelight26-Feb-08 2:42 
AnswerRe: How to remove a runtime created object? Pin
Martin#26-Feb-08 3:38
Martin#26-Feb-08 3:38 
QuestionExtract Image from Excel Files Pin
Member 425417926-Feb-08 2:39
Member 425417926-Feb-08 2:39 
GeneralRe: Extract Image from Excel Files Pin
buchstaben26-Feb-08 4:10
buchstaben26-Feb-08 4:10 
QuestionRe: Extract Image from Excel Files Pin
Member 425417926-Feb-08 5:02
Member 425417926-Feb-08 5:02 
GeneralOutlook plugin programmer needed Pin
Spinnerdog26-Feb-08 2:18
Spinnerdog26-Feb-08 2:18 
Generaltreeview afterselect problem Pin
Rick van Woudenberg26-Feb-08 1:42
Rick van Woudenberg26-Feb-08 1:42 
GeneralRe: treeview afterselect problem Pin
Bekjong26-Feb-08 2:11
Bekjong26-Feb-08 2:11 
GeneralRe: treeview afterselect problem Pin
John_Adams26-Feb-08 3:03
John_Adams26-Feb-08 3:03 
GeneralRe: treeview afterselect problem Pin
Bekjong26-Feb-08 3:19
Bekjong26-Feb-08 3:19 
GeneralRe: treeview afterselect problem Pin
Xmen Real 26-Feb-08 4:22
professional Xmen Real 26-Feb-08 4:22 
QuestionXml Serialization - deserialize a List problem Pin
Nathan Gloyn26-Feb-08 1:32
Nathan Gloyn26-Feb-08 1:32 
AnswerRe: Xml Serialization - deserialize a List problem Pin
Raji Vulava6-Jan-10 20:11
Raji Vulava6-Jan-10 20:11 

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.