Pdox 5 and Win 3.1/locate producing win error 
Author Message
 Pdox 5 and Win 3.1/locate producing win error

Hello!

I'm really on the edge of desperation after working several days on a
virtually unsolvable problem.

Here's the problem:

There is a form called "zit.fsl" connected to a database named
"zit.db" . Now, I want to read a specific record with a specific
record number field called "Titel Nr". I get the number from a
database called "System.db" .

Now, I created an "open" method for "zit.fsl", in which it reads the
number from "System.db" and locates <locate("Titel Nr",i)> where i is
smallint.

And here it is. "Memory violation error", one of those great Win error
messages," in module PALRTL.DLL" .

Any suggestions?

Thanx,
Chris



Fri, 26 Feb 1999 03:00:00 GMT
 Pdox 5 and Win 3.1/locate producing win error

Hello!

I got several answers to my first post, asking me to post all of the
RELEVANT code. So, here's the _whole_ code connected to my form
ZIT.FSL:

method open(var eventInfo Event)
Var
  i smallint
  tcSystem tcursor
endVar
        if eventInfo.isPreFilter() then
        else
      if not tcSystem.open("SYSTEM.DB") then
        msgStop("Sorry","Can't open SYSTEM.DB")
        close()
      endif
      tcSystem.fieldvalue("intValue",i)
      if not locate("Titel Nr",i) then
        msgStop("nein","nein")
      endif
        endif
endmethod

And there IS a valid value in the field "intValue" in SYSTEM.DB, i
checked that about 1.000 times.

And even if there wasn't, this shuldn't result in a Win memory error!?

Thanx to all,
Chris



Sat, 27 Feb 1999 03:00:00 GMT
 Pdox 5 and Win 3.1/locate producing win error

Quote:

>Hello!
>I'm really on the edge of desperation after working several days on a
>virtually unsolvable problem.
>Here's the problem:
>There is a form called "zit.fsl" connected to a database named
>"zit.db" . Now, I want to read a specific record with a specific
>record number field called "Titel Nr". I get the number from a
>database called "System.db" .
>Now, I created an "open" method for "zit.fsl", in which it reads the
>number from "System.db" and locates <locate("Titel Nr",i)> where i is
>smallint.
>And here it is. "Memory violation error", one of those great Win error
>messages," in module PALRTL.DLL" .

Just a guess.  Open methods are sort of dangerous, because of all the
things that happen.  If I were to do that.  I would do a dodefault and
then a sleep for 250 to 1000 millisec before I did anthing else.
You might also want to look at the page open method, but do the same
thing.

 Straehley Associates - Computer Consulting and Programming

 http://www.strassoc.com



Sun, 28 Feb 1999 03:00:00 GMT
 Pdox 5 and Win 3.1/locate producing win error

Thanx to all who helped!

I just found another (quite cryptic) solution by performing a query,
then editing the temporary query output and re-copying the actual data
changes to the source file. Cryptic... But it works!

Perhaps I should go and get a good book on Pdox. Borland in all their
glory seem to be unable to write informative handbooks.

Cheers,
Chris



Sun, 28 Feb 1999 03:00:00 GMT
 Pdox 5 and Win 3.1/locate producing win error

Quote:

> Hello!

> I got several answers to my first post, asking me to post all of the
> RELEVANT code. So, here's the _whole_ code connected to my form
> ZIT.FSL:

> method open(var eventInfo Event)
> Var
>   i smallint
>   tcSystem tcursor
> endVar
>         if eventInfo.isPreFilter() then
>         else
>       if not tcSystem.open("SYSTEM.DB") then
>         msgStop("Sorry","Can't open SYSTEM.DB")
>         close()
>       endif
>       tcSystem.fieldvalue("intValue",i)
>       if not locate("Titel Nr",i) then
>         msgStop("nein","nein")
>       endif
>         endif
> endmethod

> And there IS a valid value in the field "intValue" in SYSTEM.DB, i
> checked that about 1.000 times.

> And even if there wasn't, this shuldn't result in a Win memory error!?

> Thanx to all,
> Chris

One CANNOT use the RTL close() method in the built-in open method on a
form!!!  This will cause you to run out of memory bigtime.

Create a new blank form and place the close() method in the open of the
new form with no other code and watch the results.

--
David
______________________________________________________________________
: Datacraft Systems, Inc.- Multi-user Database Development and Design
: URL: http://www.db.com
: Philadelphia - New York - Washington DC



Sun, 28 Feb 1999 03:00:00 GMT
 Pdox 5 and Win 3.1/locate producing win error

I have been maintaining a program written in Pdoxdos 4.0.  Using my old
Dos 6.22/Win 3.11
machine I have no problems.  As soon as I attempted to do anything with
my new WIN 95 machine,
I get the following error message:

Unexpected Condition:  GP 0000 AT PARADOX:28:12f1 -- Leaving Paradox.

This happens whether I am using a stand alone version or I am hooked to
the network.

Does anyone know the fix for this?

John Barreras



Sun, 28 Feb 1999 03:00:00 GMT
 
 [ 6 post ] 

 Relevant Pages 

1. HELP!!Win 3.1 Client <==>Win NT Sql Server

2. VB3 program OK in WIn 3.1 but not in WIN 95

3. Creating Win 3.1 apps/network apps in win 95

4. DDE Pdox 7 Win 3.1 Excel 4

5. Weird Stuff Pdox 7 win 3.1

6. Password dlg box Pdox 7 Win 3.1

7. ErrorTrapOnWarnings Pdox 7 win 3.1

8. Pdox 5 Interactive QBE in Win 3.1

9. Using Debugger in a library method: Pdox 7 for Win 3.1

10. pdox 7 for win 3.1 run on windows 95

11. PDOX 5.0 Win 3.1: Multitable form problem...HELP!

12. Pdox 5.0 (win 3.1) - Network


 
Powered by phpBB® Forum Software