Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2007
Memory leak using QAxWidget and SLOT


Message 1 in thread

Hello,

I am using the QAxWidget to connect to a serialportsniffing control.
The QAxWidget creates some signals, e.g. OnRead(QVariant&) and 
OnWrite(QVariant&). When I connect this signals to corresponding slots 
in my application, the memory usage of the app starts to increase very 
fast. Is this a bug? Or is there any possibility to free up the memory 
behind this references. I tried to call QVariant::clear(), but it has no 
effect. When I disconnect the signal, the memory usage stays constant.
The slot does nothing, it is only called so there are no other things 
which can cause the memory leak. Does anyone knows a solution or a
walk around for this problem.

Thanks,

Achim

--
 [ signature omitted ]