Click here to Skip to main content
16,004,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForSingleObject Pin
Not Active26-Jan-02 16:22
mentorNot Active26-Jan-02 16:22 
Generalgrid lines Pin
A_choo26-Jan-02 13:36
A_choo26-Jan-02 13:36 
GeneralRe: grid lines Pin
alex.barylski26-Jan-02 22:23
alex.barylski26-Jan-02 22:23 
GeneralRe: grid lines Pin
A_choo29-Jan-02 22:45
A_choo29-Jan-02 22:45 
GeneralPointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 12:32
Swinefeaster26-Jan-02 12:32 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Christian Graus26-Jan-02 13:33
protectorChristian Graus26-Jan-02 13:33 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 13:37
Swinefeaster26-Jan-02 13:37 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Christian Graus26-Jan-02 13:41
protectorChristian Graus26-Jan-02 13:41 
swinefeaster wrote:
I've done a lot of mucking around with this. Yes, the documentation SAYS that it should return NULL. However, dynamic_cast sometimes crashes when given an invalid pointer, and sometimes throws a bad_cast exception. Go figure!

I'd love to see the code. I don't doubt you, but this has *never* happened to me and I use dynamic_cast constantly. MAybe we can find the reason you're getting such errors.

swinefeaster wrote:
And RTTI doesn't work with multiple levels of derivation. I've tried.

I haven't, but I'll have a play tonight ( not that I doubt you, I just like to prove stuff ). That is a little disappointing...


Christian

I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

Picture the daffodil. And while you do that, I'll be over here going through your stuff.

Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now

GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 13:56
Swinefeaster26-Jan-02 13:56 
GeneralRe: Pointer Validation dynamic_cast<> Pin
26-Jan-02 15:25
suss26-Jan-02 15:25 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 16:08
Swinefeaster26-Jan-02 16:08 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Andrew Peace27-Jan-02 0:50
Andrew Peace27-Jan-02 0:50 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster27-Jan-02 0:51
Swinefeaster27-Jan-02 0:51 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Jamie Hale28-Jan-02 5:17
Jamie Hale28-Jan-02 5:17 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster28-Jan-02 9:32
Swinefeaster28-Jan-02 9:32 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Matt Gullett26-Jan-02 14:25
Matt Gullett26-Jan-02 14:25 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 16:05
Swinefeaster26-Jan-02 16:05 
GeneralRe: Pointer Validation dynamic_cast<> Pin
26-Jan-02 16:45
suss26-Jan-02 16:45 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 16:54
Swinefeaster26-Jan-02 16:54 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Tim Smith26-Jan-02 17:13
Tim Smith26-Jan-02 17:13 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Tim Smith26-Jan-02 17:17
Tim Smith26-Jan-02 17:17 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Tim Smith26-Jan-02 17:09
Tim Smith26-Jan-02 17:09 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 20:26
Swinefeaster26-Jan-02 20:26 
GeneralRe: Pointer Validation dynamic_cast<> Pin
Swinefeaster26-Jan-02 21:32
Swinefeaster26-Jan-02 21:32 
GeneralRe: Pointer Validation dynamic_cast&lt;&gt; Pin
Swinefeaster17-Jul-03 10:05
Swinefeaster17-Jul-03 10:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.