Am Dienstag, 30. Mai 2006 18:06 schrieb Andre Poenitz: > Is this a extreme-trial-and-error-ing contest?
No. It is the attempt to find out how to fit QApplication into the GUII framework in such a way that it does not crash on OS X (and I know what you will now answer). > If so, this should be indicated in the subject line somehow. Reading the whole thread would also help. > void foo() > { > Ptr p = new P; > ... > delete p; > } > > is destruction-wise equivalent to > > void foo() > { > P p; > } I know that. Now could you please tell me how to do Ptr p; void foo() { Ptr = new P; } void bar() { delete P; } without a static object and without new/delete? This is impossible AFAIK, therefore I am currently reorganizing the startup mechanism to make void foo() { P p; } possible. It turned out that the pointer solution did not really work (apart from the exception safety which is not so important because we have already the lyxsocket and lyxserver pointers) Georg