newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
Symbian C++
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
Andreas
52
eric
46
rbrunner
42
alh
40
Bones
26
more
Feeds
More feeds...
Destroy the class from itself
Login
to reply to this topic.
Thu, 2005-02-17 14:57
balinttoth
Joined: 2005-02-15
Forum posts: 12
Hi all,
How can I destroy the class from itself, when a function in the class is called?
Thanks for the answare in advance!
Best regards,
Balint Toth
Login
or
register
to post in forums
Thu, 2005-02-17 15:02
Elk
Joined: 2005-02-16
Forum posts: 22
Destroy the class from itself
"delete this;"
Do not, obviously, reference any member variables etc in the control after that.
Generally, functions that destroy themselves finish in a capital D.
The only general use of a -D function that I can think off of the top of my head is CEikDialog::ExecuteLD.
Use with care!
 
Login
to reply to this topic.
Forum posts: 22
Do not, obviously, reference any member variables etc in the control after that.
Generally, functions that destroy themselves finish in a capital D.
The only general use of a -D function that I can think off of the top of my head is CEikDialog::ExecuteLD.
Use with care!