Click here to Skip to main content
15,921,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Benchmark not Benching Pin
Reelix23-Apr-08 23:37
Reelix23-Apr-08 23:37 
GeneralRe: Benchmark not Benching Pin
c242323-Apr-08 23:40
c242323-Apr-08 23:40 
GeneralDatagrid Issue Pin
Member 400849223-Apr-08 21:23
Member 400849223-Apr-08 21:23 
GeneralRe: Datagrid Issue Pin
Harini N K23-Apr-08 22:28
Harini N K23-Apr-08 22:28 
GeneralRe: Datagrid Issue Pin
John_Adams23-Apr-08 22:41
John_Adams23-Apr-08 22:41 
GeneralDynamically allocate memory for Struct Objects Pin
cute7868523-Apr-08 21:09
cute7868523-Apr-08 21:09 
GeneralRe: Dynamically allocate memory for Struct Objects Pin
Giorgi Dalakishvili23-Apr-08 21:18
mentorGiorgi Dalakishvili23-Apr-08 21:18 
GeneralRe: Dynamically allocate memory for Struct Objects Pin
Guffa23-Apr-08 21:50
Guffa23-Apr-08 21:50 
As Giorgi already said, use a list:

List<BkMarkInfo> BkMark = new List<BkMarkInfo>();

Use a class instead of a struct. You have made a mutable struct, which is not very practical. This, for example, doesn't work as expected:

BkMark[4].bkMarkName = "document";

When you access the struct, it will be copied into a temporary variable. The bkMarkName in the temporary variable is changed, but that won't affect the bkMarkName of the struct in the list.

Also, a struct should not be larger than 16 bytes. Yours is about twice that size.

Despite everything, the person most likely to be fooling you next is yourself.

QuestionClickOnce Config File Problem Pin
Programm3r23-Apr-08 20:51
Programm3r23-Apr-08 20:51 
QuestionGraphic Problem Pin
Reza Shojaee23-Apr-08 20:30
Reza Shojaee23-Apr-08 20:30 
GeneralRe: Graphic Problem Pin
Giorgi Dalakishvili23-Apr-08 20:56
mentorGiorgi Dalakishvili23-Apr-08 20:56 
GeneralRe: Graphic Problem Pin
Reza Shojaee23-Apr-08 21:06
Reza Shojaee23-Apr-08 21:06 
GeneralRe: Graphic Problem Pin
Giorgi Dalakishvili23-Apr-08 21:08
mentorGiorgi Dalakishvili23-Apr-08 21:08 
GeneralRe: Graphic Problem Pin
Reza Shojaee23-Apr-08 21:16
Reza Shojaee23-Apr-08 21:16 
GeneralWaitOne with 0 as timeout value Pin
George_George23-Apr-08 20:23
George_George23-Apr-08 20:23 
Generalproblem with DataBase Path While uploading Images Pin
avvaru.murali23-Apr-08 20:14
avvaru.murali23-Apr-08 20:14 
GeneralRe: problem with DataBase Path While uploading Images Pin
Spunky Coder23-Apr-08 20:30
Spunky Coder23-Apr-08 20:30 
GeneralRe: problem with DataBase Path While uploading Images Pin
avvaru.murali23-Apr-08 20:36
avvaru.murali23-Apr-08 20:36 
GeneralRe: problem with DataBase Path While uploading Images Pin
Spunky Coder23-Apr-08 21:04
Spunky Coder23-Apr-08 21:04 
GeneralBandWidth Programming in C# Pin
Balaji.KJ23-Apr-08 19:34
Balaji.KJ23-Apr-08 19:34 
GeneralRe: BandWidth Programming in C# Pin
MumbleB23-Apr-08 20:16
MumbleB23-Apr-08 20:16 
GeneralClose an HTTPListenerResponse.OutputStreram Pin
George_George23-Apr-08 19:02
George_George23-Apr-08 19:02 
Generalneed help retrieving an autonumber from an MS Access table using C# Pin
precado99923-Apr-08 15:12
precado99923-Apr-08 15:12 
GeneralRe: need help retrieving an autonumber from an MS Access table using C# Pin
I.explore.code23-Apr-08 18:47
I.explore.code23-Apr-08 18:47 
GeneralRe: need help retrieving an autonumber from an MS Access table using C# Pin
precado99924-Apr-08 10:59
precado99924-Apr-08 10:59 

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.