[Qt] Qt fix for try..except in CopyUnicodeToPWideString()

zeljko zeljko at holobit.net
Wed Jul 4 08:59:05 CEST 2007


On Wednesday 04 July 2007 01:57, Den Jean wrote:
> On Wednesday 27 June 2007 10:07:34 am zeljko wrote:
> > search for var declaration
> > PWideString someting;
> > replace with
> > PWideString something = 0;
> >
> > Those uninitialized pointers produced a real mess in above widgets.
>
> Note that I did not add the "= 0" initialization,
> but I added a factory call. Only pascal compiler can
> create widestring with refcount and len before the pointer.
>
> ....
> PWideString t_p1;
> initializePWideString(t_p1);   <<-----------
> copyQStringToPWideString(p1, t_p1);
> (*(func_type)valueChanged2_event.func)(valueChanged2_event.data, t_p1);
> finalizePWideString(t_p1);
> ....
>
> So with this version (no "= 0"), are your problems gone ?

yes, there's no more problems, you can remove PROTECT ifdef and pointer check  
from bindings.h. You must know that I don't know how your bindings generator 
works, I've fixed problem for my self as best as I know , and it worked ok 
also ;)

tnx

  zeljko



More information about the Qt mailing list