public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* VirtualAlloc failed from DOS Prompt
@ 2000-03-20  2:48 Remi Lejeune
  2000-03-20  8:12 ` Chris Faylor
  0 siblings, 1 reply; 4+ messages in thread
From: Remi Lejeune @ 2000-03-20  2:48 UTC (permalink / raw)
  To: cygwin; +Cc: Frederik Durant, Remi Lejeune

Hello :-)

I am facing a weird problem, and maybe somebody we'll be able to help :

I have a program, blablabla.cpp, which compiles (gnu g++)  and runs successfully
 on various platforms, including windows NT/ cygnus provided bash shell.
Though, when I try to run the VERY SAME executable calling it from a DOS prompt
(whith cygwin1.dll in the same directory),
I get the following error messages :

[main] C:\Remi\backbone\scripts\PPlmTools\bin\debug\blablabla.exe 1535 (0)
commit_and_inc: VirtualAlloc failed
bla bouh
[main] prunebigrams 1535 (0) handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
[main] prunebigrams 1535 (0) handle_exceptions: Dumping stack trace to
blablabla.exe.core

What I dont understand is how come this program runs on the bash shell and
crashes when called from the DOS prompt, with the same parameters of course.

Any idea ?

Remi@completely.stuck



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VirtualAlloc failed from DOS Prompt
  2000-03-20  2:48 VirtualAlloc failed from DOS Prompt Remi Lejeune
@ 2000-03-20  8:12 ` Chris Faylor
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Faylor @ 2000-03-20  8:12 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 20, 2000 at 11:47:40AM +0100, Remi Lejeune wrote:
>[main] C:\Remi\backbone\scripts\PPlmTools\bin\debug\blablabla.exe 1535 (0)
>commit_and_inc: VirtualAlloc failed
>bla bouh
>[main] prunebigrams 1535 (0) handle_exceptions: Exception:
>STATUS_ACCESS_VIOLATION
>[main] prunebigrams 1535 (0) handle_exceptions: Dumping stack trace to
>blablabla.exe.core
>
>What I dont understand is how come this program runs on the bash shell and
>crashes when called from the DOS prompt, with the same parameters of course.
>
>Any idea ?

Yes.  Run your program using gdb.  Alternatively, as Earnie mentioned in another
thread, inspect the output of cygcheck -r -s -v for obvious problems.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VirtualAlloc failed from DOS Prompt
@ 2000-03-20  6:18 Earnie Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Earnie Boyd @ 2000-03-20  6:18 UTC (permalink / raw)
  To: Robert McNulty Junior, Remi Lejeune, cygwin; +Cc: Frederik Durant, Remi Lejeune

--- Robert McNulty Junior <sherlock_abc@netzero.net> wrote:
-8<-
> >
> >Any idea ?
> >
-8<-

You've not supplied enough information to give you an answer.  Supply the
smallest amount of source code to provide an example of the problem.  Supply
the output of `cygcheck -s -r -v' pasted in a mail.

-8<-
> >
> Try placing Cygwin1.dll in the windows directory.
> 

This is ill-advice.  Under no circumstances should you copy the Cygwin1.dll to
the windows directories.  As a matter of fact you shouldn't copy the
cygwin1.dll from it's original directory.  Although, you won't have problems
initially, when you upgrade the Cygwin product you'll end up with multiple
version of the Cygwin1.dll which will lead to problems.



=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VirtualAlloc failed from DOS Prompt
@ 2000-03-20  2:59 Robert McNulty Junior
  0 siblings, 0 replies; 4+ messages in thread
From: Robert McNulty Junior @ 2000-03-20  2:59 UTC (permalink / raw)
  To: Remi Lejeune, cygwin; +Cc: Frederik Durant, Remi Lejeune

>I have a program, blablabla.cpp, which compiles (gnu g++)  and runs
successfully
> on various platforms, including windows NT/ cygnus provided bash shell.
>Though, when I try to run the VERY SAME executable calling it from a DOS
prompt
>(whith cygwin1.dll in the same directory),
>I get the following error messages :
>
>[main] C:\Remi\backbone\scripts\PPlmTools\bin\debug\blablabla.exe 1535 (0)
>commit_and_inc: VirtualAlloc failed
>bla bouh
>[main] prunebigrams 1535 (0) handle_exceptions: Exception:
>STATUS_ACCESS_VIOLATION
>[main] prunebigrams 1535 (0) handle_exceptions: Dumping stack trace to
>blablabla.exe.core
>
>What I dont understand is how come this program runs on the bash shell and
>crashes when called from the DOS prompt, with the same parameters of
course.
>
>Any idea ?
>
>Remi@completely.stuck
>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
Try placing Cygwin1.dll in the windows directory.

__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-03-20  8:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-20  2:48 VirtualAlloc failed from DOS Prompt Remi Lejeune
2000-03-20  8:12 ` Chris Faylor
2000-03-20  2:59 Robert McNulty Junior
2000-03-20  6:18 Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).