Message: Re: Problem with examples using OpenGLStore and Visual C++ Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem with examples using OpenGLStore and Visual C++ 

Forum: Documentation and Examples
Re: Note Problem with examples using OpenGLStore and Visual C++ (John Watts)
Date: 16 Jan, 2014
From: John Allison <John Allison>

Dear John

I'm interested to know if you are still having problems with this. I suspect it's to do with the establishment of the static variable

  G4VisAttributes::Invisible

Sometimes the instantiation of such static variables is delayed until the first use of the dynamically loaded library in which they are defined, in this case, libG4graphics_reps.dll, so if no part of it has been used prior to

  worldLV->SetVisAttributes (G4VisAttributes::Invisible);

it might not be correctly instantiated. This seems to be more of a problem on Windows than on Unix.

We actually recommend

  worldLV->SetVisAttributes (G4VisAttributes::GetInvisible());

- and perhaps our examples should reflect this. This is a function that forces the instantiation of the static variable before returning a reference to it. I would be very grateful if (a) you could try to reproduce the original problem and (b) see if using GetInvisible() cures it.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Problem with examples using OpenGLStore and Visual C++   (John Allison - 16 Jan, 2014)
(_ None: Re: Problem with examples using OpenGLStore and Visual C++   (John Watts - 16 Jan, 2014)
 Add Message Add Message
to: "Re: Problem with examples using OpenGLStore and Visual C++"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]