<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>I'd bet the correct options are already in use.<BR>
Otherwise functionality would be badly messed up.<BR>
At least for cm3.exe. MAYBE not the tests.<BR>
-gui and -windows show the same meaning below. You'd have to read the code.<BR>
This is an area that needs repair for NT386GNU and NT386MINGNU, but it should be ok for NT386.<BR><BR>
What the compiler should know about these is how it marks the "system" in the resulting .exe.<BR>
(It is meaningless for .dlls.)<BR>
<BR>
It's just one field in the .exe, via a switch to the linker.<BR>
Oh, and I guess there is mainCRTStartup vs. WinMainCRTStartup, which drags in different associated data, to inform the C runtime as to your type. However...I'm sure you can mix and match these. A GUI app can start with main, they just don't tend to. main and WinMain have different signatures, but mainCRTStartup and WinMainCRTStartup do not. They both take no parameters and get their data from GetCommandLine, GetStartupInfo, GetEnvironmentVariables, etc.<BR>
<BR>
> That errors should be just understood by the runtime<BR>
<BR>
Maybe.<BR>
<BR>
> the system (Nt386) M3 runtime doesn't have the capacity to<BR>
> avoid the segment violation, etc of the program before it gets killed by the OS?<BR>
<BR>
It probably does.<BR>
It depends, but maybe.<BR>
Best just to avoid them if possible.<BR>
I realize there could be tests that want to deliberately dereference NULL to test the runtime handling.<BR>It might be viable to have runtime hooks for testing.<BR>
Maybe that are only supported in standalone() or something.<BR>
<BR>
I'll have to look into it.<BR>
I have seen errors like this running the tests but I have ignored them before.<BR>
<BR>
- Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
Date: Tue, 29 Apr 2008 04:26:43 +0200<BR>From: dabenavidesd@yahoo.es<BR>Subject: Re: [M3devel] Popup Windows stalling regression tests on WinXP<BR>To: jayk123@hotmail.com; wagner@elegosoft.com<BR>CC: m3devel@elegosoft.com<BR><BR>Hi all:<BR>What test(s) it fails? What happens if you append the options the compiler has for building on Win boxes:<BR>-console produce a Windows CONSOLE subsystem program<BR>-gui produce a Windows GUI subsystem program<BR>-windows produce a Windows GUI subsystem program<BR>About the options above , does the last two: - gui and -windows have the same meaning? <BR>Should the NT386 cm3 compiler build with any of these options? What does the compiler know about this options?<BR>That errors should be just understood by the runtime (I think that's the beauty of the SAFE subset of the language), the system (Nt386) M3 runtime doesn't have the capacity to avoid the segment violation, etc of the program before it gets killed by the OS?<BR>Thanks<BR><BR><BR><BR><B><I>Jay <jayk123@hotmail.com></I></B> escribió:
<BLOCKQUOTE class=EC_replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px">
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
truncated and newlines got removed, I wonder if email will ever work..<BR><BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_EC_stopSpelling>
<BR>From: jayk123@hotmail.com<BR>To: wagner@elegosoft.com<BR>CC: m3devel@elegosoft.com<BR>Subject: RE: Popup Windows stalling regression tests on WinXP<BR>Date: Mon, 28 Apr 2008 21:47:35 +0000<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
Olaf, this is a bug and should be fixed.<BR>Like someone calling abort or assert(false) or NtRaiseHardError or dereferencing NULL or such.<BR>Or skip those tests on NT386 for now.<BR>And please provide an easy way to run specific tests.<BR>I'm working on adding some tests (ok, just one) and it seems to be a pain.<BR>I think it's just cm3 -FA ../../TESTARGS but it wasn't working.<BR><BR>Install the debuggers:<BR><BR> <A href="http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx" target=_blank>http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx</A> <BR> <BR> I install to c:\bin\x86 and c:\bin\amd64, though the default is c:\program files\blah. <BR><BR> mkdir c:\symbols this is just for a local cache, not needed but nice <BR> <BR> cd <somewhere> <BR> c:\bin\x86\windbg -o -G -g -y srv*c:\symbols*http://msdl.microsoft.com/download/symbols cm3 <BR> <BR>When there is a popup, type:<BR> <BR> ~*k <BR><BR>to get all the thread stacks, and see which one is in MessageBox or abort or whatnot.<BR><BR>And send the stack? Or all of them if uncertain.<BR>You can also make a full or minidump with .dump for someone else to look at.<BR>Good to have the cm3.exe and cm3.pdb as well.<BR><BR>Or I guess I can/should just fix them.<BR>I think I've seen a few of these myself.<BR> <BR>The stack might not be well displayed by the debugger.<BR>It could be this in the toplevel exception handler/watson thingy.<BR> <BR>Another thing to try is:<BR>c:\bin\x86\windbg -I<BR> <BR>to install windbg as the JIT debugger. That way, some crashes will bring up a debugger, possibly prompting first.<BR> <BR>I need to make a web page with a Win32 debugging primer at some point.<BR>Anyway, I'll try to bump this up in priority.<BR> <BR>Could be that SetErrorMode(something) quashes them, but that doesn't mean it isn't a bug.<BR>Another very good theory is that the "app type", console vs. gui, is relevant.<BR>Console apps upon abort() or assert(false) print something to stdout/stderr and then exit, whereas gui apps<BR>use MessageBox. The type is determined from the .exe, and you can change it at runtime via a call.<BR> <BR>Not clear to me which of the various catastrophic errors this is though. I think abort().<BR><BR> - Jay<BR><BR><BR><BR>
<HR id=EC_EC_stopSpelling>
<BR><BR>> Date: Mon, 28 Apr 2008 18:42:17 +0200<BR>> From: wagner@elegosoft.com<BR>> To: jayk123@hotmail.com<BR>> CC: m3devel@elegosoft.com<BR>> Subject: Popup Windows stalling regression tests on WinXP<BR>> <BR>> Hi Jay,<BR>> <BR>> everytime I have a look why the regression tests haven't terminated<BR>> yet, I find another popup window with a message like this:<BR>> <BR>> cm3.exe has encountered a problem and needs to close.<BR>> We are sorry for the inconvenience.<BR>> <BR>> Any idea how to suppress this kind of error notification?<BR>> We'll never get reliable regression testing with popup windows :-/<BR>> <BR>> Olaf<BR>> -- <BR>> Olaf Wagner -- elego Software Solutions GmbH<BR>> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany<BR>> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95<BR>> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin<BR>> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194<BR>> <BR><BR><BR></BLOCKQUOTE></BLOCKQUOTE><BR>
<HR SIZE=1>
<BR><FONT face=Verdana size=-2><A href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52433/*http://green.yahoo.com/es/dia-de-la-tierra/" target=_blank>Yahoo! Solidario.</A><BR>Intercambia los objetos que ya no necesitas y ayuda a mantener un entorno más ecológico.<BR></FONT></BLOCKQUOTE></body>
</html>