Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Clear a WebBrowser's History???? Pin
FoxholeWilly9-May-06 3:57
FoxholeWilly9-May-06 3:57 
GeneralRe: Clear a WebBrowser's History???? Pin
led mike9-May-06 7:04
led mike9-May-06 7:04 
GeneralRe: Clear a WebBrowser's History???? Pin
FoxholeWilly10-May-06 3:55
FoxholeWilly10-May-06 3:55 
AnswerRe: Clear a WebBrowser's History???? Pin
kalyanhere8-May-06 19:07
kalyanhere8-May-06 19:07 
QuestionEmbedded javascript not working. Pin
Loophole8-May-06 6:48
Loophole8-May-06 6:48 
AnswerRe: Embedded javascript not working. Pin
Loophole8-May-06 8:24
Loophole8-May-06 8:24 
Questionmemory allocation Pin
torNAdE8-May-06 6:34
torNAdE8-May-06 6:34 
AnswerRe: memory allocation Pin
Judah Gabriel Himango8-May-06 6:40
sponsorJudah Gabriel Himango8-May-06 6:40 
In C# you don't allocate blocks of memory directly. The common language runtime that runs your code handles memory allocation and memory cleanup automatically for you. So instead of malloc, you allocate objects using the new keyword.

MyFoo obj = new MyFoo(); // allocates memory for MyFoo instance and returns that instance.


If you're absolutely certain that you need to allocate a block of memory (the only real scenario for this would be interoping with native code), then you can use System.Runtime.InteropServices.Marshal.AllocHGlobal or some of the other interop classes inside the InteropServices namespace.

Does that answer your question?

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Is Jesus the Jewish Messiah?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: memory allocation Pin
torNAdE8-May-06 6:49
torNAdE8-May-06 6:49 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 7:06
sponsorJudah Gabriel Himango8-May-06 7:06 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 7:08
sponsorJudah Gabriel Himango8-May-06 7:08 
GeneralRe: memory allocation Pin
torNAdE8-May-06 7:16
torNAdE8-May-06 7:16 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 9:51
sponsorJudah Gabriel Himango8-May-06 9:51 
GeneralRe: memory allocation Pin
torNAdE8-May-06 13:35
torNAdE8-May-06 13:35 
QuestionAttaching C# project to running instance of the same project - Very Urgent Pin
kumar.bs8-May-06 6:18
kumar.bs8-May-06 6:18 
AnswerRe: Attaching C# project to running instance of the same project - Very Urgent Pin
Judah Gabriel Himango8-May-06 6:44
sponsorJudah Gabriel Himango8-May-06 6:44 
GeneralRe: Attaching C# project to running instance of the same project - Very Urgent Pin
kumar.bs8-May-06 6:57
kumar.bs8-May-06 6:57 
GeneralRe: Attaching C# project to running instance of the same project - Very Urgent Pin
Judah Gabriel Himango8-May-06 7:10
sponsorJudah Gabriel Himango8-May-06 7:10 
AnswerRe: Attaching C# project to running instance of the same project - Very Urgent Pin
leppie8-May-06 9:12
leppie8-May-06 9:12 
QuestionSerialization Exception Pin
sjdevo3gsr8-May-06 6:14
sjdevo3gsr8-May-06 6:14 
AnswerRe: Serialization Exception Pin
Judah Gabriel Himango8-May-06 6:37
sponsorJudah Gabriel Himango8-May-06 6:37 
AnswerRe: Serialization Exception Pin
sjdevo3gsr8-May-06 9:31
sjdevo3gsr8-May-06 9:31 
QuestionAnother Question about Reflection ! Pass-By-reference Problem !! Pin
User 20930738-May-06 5:48
User 20930738-May-06 5:48 
AnswerRe: Another Question about Reflection ! Pass-By-reference Problem !! Pin
Judah Gabriel Himango8-May-06 6:35
sponsorJudah Gabriel Himango8-May-06 6:35 
GeneralRe: Another Question about Reflection ! Pass-By-reference Problem !! Pin
User 20930738-May-06 21:12
User 20930738-May-06 21:12 

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.