Hello,<br><br>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:
<br> KApplication a;<br>in main.cpp. Here is the applicable constructor (I think) for KApplication, from kapplication.cpp:<br> KApplication::KApplication(bool GUIenabled)<br> : QApplication((KApplicationPrivate::preqapplicationhack(),KCmdLineArgs::qtArgc()),
<br> KCmdLineArgs::qtArgv(), GUIenabled),<br> d(new KApplicationPrivate(this))<br>{<br> d->read_app_startup_id();<br> setApplicationName(d->componentData.componentName());<br> setOrganizationDomain(d->
componentData.aboutData()->organizationDomain());<br> installSigpipeHandler();<br> d->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. Furthermore it is caused AFTER the constructor KApplicationPrivate(this) runs.
<br><br>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?<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 "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.
<br><br>Thanks,<br>Clint<br><br><br><br><div class="gmail_quote">On Jan 9, 2008 7:30 PM, Clinton Reddekop <<a href="mailto:clinton.reddekop@gmail.com">clinton.reddekop@gmail.com</a>> 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'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:<br><br>DWMAPI.DLL Delay-load, file is missing.
<br>EFSADU.DLL Delay-load, file is missing.<br>SHLWAPI.DLL Doesn't export required function "#467"<br>MPR.DLL Delay-load, doesn't export required function "WNetRestoreConnectionA"
<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 <
<a href="mailto:clinton.reddekop@gmail.com" target="_blank">
clinton.reddekop@gmail.com</a>> 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. 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:
<br> Microsoft Visual C++ Runtime Library<br>and text:<br> Runtime Error!<br> Program: c:\kderoot\bin\kate.exe (or konqueror)<br> This application has requested the Runtime to terminate it in an unusual way.<br>
Please contact the application's support team for more information.<br><br>I didn't even know I had a "Microsoft Visual C++ Runtime Library"! (I'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>