[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-windows
Subject:    Re: kdesdk build problem
From:       "Clinton Reddekop" <clinton.reddekop () gmail ! com>
Date:       2008-01-13 21:25:59
Message-ID: 33ad14340801131325w1fa1a0dcwb4f469523e5a0d24 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

I'm still working on the problem described in my previous messages.  I did
some experimentation using the code for kpercentage (which has the same
problem), and found that the "Runtime Error!" dialog is caused by the line:
    KApplication a;
in main.cpp.  Here is the applicable constructor (I think) for KApplication,
from kapplication.cpp:
    KApplication::KApplication(bool GUIenabled)
        :
QApplication((KApplicationPrivate::preqapplicationhack(),KCmdLineArgs::qtArgc()),

            KCmdLineArgs::qtArgv(), GUIenabled),
            d(new KApplicationPrivate(this))
{
    d->read_app_startup_id();
    setApplicationName(d->componentData.componentName());
    setOrganizationDomain(d->componentData.aboutData
()->organizationDomain());
    installSigpipeHandler();
    d->init(GUIenabled);
}
I did more experimentation and determined that the error dialog IS caused
BEFORE the function body of KApplication::KApplication(bool GUIenabled) is
entered.  Furthermore it is caused AFTER the constructor
KApplicationPrivate(this) runs.

So I guess it must be caused by d() (I'm assuming from the code above that
d() is called after the QApplication() constructor).  Unfortunately I don't
know what or where d() is.  Can anybody help?

My experimentation method involved putting a call to exit() at various
points in the code, to see how far it had to get for the "Runtime Error!"
dialog to appear.  I hope this is a valid way of testing?  (If there is
another thread running by this point then I could be looking in the wrong
place?)  Sorry if I've made any mistakes here.

Thanks,
Clint



On Jan 9, 2008 7:30 PM, Clinton Reddekop <clinton.reddekop@gmail.com> wrote:

> Hello again,
>
> I'm not sure if this helps at all, but I opened both kate.exe and
> konqueror.exe in "Dependency Walker" and it warned about these 4 DLL files
> for both of them:
>
> DWMAPI.DLL    Delay-load, file is missing.
> EFSADU.DLL    Delay-load, file is missing.
> SHLWAPI.DLL    Doesn't export required function "#467"
> MPR.DLL        Delay-load, doesn't export required function
> "WNetRestoreConnectionA"
>
> The first 2 are supposed to be in c:\kderoot\bin, and the last 2 are in
> c:\windows\system32.
>
> Thanks,
> Clint
>
>
> On Jan 9, 2008 6:00 PM, Clinton Reddekop < clinton.reddekop@gmail.com>
> wrote:
>
> > Hi, I tried building it again and it worked this time... I guess
> > somebody fixed something in svn.  Unfortunately the .exe files that were
> > built don't seem to be working :(   I tried running konqueror.exe and
> > kate.exe, and for both I got an "Ok" dialog with title:
> >     Microsoft Visual C++ Runtime Library
> > and text:
> >     Runtime Error!
> >     Program: c:\kderoot\bin\kate.exe (or konqueror)
> >     This application has requested the Runtime to terminate it in an
> > unusual way.
> >     Please contact the application's support team for more information.
> >
> > I didn't even know I had a "Microsoft Visual C++ Runtime Library"!  (I'm
> > using MinGW compiler.)
> >
> > Has anyone had this problem before, or can anyone tell me how I can try
> > to debug it (is there a debugger with MinGW?)
> >
> > Thanks,
> > Clint
> >
> >

[Attachment #5 (text/html)]

Hello,<br><br>I&#39;m still working on the problem described in my previous \
messages.&nbsp; I did some experimentation using the code for kpercentage (which has \
the same problem), and found that the &quot;Runtime Error!&quot; dialog is caused by \
the line: <br>&nbsp;&nbsp;&nbsp; KApplication a;<br>in main.cpp.&nbsp; Here is the \
applicable constructor (I think) for KApplication, from \
kapplication.cpp:<br>&nbsp;&nbsp;&nbsp; KApplication::KApplication(bool \
GUIenabled)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : \
QApplication((KApplicationPrivate::preqapplicationhack(),KCmdLineArgs::qtArgc()),  \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
KCmdLineArgs::qtArgv(), \
GUIenabled),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
d(new KApplicationPrivate(this))<br>{<br>&nbsp;&nbsp;&nbsp; \
d-&gt;read_app_startup_id();<br>&nbsp;&nbsp;&nbsp; \
setApplicationName(d-&gt;componentData.componentName());<br>&nbsp;&nbsp;&nbsp; \
setOrganizationDomain(d-&gt; \
componentData.aboutData()-&gt;organizationDomain());<br>&nbsp;&nbsp;&nbsp; \
installSigpipeHandler();<br>&nbsp;&nbsp;&nbsp; d-&gt;init(GUIenabled);<br>}<br>I did \
more experimentation and determined that the error dialog IS caused BEFORE the \
function body of KApplication::KApplication(bool GUIenabled) is entered.&nbsp; \
Furthermore it is caused AFTER the constructor KApplicationPrivate(this) runs. \
<br><br>So I guess it must be caused by d() (I&#39;m assuming from the code above \
that d() is called after the QApplication() constructor).&nbsp; Unfortunately I \
don&#39;t know what or where d() is.&nbsp; Can anybody help?<br><br>My \
experimentation method involved putting a call to exit() at various points in the \
code, to see how far it had to get for the &quot;Runtime Error!&quot; dialog to \
appear.&nbsp; I hope this is a valid way of testing?&nbsp; (If there is another \
thread running by this point then I could be looking in the wrong place?)&nbsp; Sorry \
if I&#39;ve made any mistakes here. <br><br>Thanks,<br>Clint<br><br><br><br><div \
class="gmail_quote">On Jan 9, 2008 7:30 PM, Clinton Reddekop &lt;<a \
href="mailto:clinton.reddekop@gmail.com">clinton.reddekop@gmail.com</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello again,<br><br>I&#39;m not \
sure if this helps at all, but I opened both kate.exe and konqueror.exe in \
&quot;Dependency Walker&quot; and it warned about these 4 DLL files for both of \
them:<br><br>DWMAPI.DLL&nbsp;&nbsp;&nbsp; Delay-load, file is missing. \
<br>EFSADU.DLL&nbsp;&nbsp;&nbsp; Delay-load, file is \
missing.<br>SHLWAPI.DLL&nbsp;&nbsp;&nbsp; Doesn&#39;t export required function \
&quot;#467&quot;<br>MPR.DLL&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Delay-load, \
doesn&#39;t export required function &quot;WNetRestoreConnectionA&quot; <br>
<br>The first 2 are supposed to be in c:\kderoot\bin, and the last 2 are in \
c:\windows\system32.<br><br>Thanks,<br>Clint<div><div></div><div \
class="Wj3C7c"><br><br><div class="gmail_quote">On Jan 9, 2008 6:00 PM, Clinton \
Reddekop &lt; <a href="mailto:clinton.reddekop@gmail.com" target="_blank">
clinton.reddekop@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">Hi, I tried building it again and it worked this time... I guess \
somebody fixed something in svn.&nbsp; Unfortunately the .exe files that were built \
don&#39;t seem to be working :(&nbsp;&nbsp; I tried running  konqueror.exe and \
kate.exe, and for both I got an &quot;Ok&quot; dialog with title: \
<br>&nbsp;&nbsp;&nbsp; Microsoft Visual C++ Runtime Library<br>and \
text:<br>&nbsp;&nbsp;&nbsp; Runtime Error!<br>&nbsp;&nbsp;&nbsp; Program: \
c:\kderoot\bin\kate.exe (or konqueror)<br>&nbsp;&nbsp;&nbsp; This application has \
requested the Runtime to terminate it in an unusual way.<br>


&nbsp;&nbsp;&nbsp; Please contact the application&#39;s support team for more \
information.<br><br>I didn&#39;t even know I had a &quot;Microsoft Visual C++ Runtime \
Library&quot;!&nbsp; (I&#39;m using MinGW compiler.)<br><br>Has anyone had this \
problem before, or can anyone tell me how I can try to debug it (is there a debugger \
with MinGW?) <br><br>Thanks,<br>Clint<div><div></div><div><br></div></div></blockquote></div></div></div></blockquote></div><br>




_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic