delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/10/12:20:07

From: Noam <ngmarket AT netvision DOT net DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Memory problem ! ! ! ( Buffers ?? )
Date: Sat, 10 Oct 1998 17:35:07 +0200
Organization: NetVision LTD.
Lines: 51
Message-ID: <361F7EAB.4754@netvision.net.il>
NNTP-Posting-Host: ppp143.ort.org.il
Mime-Version: 1.0
X-Mailer: Mozilla 3.03 (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

==============================================================

Hi  !

I need your help with a c++ problem i have and i hope you can help me ..

( Borland c++ under dos )

I'm writing a project with c++ and i got problem that is just draving me
crazy ! ! ! !

The program  ( some headers & some cpp files including in one project ) 
use some Mouse interupts ( int86 or something like that ), some BGI
graphics (line, putpixel .. )  and some memory allocate   (    ...
*arrey[30]=new Class_Name( a1, a2, a3 .. )   ).

* * * * * * * * * * * * * * * * * *

I don't know why but very strange things happen when i'm running the
program, sometimes everything run perfect, sometimes everything stuck
after 2-3 runs and i must do reset to the computer, sometimes the screen
start to fill with lot of colors or strange chars like "#&$^&$@&*#%$# .
. ."


Someone told me that it's have something to do with the "iostream.H"
Buffer.

So i used the "flushall(); "  to clean the buffer but it didn't solve
all the problems, i also did closegraph() at the end, "delete []arrey"
but still the computer go crazy everytime i run this program.

Sometimes just a little "Cout << Value " solve it ..

Sometimes it's run all the code but when it should end it's start to run
it all over again, like there is another copy of the program in the
memory  ! ! !  (  very bizarre )


How can i fix it  ???  have'nt i try everything  ? ? ? ? 



Please, before i'll get out of my mine  ! ! ! ! !


Thanks   !!   ;-)

 Noam.

--------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019