|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-03-10 15:05:57
Preben Hagh Strunge Holm schrieb:
> The code run's very smooth and fine when running a program (text), but
> when programming as a plugin or part of a qt-application it's
> reproducible both with gcc-4.1.1-r3 (gentoo) and gcc-4.2.2 (gentoo).
>
Hm, so it may be a memory management problem. Can you try
dGv = prod<vector<double> >(dG,v);
This forces the product to be computed in a temporary before calling the copy constructor.
Can you debug what happens at this line? Maybe there is just a missing check in vector::resize() or unbounded_array::resize().
If this does not help, send me a package. However it will take a few days until I can investigate this.
mfg
Gunter