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...
User Profile
Collapse
-
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;...
No activity results to display
Show More
Leave a comment: