Page 1 of 1

[SOLVED]Variables Error

Posted: Thu Mar 31, 2011 7:43 am
by melgmry0101b
Hi everyone,
I have a memory issue.
I have two Variables.
The first one's name is "Achar" and i am using this code to load it :

Code: Select all

static char* Achar = "I am empty";
The second one's name is "mus" and i am using this code to load it :

Code: Select all

static char* mus = "I am empty too";
I am using the first one to load a bitmap that contains the "A" char and the second one to load the mouse cursor bitmap in it.

My problem is:
when i load the mouse bitmap , the Achar variable overwriting with the contents of the mus var contents.
I have a memory manager.
i use this code to load the contents of the bitmap in the var:

Code: Select all

Achar = (char*)(bitmapp -> pixeldata);
---------------------------------------------
Thank you in advance :D
---------------------------------------------

Re: Variables Error

Posted: Mon Apr 04, 2011 6:41 am
by melgmry0101b
it points to the data of the Bitmap

Re: Variables Error

Posted: Mon Apr 04, 2011 7:11 am
by Solar
Machete Debugging. In your case, you did cut away too much before posting, and it is impossible to reproduce your problem given the information you provided. Make us see your problem on our computers.

Re: Variables Error

Posted: Mon Apr 04, 2011 2:00 pm
by melgmry0101b
I've repaired it
It was an initialization error in a place in my OS
Sorry for the inconvenience