NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - useless

Pages: [1]
1
Web Server - Ask For Help / http://clarion.capesoft.com not working
« on: October 23, 2012, 02:59:54 AM »
I'm trying to post some messages on the forum and its not showing any of my forum posts. When posting I see two new drop downs, group and status, not all the accessories are listed in the groups drop down.

2
My email service is hanging on the first thread that sends email ie using the NetEmailSend class, in debugview the last entry reads:
[NETDLL] [4] SimpleClientOpen() :SSL. Getting settings via SSLCertificateGroupPointer

Its working on my XP dev machine, but doesnt work on a domain server. Libeay32.dll & LibSSL32.dll are included in the program files, and as this is running as a service I copied these files into the windows\system32 folder as well still no joy.
I'm not actually using any security at this stage but appreciate the nettalk class might still want to loadlibrary(ex) these files. I also copied over Msvcr71.dll, Ssleay32.dll, as these are used in the webserver classes but not mentioned in the docs for the NetEmailSend class.

It hangs at the same place when running the service as a desktop app so not sure its a service path issue here but did it to tick it off the list.

I'm not actually using any security to send email at the moment, so what is happening at the "Getting settings via SSLCertificateGroupPointer", is this a missing file issue or something else?


3
Web Server - Ask For Help / Bandwidth Throttling
« on: October 12, 2012, 04:00:13 AM »
Is there anything in NT where I can bandwidth throttle ie restrict the bandwidth used to serve files as some are quite large and I dont want all the bandwidth to be used up when someone downloads a large file from a website? I can bandwidth throttle ports using the firewall/proxy server but this doesnt give me the control over the individual files downloaded from a website.

4
E-Mail - Ask For Help / Read Receipts Questions
« on: October 12, 2012, 03:07:46 AM »
I've got the DeliveryReceiptTo email address setup and DispositionNotificationTo email address setup, but not getting any read receipts. I appreciate it says in the docs some email servers do not support this, but I have not been able to find an email server or email client ie Outlook this works with. What email servers do these two facilities work with? Customer also wants to get the read receipts from Outlook, OE and other email programs is this something which NT and or File Explorer can do/supports? If so any pointers to where in the docs I can find this. If not any web resources that point to the specs the read receipts work to if known? I've got this one http://en.wikipedia.org/wiki/Return_receipt already and following up on the links but also googling to see what other info exists so I can build this into the email program.

5
E-Mail - Ask For Help / GPF when sending emails Pt4
« on: October 03, 2012, 11:34:39 AM »
Reposted here becuase the threads not showing anything again:
When I last looked at the API calls the clarion runtime was doing, in C7/8 after the thread was started it went to sleep for upto 250 milliseconds or just went sleep(0) to pass CPU processing back to the OS and other apps. This is what I use to monitor the API calls in dlls and so on, its very eye opening and useful! http://www.rohitab.com/apimonitor

I havent looked at the API calls NT makes yet but is the callbackwindow starting on its own thread? The debugview comments suggest to me it is so could you not build something into NT like I've done in the example apps where it posts events only once an event has passed through the accept loop? Just like what you got me to do with the example apps I've knocked together to demonstrate this problem. BTW you can still get a GPF in C7/8 if you start threads too quickly so I'm surprised you have not seen this in C8 but then you didnt see the C6 gpf's either so theres a difference in PC's at the very least.

It does raise eyebrows when I see comments like it could be a "timing issue" because in a multithread environment one would hope its not relying on time alone to handle what should be interthread communication or posting WM messages to different threads to trigger different actions in other threads.

Re "One tip with the other forums is not to open multiple tabs to the forums at the same time. doing that can cause interesting behaviours."

I wasnt opening different webpages on different tabs at least I dont think I was, but as your other forum is written in Nettalk, I guess our users will also see "interesting behaviours" if they or their customers/users/what-have-you open pages on multiple tabs as well, thanks for the heads up!

Will this be addressed soon as I've got to make an update to a NT webserver which is going to be used by both handhelds (ce.net), smartphones (iphones, blackberry & androids) as well as desktop pc's for a company and one of the points mentioned was the ability to have different webpages open on different tabs. This "interesting behaviour" could scupper this project if its behaviour is too interesting and whilst I dont want to redo this server from scratch in something else, if your workload or the scale of the problem doesnt permit a resolution anytime soon, it might be quicker to port this to something else so if you can give an accurate or best guess idea of timescales this will help me plan ahead and potentially avoid disappointing the customer suffering more losses.

6
E-Mail - Ask For Help / GPF when sending emails Pt2
« on: September 19, 2012, 02:35:34 AM »
Reposting as there seems to be a problem with the forum.

The C6.3 RTL is mixing up the threads running.

Attached is a screenshot of the threads of the threads getting mixed up and a screeshot of the program code in question

[attachment deleted by admin]

7
E-Mail - Ask For Help / GPF when sending emails on multiple threads
« on: September 18, 2012, 02:58:27 AM »
Getting this GPF when trying to send emails on multiple threads.
----------------------------------------------------------------------------------
Program : C:\SendEmailService\ServerService.exe
Version :
At : 23:55:42 on 2012/09/17
Reported error : EXCEPTION_ACCESS_VIOLATION - Error writing data at : 00000000h
Windows : Win XP  5.1.2600 Service Pack 3
Clarion : 6.3
Thread : 13    Field : 0    Event : 0    Keycode : 0
Error at address : 0100846Ch  no line number  no proc  Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
Stack Trace
??? 0042A000h    Line ?=3906    no proc       Src=ServerService.clw
??? 00414558h    Line ?=3906    no proc       Src=ServerService.clw
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 00D4D0C8h    Line ?=74    no proc       Src=Setti_SF.CLW    Module=C:\SendEmailService\Settings.dll 3.0.0.243
??? 010F25C8h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010F25C8h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010DD612h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010F25C8h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010F25C8h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010DD606h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010DA878h    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
[01] 010AA3C8h    Line ?=27    no proc       Src="Library State"  Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 13043A00h    Line ?=246    no proc       Src=NetEnc.Clw    Module=C:\CLARION6\3rdParty\Bin\c60netx.dll 4.49 Built for Clarion 6 9054-9
??? 010EA4ACh    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 010D8F3Bh    Line ?=3023    no proc       Src=wsl.cpp    Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054
??? 1304012Ch    Line ?=246    no proc       Src=NetEnc.Clw    Module=C:\CLARION6\3rdParty\Bin\c60netx.dll 4.49 Built for Clarion 6 9054-9
[02] 130075DCh    Line=928       Proc=CALLBACKWINDOWSRC@F  Src=netdl003.clw    Module=C:\CLARION6\3rdParty\Bin\c60netx.dll 4.49 Built for Clarion 6 9054-9
[03] 01091AB1h    no line number    no proc       Module=C:\Clarion6\BIN\c60runx.dll 6.300.9054

The code is very simple, main service window loops through the email file looking for emails in the outbox. If it finds one, it adds the email ID to a global Long array[250] and then moves onto the next email its found and repeats.

Loc:ThreadCounter = 1
Loop
    GlobalsLock.Wait()
    Loc:EmailIDToSendArray[Loc:ThreadCounter] = Glo:EmailIDToSendArray[Loc:ThreadCounter]
    GlobalsLock.Release()
    IF Loc:EmailIDToSendArray[Loc:ThreadCounter] = 0
        GlobalsLock.Wait()
        Glo:EmailIDToSendArray[Loc:ThreadCounter] = EMA:EmailCode
        GlobalsLock.Release()
        Break
    Else
        Loc:ThreadCounter += 1
    END
    IF Loc:ThreadCounter > GLO:EmailThreads
        Loc:ThreadCounter = 1
        !Sleep(250) !Give other threads chance to send an email seems to lock app
    END
END

Then I have a window which starts multiple times with a 5second delay between each Start when the app starts up and each is passed a unique thread ID so it knows what array entry to read from the Glo:EmailIDToSendArray.

In this example 10 windows (threads) were running, and a timer event checks the global var, if it finds an email id ie not zero then it looks up the email and sends it.
Timer event embed.
GlobalsLock.Wait()
Loc:EmailIDToSendArray[Loc:ThreadNo] = Glo:EmailIDToSendArray[Loc:ThreadNo]
GlobalsLock.Release()
IF Loc:EmailIDToSendArray[Loc:ThreadNo] > 0 and Loc:Sending = 0
    Loc:Sending                             = 1
    Loc:SendEmailID                         = Loc:EmailIDToSendArray[Loc:ThreadNo]
    DO SendEmail
END
IF Loc:EmailIDToSendArray[Loc:ThreadNo] = 0 and Glo:ShutDownService = 1 and Loc:Sending = 0
    Post(Event:CloseWindow)
END

Anyway this gpfs everytime unless I stipulate using just 1 thread which is out of the question because emails build up.

GlobalsLock is the critical section to avoid any threading issue.

So any suggestions?

8
E-Mail - Ask For Help / 6.44 throwing unresolved externals
« on: September 18, 2012, 01:31:02 AM »
Having a problem with an app that was running NT4.16, so have downloaded NT6.44 to try and resolve the problem and now the app wont compile I'm getting lots of unresolved externals (see below).

C60netx.lib is listed in the Library, Objects & Resource Files, I've deleted this and reselected it, no joy, removed the global extension and local procedure extensions but no joy.
Project defines are
SELFSERVICE_DLL=>0
NETTALKLOG=>1
_ODDJOB_=>0
_STRINGTHEORY_=>0
_ABCDllMode_=>1
_ABCLinkMode_=>0
_NetTalkDllMode_=>1
_NetTalkLinkMode_=>0

So anything else I can try?




Unresolved External _TRACE@F9NETSIMPLEsb in Serve006.obj
Unresolved External HEXTOLONG@F9NETSIMPLEsb in Serve006.obj
Unresolved External LONGTOHEX@F9NETSIMPLEl in Serve006.obj
Unresolved External ASK@F8NETEMAILl in Serve006.obj
Unresolved External DECIDE@F8NETEMAILl in Serve006.obj
Unresolved External DONE@F8NETEMAILll in Serve006.obj
Unresolved External ISTYPE@F8NETEMAIL in Serve006.obj
Unresolved External GETDATA@F8NETEMAIL in Serve006.obj
Unresolved External SETPACKETDATA@F8NETEMAILsbl in Serve006.obj
Unresolved External DATALEN@F8NETEMAIL in Serve006.obj
Unresolved External SENDALLDATA@F8NETEMAILRsbl in Serve006.obj
Unresolved External _CLOSEIDLECONNECTION@F12NETEMAILSEND in Serve006.obj
Unresolved External _BUFFERREPLY@F8NETEMAIL in Serve006.obj
Unresolved External _GETBUFFEREDDATA@F8NETEMAIL in Serve006.obj
Unresolved External _SPLITPARAM@F8NETEMAILRsblUc in Serve006.obj
Unresolved External _SPLITPARAM2@F8NETEMAILRsblUcUc in Serve006.obj
Unresolved External _PROCESSRESIZEWHOLEMESSAGE@F8NETEMAILl in Serve006.obj
Unresolved External _PROCESSSETSIZES@F8NETEMAILlll in Serve006.obj
Unresolved External _PROCESSSPLITWHOLEMESSAGE@F8NETEMAIL in Serve006.obj
Unresolved External _PROCESSHEADER@F8NETEMAILll in Serve006.obj
Unresolved External _EXTRACTHEADER@F8NETEMAILsbsbl in Serve006.obj
Unresolved External _EXTRACTHEADERPART@F8NETEMAILsbsb in Serve006.obj
Unresolved External _PROCESSHEADERPARTS@F8NETEMAILRsbPsbPsbPsbPsb in Serve006.obj
Unresolved External _PROCESSBODY@F8NETEMAIL in Serve006.obj
Unresolved External _PROCESSPARTS@F8NETEMAILsbsbl in Serve006.obj
Unresolved External _PROCESSPART@F8NETEMAILsb in Serve006.obj
Unresolved External _PROCESSBODYNOCONTENTTYPE@F8NETEMAILl in Serve006.obj
Unresolved External _ADDTOEMBEDLISTQUEUE@F8NETEMAILRsbsbsb in Serve006.obj
Unresolved External _ADDTOATTACHMENTLISTQUEUE@F8NETEMAILRsb in Serve006.obj
Unresolved External _PROCESSCLEARDATA@F8NETEMAIL in Serve006.obj
Unresolved External _PROCESSSTORETEXT@F8NETEMAILsbsbsb in Serve006.obj
Unresolved External _PROCESSSTOREHTML@F8NETEMAILsbsbsb in Serve006.obj
Unresolved External _PROCESSSTOREATTACHMENT@F8NETEMAILsbsbsbsbsbsbsb in Serve006.obj
Unresolved External _PROCESSRAISEERROR@F8NETEMAILsb in Serve006.obj
Unresolved External _PROCESSSENDIT@F8NETEMAIL in Serve006.obj
Unresolved External _GETLINEENTRY@F8NETEMAILsbRsbllll in Serve006.obj
Unresolved External _PROCESSCLEANSTRING@F8NETEMAILsbl in Serve006.obj
Unresolved External _PROCESSUUDECODE@F8NETEMAILsb in Serve006.obj
Unresolved External _SAVEFILE@F8NETEMAILRsbsbl in Serve006.obj
Unresolved External _CLEANFILENAME@F8NETEMAILsb in Serve006.obj
Unresolved External _PROCESSDELIVERYSTATUS@F8NETEMAILll in Serve006.obj
Unresolved External ADDATTACHMENTFROMFILE@F12NETEMAILSENDsbsbllsbsb in Serve006.obj
Unresolved External OPENATTACHMENTFILE@F12NETEMAILSENDsbsb in Serve006.obj
Unresolved External READATTACHMENTFILE@F12NETEMAILSENDsbsb in Serve006.obj
Unresolved External CLOSEATTACHMENTFILE@F12NETEMAILSENDsbsb in Serve006.obj
Unresolved External POSTERROR@F12NETEMAILSENDlllsbsb in Serve006.obj
Unresolved External RESETPROGRESSCONTROL@F12NETEMAILSEND in Serve006.obj
Unresolved External EMBEDIMAGES@F12NETEMAILSENDRsblsb in Serve006.obj
Unresolved External PROCESSEMBEDLIST@F12NETEMAILSENDRsb15NET:EMBEDSQTYPE in Serve006.obj
Unresolved External PROCESSEMBEDNAMES@F12NETEMAILSEND15NET:EMBEDSQTYPERsb in Serve006.obj
Unresolved External SETATTACHMENTCONTENTTYPE@F12NETEMAILSENDsbRsb in Serve006.obj

9
E-Mail - Ask For Help / GPF when sending emails too quickly
« on: September 13, 2012, 10:37:26 AM »
Got a situation where we need to send lots of emails and I'm getting the following error message

Runtime Error
Do you want to GPF?
Yes No

Basically I'm calling a process which loops through all emails in the "outbox" and in the TakeRecord embed starting a new procedure with the email id passed as a string parameter.

The newly started procedure is a hidden window which looks up the email record from the passed parameter and then attempts to send the email and either sends and updates the email record to say its sent or keeps retrying according to the users requirements until it eventually fails and logs the failure.

If the email fails to send, the window stays active but hidden waiting on a timer events until its time to resend the email again so this window could be open but hidden for hours potentially and could have hundreds or thousands of emails potentially waiting to send and thus hundreds or thousands of windows open although yet to test this because of this problem with the GPF windows.

Now obviously the runtime cant handle starting so many hidden windows which is why I get the "do you want gpf?" message so is there any way I can use the SendEmail class without a window to get around the problems with the Clarion runtime?

I have considered putting a sleep(x) before each start in the TakeRecords embed but this puts the whole app to sleep so emails just build up and get delayed until the customer stops using the system.

Anyway around this problem?

Edit: The reason for starting a new window on a new thread is because it can take a a number of seconds sending each email (some have large attachments) and talking to someone elses email server over a broadband connection (not an ISP's email server) can be slow so to wait for each email one after the other just creates a build of emails waiting to send.





10
Web Server - Ask For Help / 6.37 errors Unable to close connection
« on: July 11, 2012, 03:50:54 AM »
Having installed 6.37 I'm now getting websites which are throwing error messages for normal (80) or SSL (443) sites with numerous Unable to Close connection errors -34 and Error Sending data -40.

11
Just installed 6.37 in a bid to get my SSL website working, first recompile of the site throws these errors:
"web\themes\midnight\nettalk-ui.css does not exist"
"web\themes\midnight\nettalk-mobile.css does not exist"

I'm using ui-lightness as my theme.

12
The Rest - Ask For Help / Any DNS lookup facilities in Nettalk
« on: May 22, 2012, 12:55:47 PM »
Is there any DNS lookup facilities in nettalk where I can interogate the DNS records?

I need to monitor some DNS records but cant find anything in the HTML docs other than nettalk handles the dns lookups automatically but no mention of getting the data from nettalk.

TIA.

13
Web Server - Ask For Help / Error in Javascript Web9 SSL Example
« on: April 14, 2012, 12:49:13 AM »
I'm getting a red bar with white text saying "Error in site Javascript" appearing on SSL pages and the page layouts are changing, I've compiled the example app Web9 and see the same thing again as well.

I have noticed a difference in the SSL object styles for BodyClass and Body Div Class ie example was 'PageBody' & 'PageBody' and mine was 'nt-body' and 'nt-body-div' but swapping them around didn’t make any difference.

Doesn’t make a difference if I use 127.0.0.1 or localhost as mentioned here
www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3455.msg12447#msg12447 and I have only tested with IE and not Chrome so far.

In the SSL example app you cant add, change or delete anything either and the same goes with my webpages served via SSL.

Any suggestions or things to look at?

TIA.

C6 & NT6.27


14
The Rest - Ask For Help / RSS Feeds
« on: February 18, 2012, 09:35:29 AM »
Can xFiles consume RSS feeds?
I see xFiles can create RSS feeds, are there any examples of providing RSS feedsusing xFiles from a Nettalk webserver?

Pages: [1]