[Qt-interest] querySubObject () is retuning a null pointer

Santhosh Y santhosh at softjin.com
Mon Aug 2 15:17:27 CEST 2010


Hi,

Please find the following attached files with this e-mail.

    * Server side
          o aeracontroller.cpp
          o aeracontroller.h
          o comsupport.h
          o comsupport.cpp
          o main.cpp
          o comapp.pro
          o comapp.rc
    * Tester side
          o tester-side.cpp


Above code is compilable.  Please build server side and tester side 
separately.

When we try to launh qaxserver from tester side, it is failing in the 
following line

          QAxObject* aeraController = object.querySubObject("controller");
    *   if (aeraController == NULL) // I am getting NULL ptr here !!!! *
    *        return -1;*

         aeraController->property("callBack");

Please tell me what could be the reason here?

Thanks in advance.

Regards
Santhosh


-- 
----------------------------------------------------
Y Santhosh Kumar -
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------Hi,





Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tester-side.cpp
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: comsupport.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment.h 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aeracontroller.cpp
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aeracontroller.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0001.h 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cpp
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: comapp.pro
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0003.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: comapp.rc
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0004.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: comsupport.cpp
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100802/6d298b2f/attachment-0005.pl 


More information about the Qt-interest-old mailing list