Recent

Author Topic: Target file name option generates error for FreeSpider app  (Read 7726 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Target file name option generates error for FreeSpider app
« on: April 03, 2011, 01:19:28 pm »
when I create new (Hello World) or open an old FreeSpider application and assign a path in Project Options/Compiler Options/Paths/Target File Name (-o)
I've entered something like this: c:\apache\cgi-bin\first.exe

Then I get this error when I run the application from command line:

Code: [Select]
C:\Apache\cgi-bin>first
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00000000
  $0041C7B5
  $004177AB
  $00430B43  INITCOMPONENT,  line 3072 of lresources.pp
  $004309A4  INITLAZRESOURCECOMPONENT,  line 3092 of lresources.pp
  $0042FB37  INITRESOURCECOMPONENT,  line 766 of lresources.pp
  $0041A111
  $00422435  DATA_init,  line 126 of data.pas
  $0040AF34
TApplication.HandleException Access violation
  Stack trace:
  $00000000
  $0041C7B5
  $004177AB
  $00430B43  INITCOMPONENT,  line 3072 of lresources.pp
  $004309A4  INITLAZRESOURCECOMPONENT,  line 3092 of lresources.pp
  $0042FB37  INITRESOURCECOMPONENT,  line 766 of lresources.pp
  $0041A111
  $00422435  DATA_init,  line 126 of data.pas
  $0040AF34
[FORMS.PP] ExceptionOccurred

C:\Apache\cgi-bin>

I get this error in Lazraus 0.9.30 and .31 in Windows. When I remove this configuration and let the executable to be generated in the same directory, it works fine.

I was wondering what is the difference between assign output file name and leave it empty, that makes the application generates error
« Last Edit: April 03, 2011, 01:31:33 pm by motaz »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Target file name option generates error for FreeSpider app
« Reply #1 on: April 03, 2011, 06:40:49 pm »
There should be no difference, unless you use a hardcoded path somewhere. The stacktrace shows DATA_init on line 126 of data.pas, what's there (and around it)?

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Target file name option generates error for FreeSpider app
« Reply #2 on: April 03, 2011, 07:25:03 pm »
Quote
unless you use a hardcoded path

There is no code at all, I just created new Free Spider application, then dropped TSpiderCGI component in data module, then I compiled the CGI/console application

In Linux it is working fine, after I remove Interfaces unit.
I'll check again what's wrong in Windows

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Target file name option generates error for FreeSpider app
« Reply #3 on: April 03, 2011, 08:24:28 pm »
I've remove Interfaces from main application source code, then remove LCL, and FCL dependencies in package, and it works fine in Windows 7.
the problem was happened in Windows Vista computer, I'll check it tomorrow in sha allah.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Target file name option generates error for FreeSpider app
« Reply #4 on: April 05, 2011, 06:21:15 am »
I found that the problem happens when I direct output compilation to c:\apache\cgi-bin. When I put another directory, it works fine in Windows Vista

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Target file name option generates error for FreeSpider app
« Reply #5 on: April 05, 2011, 06:43:26 am »
Quote
I found that the problem happens when I direct output compilation to c:\apache\cgi-bin. When I put another directory, it works fine in Windows Vista
Permission problem?

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Target file name option generates error for FreeSpider app
« Reply #6 on: April 05, 2011, 04:36:39 pm »
not a permission problem, but it might the dash between cgi and bin. may be this path name couldn't be used in output file name.
I'll do more testing in the next days

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Target file name option generates error for FreeSpider app
« Reply #7 on: April 13, 2011, 12:22:32 pm »
It is working fine in Vista in cgi-bin directory now.
It looks like there were old binary .o and .ppu files in that directory

 

TinyPortal © 2005-2018