CGI
-
- Beiträge: 3444
- Registriert: Mo 11. Sep 2006, 10:24
- OS, Lazarus, FPC: svn (Window32, Linux x64, Linux ARM (QNAP) (cross+nativ)
- CPU-Target: X32 / X64 / ARMv5
- Wohnort: Krefeld
theo hat geschrieben:Das ist schon klar. Wird wohl im Ereignis OnCGIRequest des Datamodule passieren.
Ah, dass das Datamodul ein OnCGIRequest hat ist mnir nicht aufgefallen. Wo kommt das denn her ? Wier dämlich von mir !
theo hat geschrieben:Nur kriege ich eine Fehlermeldung beim Compilieren:
"Kann CGIDatamodule1 nicht streamen ... Access violation"
Bekomme ich in Windows auch. In Linux kann ich es übersetzen. Probiere ich heute abend.
-Michael
-
- Beiträge: 3444
- Registriert: Mo 11. Sep 2006, 10:24
- OS, Lazarus, FPC: svn (Window32, Linux x64, Linux ARM (QNAP) (cross+nativ)
- CPU-Target: X32 / X64 / ARMv5
- Wohnort: Krefeld
monta hat geschrieben:Hier ist der Käferverfolger
OK. Da Du das ja weitergeben musst, hier in Englisch:
Bugs "CGIApplcation"
1) (Linux and Windows): LResources twice in uses of the automatic code
2) (Windows only, does work in Linux): "Access violation" when compiling ("can't stream CGIDataModule1")
3) (Linux, we don't get that far in Windows): "Exception" with no qualifier when starting. This happens before TCGIDatamidule.Create is reached, so no idea how to prevent it.
4) No documentation, no example project, so we don't know how to use this seemingly useful feature.
-Michael
Zuletzt geändert von mschnell am Mi 31. Okt 2007, 08:46, insgesamt 1-mal geändert.
-
- Beiträge: 3444
- Registriert: Mo 11. Sep 2006, 10:24
- OS, Lazarus, FPC: svn (Window32, Linux x64, Linux ARM (QNAP) (cross+nativ)
- CPU-Target: X32 / X64 / ARMv5
- Wohnort: Krefeld
Done, -Michaelmonta hat geschrieben:Hier ist der Käferverfolger
-
- Beiträge: 3444
- Registriert: Mo 11. Sep 2006, 10:24
- OS, Lazarus, FPC: svn (Window32, Linux x64, Linux ARM (QNAP) (cross+nativ)
- CPU-Target: X32 / X64 / ARMv5
- Wohnort: Krefeld
You mean that the exception does not happen if the program has been called by Apache or such, as same sets the appropriate environment variable ?
"The correct events" can't be the cause, as the exception happens before the "onCreate" callback is reached, which supposedly is the first chance to do anything (like setting events) in the user code.
I'll do more tests as soon as I have Lazarus running on my newly installed SuSe 10.3
-Michael
"The correct events" can't be the cause, as the exception happens before the "onCreate" callback is reached, which supposedly is the first chance to do anything (like setting events) in the user code.
I'll do more tests as soon as I have Lazarus running on my newly installed SuSe 10.3
-Michael
I did not spend time to get a working example.
I just noticed that if you run the empty module in a console, you get a good message what is missing.
If you fix the first (calling it like apache does with the correct environment variables), you get the second exception: "Error: : No CGI request handler set."
I just noticed that if you run the empty module in a console, you get a good message what is missing.
If you fix the first (calling it like apache does with the correct environment variables), you get the second exception: "Error: : No CGI request handler set."