Windows 2000 / BP 7.0 
Author Message
 Windows 2000 / BP 7.0

I have an application that is compiled under Borland Pascal 7.0.  I
recently ran it under Windows 2000.  The app works fine, but when I
close it, I get an error message that it caused a General Protection
Fault.

Is there something that could be causing this?  Any suggestions on how
to work around this (maybe a PIF file, or some equivalent)?

Thanks



Mon, 28 Jun 2004 01:51:45 GMT  
 Windows 2000 / BP 7.0

Quote:

>I have an application that is compiled under Borland Pascal 7.0.  I
>recently ran it under Windows 2000.  The app works fine, but when I
>close it, I get an error message that it caused a General Protection
>Fault.

>Is there something that could be causing this?

Buggy program.

Quote:
> Any suggestions on how to work around this (maybe a PIF file, or some
> equivalent)?

Fix the bug.

--
john R. Latala



Tue, 29 Jun 2004 14:51:18 GMT  
 Windows 2000 / BP 7.0


Quote:


> >I have an application that is compiled under Borland Pascal 7.0.  I
> >recently ran it under Windows 2000.  The app works fine, but when I
> >close it, I get an error message that it caused a General Protection
> >Fault.

> >Is there something that could be causing this?

> Buggy program.

One thing I really love about these people who just wanna get their name in
lights.. err.. or a newsgroup...Is come up with a reply that has really
little use.

Randy> Load up BP7, load your program, set breakpoints at where your
application starts the shutdown process.Trace through it, and make sure that
all objects and references are properly cleared, and so on.  If BP crashes
start a trace from start to finish, and see whats being declared and whats
not being freed properly.

Quote:
> > Any suggestions on how to work around this (maybe a PIF file, or some
> > equivalent)?

> Fix the bug.

> --
> john R. Latala




Tue, 29 Jun 2004 23:14:18 GMT  
 Windows 2000 / BP 7.0

Quote:





>> >I have an application that is compiled under Borland Pascal 7.0.  I
>> >recently ran it under Windows 2000.  The app works fine, but when I
>> >close it, I get an error message that it caused a General Protection
>> >Fault.

>> >Is there something that could be causing this?

>> Buggy program.

>One thing I really love about these people who just wanna get their name in
>lights.. err.. or a newsgroup...Is come up with a reply that has really
>little use.

>Randy> Load up BP7, load your program, set breakpoints at where your
>application starts the shutdown process.Trace through it, and make sure that
>all objects and references are properly cleared, and so on.  If BP crashes
>start a trace from start to finish, and see whats being declared and whats
>not being freed properly.

I assumed he was smart enough to figure out that's what he'd have to do.
In your case do we have to enumerate each step?

Let's see ... turn on the computer ...

Quote:
>> > Any suggestions on how to work around this (maybe a PIF file, or some
>> > equivalent)?

>> Fix the bug.

>> --
>> john R. Latala


--
john R. Latala



Wed, 30 Jun 2004 00:21:19 GMT  
 Windows 2000 / BP 7.0


Quote:






> >> >I have an application that is compiled under Borland Pascal 7.0.  I
> >> >recently ran it under Windows 2000.  The app works fine, but when I
> >> >close it, I get an error message that it caused a General Protection
> >> >Fault.

> >> >Is there something that could be causing this?

> >> Buggy program.

> >One thing I really love about these people who just wanna get their name
in
> >lights.. err.. or a newsgroup...Is come up with a reply that has really
> >little use.

> >Randy> Load up BP7, load your program, set breakpoints at where your
> >application starts the shutdown process.Trace through it, and make sure
that
> >all objects and references are properly cleared, and so on.  If BP
crashes
> >start a trace from start to finish, and see whats being declared and
whats
> >not being freed properly.

> I assumed he was smart enough to figure out that's what he'd have to do.
> In your case do we have to enumerate each step?

Not to discredit his intelligence, but, he did write in here for something
that basic.  Maybe the thought to debug top to bottom didn't occur to him?

- Show quoted text -

Quote:
> Let's see ... turn on the computer ...

> >> > Any suggestions on how to work around this (maybe a PIF file, or some
> >> > equivalent)?

> >> Fix the bug.

> >> --
> >> john R. Latala

> --
> john R. Latala




Wed, 30 Jun 2004 00:27:10 GMT  
 Windows 2000 / BP 7.0
And ya know, thinking about my atypical problems, perhaps its a case of a
bad EXE.. Or, a memory problem.  Maybe the PIF/LNK did get screwed up and
doesn't have a lot of memory to play with.  Maybe the EXE is doing something
that worked in real time and was handled properly, but, Windows itself pukes
because of it?  What if its just something as simple as a recompile under
Win2K for it to work?  What if theres something seriously wrong with the
code and it was just a CHANCE that it worked in real time versus emulated
DOS?  The problem can be of many faces.  Saying the program is broke is VERY
obvious considering that he wrote the originating message STATING such a
thing!


Quote:






> >> >I have an application that is compiled under Borland Pascal 7.0.  I
> >> >recently ran it under Windows 2000.  The app works fine, but when I
> >> >close it, I get an error message that it caused a General Protection
> >> >Fault.

> >> >Is there something that could be causing this?

> >> Buggy program.

> >One thing I really love about these people who just wanna get their name
in
> >lights.. err.. or a newsgroup...Is come up with a reply that has really
> >little use.

> >Randy> Load up BP7, load your program, set breakpoints at where your
> >application starts the shutdown process.Trace through it, and make sure
that
> >all objects and references are properly cleared, and so on.  If BP
crashes
> >start a trace from start to finish, and see whats being declared and
whats
> >not being freed properly.

> I assumed he was smart enough to figure out that's what he'd have to do.
> In your case do we have to enumerate each step?

> Let's see ... turn on the computer ...

> >> > Any suggestions on how to work around this (maybe a PIF file, or some
> >> > equivalent)?

> >> Fix the bug.

> >> --
> >> john R. Latala

> --
> john R. Latala




Wed, 30 Jun 2004 00:33:32 GMT  
 Windows 2000 / BP 7.0

Quote:

>And ya know, thinking about my atypical problems, perhaps its a case of a
>bad EXE.. Or, a memory problem.  Maybe the PIF/LNK did get screwed up and
>doesn't have a lot of memory to play with.  Maybe the EXE is doing something
>that worked in real time and was handled properly, but, Windows itself pukes
>because of it?  What if its just something as simple as a recompile under
>Win2K for it to work?  What if theres something seriously wrong with the
>code and it was just a CHANCE that it worked in real time versus emulated
>DOS?  The problem can be of many faces.  Saying the program is broke is VERY
>obvious considering that he wrote the originating message STATING such a
>thing!

I read it differently. To me it sounded more like: "Well since it worked
in Win'95 it has to be a bug free program so it should also work in
Win2000."

Just because both operating systems are called WINXXXX, where XXXX is
something, doesn't mean it's upward compatible. My understanding is that
internally there's a whole lot of difference between Win95 and Win2000.
I was under the impression that Win95 was a Win3.1 derivative while
Win2000 was an NT derivative. NT has always been more strict with virtual
memory than win3.1/Win9x has so his program was doing something bad under
win9X but it didn't complain. When the same program tried it under Win2000
it got spanked.
--
john R. Latala



Wed, 30 Jun 2004 07:26:02 GMT  
 Windows 2000 / BP 7.0


Quote:
> I have an application that is compiled under Borland Pascal 7.0.  I
> recently ran it under Windows 2000.  The app works fine, but when I
> close it, I get an error message that it caused a General Protection
> Fault.

> Is there something that could be causing this?  Any suggestions on how
> to work around this (maybe a PIF file, or some equivalent)?

  Did you look at help? There is:

<========= from help =========>
 +---------------------------+
 | General Protection fault  |
 +---------------------------+

This error results if you try to access memory that is not legal for your
application to access. The operating system halts your application and
tells
you that a general protection (GP) fault occurred, but your system does not
crash.

The following practices cause GP faults:

 _ Loading constant values into segment registers

 _ Performing arithmetic operations on segment registers of selectors

 _ Using segment registers for temporary storage

 _ Writing to code segments

 _ Accessing memory beyond the local address space given to your
application

 _ Derefencing nil pointers
<========= from help =========>

  Also You didn't say at what mode you compliled your program :)

--
   Varyonov Konstantin       varkos^mail.ru      http://ghsrl.newmail.ru



Thu, 01 Jul 2004 02:19:48 GMT  
 Windows 2000 / BP 7.0
I have found a similar problem with an old version of a cad/cam system for
Windows For Workgroups that was being used under Win9x. This software
couldn't utilize the Minimize/Restore/Close buttons in the upper left corner
to exit. Every time I closed out this way, I got a general protection fault.
I am not sure of a fix, but the cad/cam software did have it's own dos-style
menu that had an exit command.

FYI,
Tim


Quote:
> I have an application that is compiled under Borland Pascal 7.0.  I
> recently ran it under Windows 2000.  The app works fine, but when I
> close it, I get an error message that it caused a General Protection
> Fault.

> Is there something that could be causing this?  Any suggestions on how
> to work around this (maybe a PIF file, or some equivalent)?

> Thanks



Wed, 07 Jul 2004 12:11:21 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. TP 7.0 and Windows 2000/ME

2. TP 7.0 and Windows ME/2000

3. Delphi Access BDE driver and Windows Office XP/2000 with Windows XP or Windows 2000 ??

4. installation of bp with objects 7.0 in windows 95

5. Need Windows debugger for BP 7.0 Apps.

6. Porting BP/TP 7.0 programs to Windows 3.X/95/NT

7. BP 7.0 and Windows 95

8. BP 7.0 (TDW) and Windows NT 4.0

9. Windows Graphic Problem with BP 7.0

10. BP 7.0: Loader error (0025) with Btrieve 6.15 for DOS under Windows 95

11. How do I destroy my window in BP 7.0 for windows

12. ANNOUNCEMENT: OWL Memory streams for BP 7.0 and Windows (free)

 

 
Powered by phpBB® Forum Software