Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
pointer
- Page 1
VB6: how avoid these memory leak on API timer?
Programming
Software Development
1 Month Ago
by cambalinho
…Nothing Exit Sub ErrHandler: End Sub Private Function PtrObj(ByVal
Pointer
As Long) As Object Dim objObject As Object CopyMemory …objObject,
Pointer
, 4& Set PtrObj = objObject CopyMemory objObject, 0&…
Re: VB6: how avoid these memory leak on API timer?
Programming
Software Development
1 Month Ago
by cambalinho
i did a simple mistake: Set GameBitmap = Nothing instead: If Not GameBitmap Is Nothing Then Set GameBitmap = Nothing End If what event is used when i press the 'stop' button on IDE? yes is give me a memory leak :( seems that resolve for sometimes and not forever :(
Re: VB6: how avoid these memory leak on API timer?
Programming
Software Development
1 Month Ago
by cambalinho
1 - yes i can't assign an object\instance to nothing without test it 1st: Dim WithEvents tmr As vbAPITimerTools.APITimer 'create a vbAPITimerTools.APITimer instance with an event Set tmr = New vbAPITimerTools.APITimer 'initializate the instance If Not tmr Is Nothing Then tmr.StopTimer Set tmr = …
Re: VB6: how avoid these memory leak on API timer?
Programming
Software Development
1 Month Ago
by rproffitt
I have yet to read the issue of leaks were entirely plugged in VB6. Example at https://forum.codejock.com/topic7921.html notes an area that appears to be "yup, it does that" in reference to MFC 6.0 CString implementation. Given this is VB6 I don't expect any fix. At worst you'll have to restart the app.
Re: VB6: how avoid these memory leak on API timer?
Programming
Software Development
1 Month Ago
by rproffitt
Finding memory leaks in VB6 should be easy. That's one old leaky system. Fixing them is hard to impossible. Reference the link I supplied.
pointer
Programming
Software Development
20 Years Ago
by NIHAR RANJAN
…::[/SIZE][/COLOR] [SIZE=2][COLOR=DarkOrange]
Pointer
is a variable that can hold address value.
Pointer
to integer is not type of… integer A questain may arises to your mind that why
Pointer
variable is not declare like…
Re: pointer
Programming
Software Development
15 Years Ago
by siddhant3s
… of p[i] is obviously a
pointer
-to-int. While the type of p is
pointer
-to-
pointer
-to-int. The type of… array of int. Actually, because of the infamous analogy of
pointer
and arrays, few often ignore that they are actually not…. But strictly speaking, the OP explicitly declared p as
pointer
-to-
pointer
-to-int hence p[i] is not an array but…
Re: pointer
Programming
Software Development
11 Years Ago
by rishif2
…of other variable (i.e
Pointer
variable's value is address of another variable)
Pointer
variable has power to access… that referenced variable we can create a variable as
pointer
type by simply adding the sign `*` for ex:-… int i; int *j; //
pointer
type variable j=&i; //assigning address to the…
Re: Pointer
Programming
Software Development
10 Years Ago
by Learner010
… value of a vairable or only takes adress of vairable ??
pointer
variable takes address of another variable which must be same…=10; float y; ptr=&y; //Incorrect . Because ptr is
pointer
to int and it can't be used to point… same.the statement will assign the address of x to
pointer
ptr print *ptr //*ptr is de referencing(i.e. …
Re: Pointer
Programming
Software Development
10 Years Ago
by David W
… any kind of 'object' ... including the address of an other
pointer
variable ... and in that case, you then have a… '
pointer
to a
pointer
'. One very common use of pointers is when you allocate… dynamic memory ... The
pointer
then holds the address to the first byte in that…
Re: pointer
Programming
Software Development
16 Years Ago
by Bhoot
>>now whatever I change in the
pointer
of a, also gets changed in b. So they both … have understood, i would like to say the following : A
pointer
actually stores an address of the variable it points to… variable (a character variable in your case) from the
pointer
value. Say the
pointer
is char* ptr. Then ptr gives the address…
Re: pointer
Programming
Software Development
11 Years Ago
by deceptikon
… it? A variable holds a value. A
pointer
's value is an address. How is that…To be strictly correct you'd say a
pointer
just stores an address. Or if you …especially pedantic, the C standard says that a
pointer
is an object whose value provides a reference…= malloc(N); The only variable involved is the
pointer
, so how can you say that it points to…
Re: pointer
Programming
Software Development
16 Years Ago
by e_agam
You can compare the
pointer
with the location in the memory of the structures (using &) if
pointer
== &struct ==> the
pointer
points to that struct.
Pointer Help
Programming
Software Development
15 Years Ago
by flipjoebanana
Hello, I am trying to figure out why
pointer
address is not preserved over a function call and how …;,argv[0]); return 0; } void test_function(char **argv,char *line) { /*
pointer
value not kept with this why? */ *argv = line; /* I know…
pointer
Programming
Software Development
15 Years Ago
by MicrosoftMahmou
… you bear with me and help me. in
pointer
: if i definition a
pointer
as integer ********************************** int **p = new int*[M]; for…
pointer help ~
Programming
Software Development
13 Years Ago
by wildplace
im trying to learn
pointer
n the &(no idea the specific name for it); … of k? can anyone refer sum good tutorial for learing
pointer
and memoery location stuffs.... they are so confusing >.<…
Re: pointer help ~
Programming
Software Development
13 Years Ago
by Fbody
…, which you should not do. When you do this, the
pointer
points at a variable that gets destroyed when the function…) of the variable immediately following it for storage in a
pointer
.
Pointer help
Programming
Software Development
10 Years Ago
by chubbyy.putto
… so forth. The function should return a
pointer
to the new array Use ONLY
pointer
parameters instead of arrays in both functions…
Re: Pointer help
Programming
Software Development
10 Years Ago
by Banfa
…, that means that at line 34 you return an invalid
pointer
which in main you then try an dereference. This function…** deleted it. The calling function, main, should store the returned
pointer
and then when it has finished with the new array…
Re: pointer
Programming
Software Development
16 Years Ago
by manzoor
… have a struct, it contains two data members and a
pointer
to char. I created two objects of the struct and… first like b = a; now whatever I change in the
pointer
of a, also gets changed in b. So they both…
Re: pointer
Programming
Software Development
16 Years Ago
by kux
of course the pointers in the structs point to the same thing. That is because you do a shallow copy. If you want the two char pointers inside the structs point to diffrent strings you need to do a deep copy ( copy the content pointed by the
pointer
in a and make the
pointer
in b point to the new content ).
Re: pointer
Programming
Software Development
16 Years Ago
by Narue
… framework. But my question to you is, what if the
pointer
isn't pointing to the address of a variable? For… of to what they are pointing ? The value of a
pointer
is the address that it points to.
Re: pointer
Programming
Software Development
15 Years Ago
by Ancient Dragon
[QUOTE=xfreebornx;1001522]Hello please how can i get a
pointer
value that is in for loop???[/QUOTE] The star dereferences a
pointer
[icode]int x = *poionter; [/icode]
Re: pointer
Programming
Software Development
15 Years Ago
by arshad115
can you explain your question a bit? you can get the value of a
pointer
by "*". if [code=c++] int x=6; int *y=&x; cout << *y << endl; //get the value of
pointer
[/code] hope that helps.
Re: pointer help ~
Programming
Software Development
13 Years Ago
by Narue
… add a level of indirection and make p itself a
pointer
in main. The same issue exists because pointers are passed…
Re: pointer help ~
Programming
Software Development
13 Years Ago
by wildplace
@Narue u saved my life... they(
pointer
n &) still confuse me.., just wonder if u have …
Re: Pointer Help
Programming
Software Development
13 Years Ago
by Narue
… object, it is indeed a ch8_struct object rather than a
pointer
and the dot operator should be used: [code] (*g_ppStructArray)[1… [ICODE]p[0][/ICODE] are functionally equivalent, but unless the
pointer
is representing an array, using the subscript operator can be…
Re: pointer
Programming
Software Development
11 Years Ago
by rishif2
… languages) and now after searching something more on the topic
Pointer
, i really feel that i didnt grasp all things regarding…
Re: Pointer
Programming
Software Development
10 Years Ago
by sepp2k
A
pointer
is the address of a variable (or the address of an array slot, the address of a struct member etc.). For as long as the pointed-to variable is alive, you can access its value by dereferencing the
pointer
.
pointer
Programming
Software Development
16 Years Ago
by manzoor
How do you know to what a
pointer
is pointing to ?
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC