User Profile

Collapse

Profile Sidebar

Collapse
Xegros
Xegros
Last Activity: Jun 26 '07, 11:13 AM
Joined: Jun 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Xegros
    replied to deallocating char** (double pointer) properly.
    in C
    Thanks to everybody for the help. But you know what, while i was sleeping (i've just had a 2 hour nap) i had an illumination. I realized that that i had to do this :

    argv = (char**)malloc( argc*4);

    instead of just this :

    argv = (char**)malloc( argc);

    Man i can't believe it was basic stuff. One of you said i forgot to free the memory for "argv", well i actually didn't forget, desperate...
    See more | Go to post

    Leave a comment:


  • Xegros
    started a topic deallocating char** (double pointer) properly.
    in C

    deallocating char** (double pointer) properly.

    hi there, i'm trying to get this get to work but after some clicks (the procedure activates after a click) some text gets messed up, it is some memory mess i guess. anyway take a look, tell me if there's anything wrong (i'm using C++Builder).
    void __fastcall TForm1::btnTrac eClick(TObject *Sender)
    {
    String options;
    //options = Application->ExeName;
    options = "KanedaX";
    int MaxWidth=0,i,ar gc=1;...
    See more | Go to post
No activity results to display
Show More
Working...