Ajout d'exemples d'erreurs d'exécution

Registered by Daniel Cussol

L'idée est d'ajouter d'autres exemples d'erreurs qui provoquent des ereurs d'exécution, du type;
TCanvas *c1=new TCanvas("c1","Canvas");
TH1F *h=(TH1F *)gROOT->FindObject("c1");
h->SetLineColor(kRed);

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Un autre type d'erreur: on détruit un objet, on oublie qu'on l'a détruit, et on essaye d'utiliser un pointeur dont l'adresse ne correspond plus à rien:
TH1F *h=new TH1F("toto","Test",100,0,10);
delete gROOT->FindObject("toto");
h->GetName();

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.