NetTalk Central

Author Topic: Assertion failed FileManager.UseFile() not called  (Read 6876 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Assertion failed FileManager.UseFile() not called
« on: February 01, 2011, 01:13:25 PM »
Hi,

I have this update form.
Nothing fancy going on in it except priming some fields.
Whenever I hit the insert button to use the form, the webserver-app crashes. No question asked. Just like that.
I managed to get a log entry but I don't know what to do with it.
It seems that the FileManager.UseFile() is not called but I have no idea how to turn that the right way.

See below for the log-entry:

I added some pics to clarify things

Kind regards,
Rene

Log entry:

Program : C:\Documents and Settings\All Users\Clarion\webShop\webShop.exe
Version : 20101221001
At : 21:06:36 on 2011/02/01
Workstation: : APPLEJUNIOR
User Name: : Administrator
Reported error : EXCEPTION_ACCESS_VIOLATION - Error writing data at : 00000000h
Windows : Win XP  - 5.1.2600 Service Pack 3
Clarion : 6.3
Thread : 3    Field : 0    Event : 0    Keycode : 0
Assert String : Assertion failed  on line: 501 in file ABFILE.CLW. Message: You have not called FileManager.UseFile() for TCM. Shall I GPF?

[attachment deleted by admin]
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #1 on: February 01, 2011, 08:36:21 PM »
Does the file have any Memos or Blobs in it?

Are you using any of the Memos or Blobs on the form?

Do you have GPF Reporter?

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #2 on: February 02, 2011, 03:35:28 AM »
Hi Bruce,

No Memos or Blobs
Yes I have GPF Reporter.

Thanks
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #3 on: February 02, 2011, 04:31:20 AM »
Using GPF Reporter you can
tell the assert to GPF,
then look at the GPF log to see which code was acting on the file, but not opening / using it first.

my guess is that at some point you (or I) are assuming a file is open, when it's not.

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #4 on: February 02, 2011, 05:40:32 AM »
Hi Bruce,

I'm afraid it's you.
It is  aplain form. No embeds used. Only some priming in the primong section. No file-i/o involved.
Funny thing is that it only happens with this one file.
Also, no special things going on here. Fields and Keys and some relations.
The file has a version number for the sake of FM3.

I try to find out how to make the assert to GPF and let you know.

Thanks,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #5 on: February 02, 2011, 06:04:09 AM »
cool, or send me an example so I can duplicate here.

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #6 on: February 02, 2011, 07:51:13 AM »
Hi Bruce,

Got it here.
Renamed it from .log to .txt
Is this sufficient??

Rene


[attachment deleted by admin]
Rene Simons
NT14.14

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #7 on: February 04, 2011, 02:57:10 AM »
Hi Bruce,

Do you need any more info on this??

Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #8 on: February 04, 2011, 11:09:10 PM »
Hi Rene,

sorry for the delay, I missed your previous reply with the log. Thanks for re-posting.

You mentioned that you had a simple form with the Assert - but I notice the code is Asserting while generating a browse and the file involved is TCM.

Is TCM the file you are browsing / forming on?

What's interesting is that it generates the _browse_ after you click on the Insert button.
That makes me think maybe the form itself has the Insert ability turned off, or something. Is it one the same file as the browse? There's something here that we're missing at the moment.

Cheers
Bruce



Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Assertion failed FileManager.UseFile() not called
« Reply #9 on: February 05, 2011, 01:41:54 AM »
Hi Bruce,

Thanks for the (late  ;) reply).
That's why I gave a gentle push.

Is TCM the file you are browsing / forming on?
Yes,it is.

Is it one the same file as the browse?
I don't know exactly what you mean by this.

I have a form in change mode on file REL with several tabs on it.
One tab contains the TCM browse which has a (generated) Insert button.

See the images I sent.

Thanks for your time,
Rene


[attachment deleted by admin]
Rene Simons
NT14.14