Subj : Re: Still unsolved problem To : David Bradley From : Brendan Eich Date : Wed Jun 04 2003 04:56 pm David Bradley wrote: > Brendan Eich wrote: > >> I'm not a Windows hacker, but I recall something about not mixing >> debug and release mallocs. Could that be happening? Cc'ing >> dbradley, who does know Windows. > > Right, but I would think the memory in question here would have been > allocated and freed from within the JS DLL. So things should be ok. If > things were going wrong, I would expect more fatal problems than what > he is seeing. It's legal for a JS API user to malloc string chars and hand them off to the engine, which will free them eventually when the string is GC'd. If the API client were compiled debug but SpiderMonkey were compiled release, bad things would ensue, right? > What is proxy_dns_resolve? > When you say error, is this a JS exception? How is it getting reported? He's saying he gets "host is not defined". "host" should resolve to the name of the second formal parameter to FindProxyForURL. It does on debug builds, apparently, or if Stu simplifies FindProxyForURL's body to be a one-line return "DIRECT" statement (Stu, please correct me if I have that wrong). /be .