--===============0545372443== Content-Type: multipart/alternative; boundary="----=_Part_7688_18507379.1200259559710" ------=_Part_7688_18507379.1200259559710 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 > > > > ------=_Part_7688_18507379.1200259559710 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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


------=_Part_7688_18507379.1200259559710-- --===============0545372443== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows --===============0545372443==--