Preeteesh
1st June 2012, 11:01
Hi, I have a dll which returns QPen and this dll is used by another exe/dll which actually uses this Pen in the paint method. This causes a assertion _BLOCK_TYPE_IS_VALID. This happens bec QPen internally allocates it's d_ptr on heap which when deleted (based upon ref count mech) causes this assertion...
This Debug assertion is telling me; basically, the heap you are trying to return the memory to doesn't know anything about that block ...
Does that means i shouldn't use Qt objects inside a DLL ? If i need to use how should i use across dll boundaries?
Note -> I am using MSVC compiler.
This Debug assertion is telling me; basically, the heap you are trying to return the memory to doesn't know anything about that block ...
Does that means i shouldn't use Qt objects inside a DLL ? If i need to use how should i use across dll boundaries?
Note -> I am using MSVC compiler.