TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KNUT SCHUENEMANN
from: CLIFF RHODES
date: 1997-10-15 11:15:00
subject: Pixel? Brush?? TCanvas??

--> Knut Schuenemann wrote to All  <--
KS>   TChild* Child;
KS>   TCanvas* Target;
KS>   Target = (TCanvas*)Child;
KS>   Target->Pixels[x][y] = Color;  ->  Exception !
Did you ever actually create an object for Child to point to? All I 
see are pointers--and they are not initialized to any valid object.
Child points nowhere valid, you set Target to point there too, then 
you attempt to put data in an unauthorized spot.
Try something like:
TChild  Child;
Target = (TCanvas *) &Child;
Cliff Rhodes
cliff.rhodes@juge.com
crhodes@flash.net
X CMPQwk 1.42 1692 X"A lean compromise is better than a fat lawsuit." - 
George Herbert
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.