| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 97,595
» Latest member: nk88commx
» Forum threads: 2,426
» Forum posts: 11,371
Full Statistics
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 129
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 120
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 135
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 423
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 213
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 594
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 204
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,179
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 338
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 945
|
|
|
| IIS isapi bug |
|
Posted by: joel - 02-22-2019, 07:00 AM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
xe7, iw15.0.15
I am trying to debug and iw isapi application that runs fine as a Standalone but not as an isapi dll under iis.
When I try to start up the isapi application I get a server 500 error with the following
Exception: Exception
No HTTP hook has been set.
Any ideas would be appreciated.
I found the line of the error. In the oncreate of the servercontroller I am trying to call this calll.
LoadXMLDocument(ASettingsXMLName);
I actually get this error.
Error: The system cannot locate the object specified.
Why would this call work under SA but not ISAPI?
|
|
|
| iw 17 Bèta |
|
Posted by: Filip Demuynck - 02-20-2019, 04:56 PM - Forum: IntraWeb 17
- Replies (3)
|
 |
Hi,
I'm very much interested to get going with IW17,
I have an active Premium subscription, (demuynck.filip@gmail.com)
Where can is sign up ? I'm following the IW17 facebook page and saw that
the bèta was opening up.
Kind regards,
Filip Demuynck
|
|
|
| Setting ContentType for bidi language |
|
Posted by: sorinh - 02-20-2019, 11:20 AM - Forum: Indy
- Replies (1)
|
 |
Hello
I try to send an email using IdSMTP and IdMessage components with Hebrew on body text.
I use those settings:
Code: IdMessage := 'UTF_8';
If HaveAttachments then
IdMessage.ContentType := 'multipart/mixed';
Else
IdMessage.ContentType := 'text/plain';
When I add attachments the emails arrive ok,
Without attachments the body text is replaced with questions marks.
What I'm doing wrong?
|
|
|
| Content handlers |
|
Posted by: lfeliz - 02-17-2019, 01:11 AM - Forum: IntraWeb General Discussion
- Replies (12)
|
 |
Hi.
Does a content handler run in its own thread? I need to implement a way to call into my app and get some information, content handler seems to be easiest way to do it. I will move forward assuming it is for now.
|
|
|
| Delphi Rio 10.3.1 |
|
Posted by: davidbaxter - 02-16-2019, 04:45 AM - Forum: IntraWeb General Discussion
- Replies (6)
|
 |
Tried to update my bundled IntraWeb to version 14. Went through the process to get a key (it starts with +0010ABG...) and used it for the install. The install completed fine, as near as I can tell, but when I start up Rio, I get a message that my key is not valid for my version of Delphi. Could it be the recent 10.3 to 10.3.1 update that was just released?
Edit: After the error comes up - Error code 30 - Delphi will continue to load, but there are no IntraWeb components on the pallet. However, I can load some of the example projects and run them.
|
|
|
| CreateAnonymousThread Usage? |
|
Posted by: cpstevenc - 02-13-2019, 08:33 PM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
Greetings!
Using Tokyo 10.2.3
IW 14.2.7
I started a new "Test" object to do some proof of concept stuff work work.
Currently I have a REST server wrote that we use FMX iOS/Android apps talk to. Works great for past 2.5+ years.
I have code that works with XSuperJSON/XSuperObject and some custom code to wrap all communications
and to wrap up JSON into objects. This works great too.
Sooooo... I took this existing code from my FMX app and put it into a VCL IW stand alone server program.
Since the calls may take upwards of 10-15 seconds to run while it hits up the REST server.. REST server hits up a database back end,
does its magic and sends back... I wanted to use a thread.
I have something that "works" but not 100% sure if this is the proper way.... or can be done better.
Code: ..
..
private
salesSearchRequest: TSalesSearchRequest;
public
end;
..
..
procedure TIWForm117.btnGoClick(Sender: TObject);
begin
IWMemo1.Clear;
salesSearchRequest := TsalesSearchRequest.create;
salesSearchRequest.serveraddress := 'myserver.com';
salesSearchRequest.username := '<username>';
salesSearchRequest.password := '<password>;
salesSearchRequest.VIN := e_VIN.text; /// <---- on the form itself, user types in a vehicle VIN
tthread.CreateAnonymousThread(
procedure
begin
salesSearchRequest.Execute; // this takes the request and sends it out the REST server and does the magic to take the JSON response and turn it into object code.
end).Start; // start the AnonymousThread so not to stop the user interface.
IWTimer1.Enabled := true; // kicks off an Async timer that checks every 500ms
end;
..
..
..
procedure TIWForm117.IWTimer1AsyncTimer(Sender: TObject; EventParams: TStringList);
var
idx: integer;
begin
if assigned(salesSearchRequest) then
begin
case salesSearchRequest.State of
jRunning: IWMemo1.Lines.Add('Waiting...'); // the salesSearchRequest is still running... so spit something out to memo box
jComplete: // the salesSearchRequest is "finished" running... so now do something.
begin
IWTimer1.Enabled := false; // turn off timer
for idx := 0 to salesSearchRequest.inventory.inventoryresults.Count - 1 do
begin
IWMemo1.Lines.Add(inttostr(idx + 1) + ' : ' + salesSearchRequest.inventory.inventoryresults[idx].guid + // inventory GUID / ID
' ' + salesSearchRequest.inventory.inventoryresults[idx].year + ' ' + // year of vehicle
salesSearchRequest.inventory.inventoryresults[idx].model); // model of vehicle
end;
freeandnil(salesSearchRequest);
end;
end;
end;
end;
So in this case... I kick of the anonymousthread and start an ASYNC timer to check the status of the salesSearchRequest object.
Not sure if using the timer is the "best" way... it works... but is there a better method?
After the salesSearchRequest.execute; I can't do "iwtimer1.enabled:=true;" ... as nothing happens... but if i hit F5 to refresh the page,
then the timer starts working. I don't know how or if even, so i can do something like
Code: salesSearchRequest.execute; // do my REST call magic
iwTimer1.enabled := true;
webapplication.updatestuff;
).start;
or if there is way to something with tthread.Synchronize that will play happy with IW client and can get code to kick off then to update the screen via async?
Any ideas would help! 
As mentioned, what I have today works... but I figure better to check in to see if better/proper ways of doing this.
|
|
|
|