View Full Version : Help! Generic IP question...
danward79
June 10th, 2005, 02:09 PM
Hi All,
I am having problems. with gip.Open and the callback function being called.
SageTV = {
ConnectToSage = function (self, SageSocketIP, SageSocketPort)
SageStatusSocket, Error = gip.Open (SageSocketIP, SageSocketPort, 'self.GetDataFromSage');
if not SageStatusSocket then
print ("Error Connecting to TCP Server...", err);
else print ("Connection Successful");
end;
end;
GetDataFromSage = function (self, l)
print ("HELLO")
_, _, Key, Value = string.find (l, "(.*):%s*(.*)");
if Key~= nil then
Key = string.gsub (Key, "_", "")
if string.find (Key, ":") then
_, _, Key = string.find (Key, "(.*):%s*")
end;
end;
print (Key, Value)
if Key ~= nil then
self.SageStatus[Key] = Value
end;
end;
}
I am finding that the function is not being called, it was before I put the code into an object, but at the moment I am struglling to figure it out.
It is the folllowing line
SageStatusSocket, Error = gip.Open (SageSocketIP, SageSocketPort, 'self.GetDataFromSage');
Anyone able to shed some light on this?
Thanks,
Promixis
June 10th, 2005, 03:02 PM
First, we don't recommendd passing strings for functions names. Specify the function.
Next, this looks a little strange but is how it is done for methods of objects....
function (...) return self:GetDataFromSage (unpack (arg)) end
so, replace 'self.GetDataFromSage' with the above statement.
danward79
June 10th, 2005, 03:30 PM
That just crashed should the "..." in
function (...) return self:GetDataFromSage (unpack (arg)) end
be a function of some form? like ConnectToSage
function (ConnectToSage) return self:GetDataFromSage (unpack (arg)) end
Promixis
June 10th, 2005, 03:35 PM
No, that should do it.
What error did you get?
Simplify the getdatafromsage function to a print statement only.
danward79
June 10th, 2005, 03:44 PM
Hi,
It is an error I was getting before, it seems that it crashes girder if you do not specify the callback as a string.
I get the same error with just a print statement..
date/time : 2005-06-10, 21:42:03, 734ms
computer name : STACKER
user name : Dannyboy
operating system : Windows XP Service Pack 2 build 2600
system language : English
system up time : 3 days 4 hours
program up time : 12 minutes 47 seconds
processors : 2x Intel(R) Pentium(R) 4 CPU 3.20GHz
physical memory : 1576/2047 MB (free/total)
free disk space : (C:) 221.42 GB
display mode : 1280x1024, 32 bit
process id : $e10
allocated memory : 17.52 MB
executable : girder.exe
exec. date/time : 2005-05-27 16:32
version : 4.0.0.201
madExcept version : 2.7g
exception class : EAccessViolation
exception message : Access violation at address 02D19816 in module 'genericip.dll'. Read of address 00000000.
thread $15d4:
02d19816 genericip.dll
10002119 lua5.dll lua_pcall
0194a9ed girder.dll luahndl 1276 RunScript
019415c1 girder.dll GirAction 521 l_girNumParser
0194207f girder.dll GirAction 847 ExecuteGirAction
019480ad girder.dll proc 57 l_TriggerNodeB
0194816c girder.dll proc 106 l_TriggerNode
01948259 girder.dll proc 201 TriggerNode
01951d8b girder.dll queue 733 l_ProcessingFunctions
01951f01 girder.dll queue 797 IncomingEvent
01952212 girder.dll girder 64 l_MsgFilter
0195250c girder.dll girder 235 l_CoreThread
0042f88b girder.exe madExcept ThreadExceptFrame
>> created by main thread ($d2c) at:
0195268c girder.dll girder 340 CoreStart
main thread ($d2c):
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
7c80253d kernel32.dll WaitForSingleObject
00422fc9 girder.exe madExcept PauseMeEventually
0042fde3 girder.exe madExcept PeekMessageCallbackA
004b0a1f girder.exe Forms TApplication.ProcessMessage
004b0ac6 girder.exe Forms TApplication.HandleMessage
004b0cf6 girder.exe Forms TApplication.Run
006299f2 girder.exe Girder 92 initialization
thread $1084:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
7c80253d kernel32.dll WaitForSingleObject
004bf8bd girder.exe VirtualTrees 5128 TWorkerThread.Execute
0044f43c girder.exe Classes ThreadProc
00405044 girder.exe System ThreadWrapper
thread $6ec:
7c90eb94 ntdll.dll KiFastSystemCallRet
77d5107d USER32.dll GetMessageA
0042f88b girder.exe madExcept ThreadExceptFrame
>> created by thread $15d4 at:
0194f926 girder.dll plugins 1844 LoadPluginsFromRegistry
thread $1418: <priority:15>
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9a9 ntdll.dll NtWaitForMultipleObjects
7c8094ec kernel32.dll WaitForMultipleObjectsEx
7c809c81 kernel32.dll WaitForMultipleObjects
thread $ad0:
7c90eb94 ntdll.dll KiFastSystemCallRet
77d5107d USER32.dll GetMessageA
thread $ff0:
7c90eb94 ntdll.dll KiFastSystemCallRet
77d5107d USER32.dll GetMessageA
thread $8c0:
7c90eb94 ntdll.dll KiFastSystemCallRet
77d5107d USER32.dll GetMessageA
thread $228:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
7c80253d kernel32.dll WaitForSingleObject
thread $13cc:
7c90eb94 ntdll.dll KiFastSystemCallRet
77d5107d USER32.dll GetMessageA
thread $1200:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9a9 ntdll.dll NtWaitForMultipleObjects
7c8094ec kernel32.dll WaitForMultipleObjectsEx
7c809c81 kernel32.dll WaitForMultipleObjects
0042f88b girder.exe madExcept ThreadExceptFrame
>> created by thread $15d4 at:
01951e5d girder.dll queue 751 l_ProcessingFunctions
thread $1710:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9a9 ntdll.dll NtWaitForMultipleObjects
7c8094ec kernel32.dll WaitForMultipleObjectsEx
7c809c81 kernel32.dll WaitForMultipleObjects
thread $9a8:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
7c80253d kernel32.dll WaitForSingleObject
thread $564:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
7c80253d kernel32.dll WaitForSingleObject
thread $c58:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9be ntdll.dll NtWaitForSingleObject
7c8025d5 kernel32.dll WaitForSingleObjectEx
thread $eb8: <priority:1>
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e319 ntdll.dll NtRemoveIoCompletion
thread $c88:
7c90eb94 ntdll.dll KiFastSystemCallRet
7c90e9a9 ntdll.dll NtWaitForMultipleObjects
7c8094ec kernel32.dll WaitForMultipleObjectsEx
77d495f3 USER32.dll MsgWaitForMultipleObjectsEx
77d496a3 USER32.dll MsgWaitForMultipleObjects
0042f88b girder.exe madExcept ThreadExceptFrame
>> created by main thread ($d2c) at:
4ec76993 gdiplus.dll GdiplusStartup
modules:
00400000 girder.exe 4.0.0.201 C:\Program Files\Promixis\Girder
017c0000 shared.dll 4.0.0.89 C:\Program Files\Promixis\Girder
018e0000 girder.dll 4.0.0.175 C:\Program Files\Promixis\Girder
01df0000 luacom5.dll C:\Program Files\Promixis\Girder
01e30000 lualib5.dll 5.0.2.0 C:\Program Files\Promixis\Girder
01ea0000 mskoeplg.dll 5.0.0.8 C:\PROGRA~1\McAfee\SPAMKI~1
01ed0000 AudioMixer.dll 1.5.0.0 C:\Program Files\Promixis\Girder\plugins
01ef0000 dui.dll 1.0.0.5 C:\Program Files\Promixis\Girder
01f20000 auxillary.dll 1.4.0.0 C:\Program Files\Promixis\Girder
02080000 McVSSkt.dll 8.0.0.30 c:\progra~1\mcafee.com\vso
02470000 SciLexer.DLL 1.6.1.0 C:\Program Files\Promixis\Girder
02bb0000 devnotify.dll 1.1.0.0 C:\Program Files\Promixis\Girder\plugins
02ce0000 DTools.dll C:\Program Files\Promixis\Girder\plugins
02d10000 genericip.dll 1.0.0.2 C:\Program Files\Promixis\Girder\plugins
02d50000 MiscUtils.dll C:\Program Files\Promixis\Girder\plugins
02d70000 ComSvr.dll 1.2.6.0 C:\Program Files\Promixis\Girder\plugins
02f00000 copydata.dll 1.1.0.0 C:\Program Files\Promixis\Girder\plugins
03060000 MouseControl.dll 1.0.0.1 C:\Program Files\Promixis\Girder\plugins
03090000 Scheduler.dll 1.0.0.1 C:\Program Files\Promixis\Girder\plugins
030c0000 Sendmessage.dll 1.5.5.0 C:\Program Files\Promixis\Girder\plugins
030d0000 simpletimer.dll 1.4.0.0 C:\Program Files\Promixis\Girder\plugins
030e0000 TaskSwitcherEx.dll 1.0.0.1 C:\Program Files\Promixis\Girder\plugins
03100000 Enhanced TaskSwitcher.dll 1.0.0.0 C:\Program Files\Promixis\Girder
03370000 USBUIRT.dll 3.0.0.0 C:\Program Files\Promixis\Girder\plugins
03390000 WinCon.dll 1.0.0.1 C:\Program Files\Promixis\Girder\plugins
033b0000 ZipExt.dll C:\Program Files\Promixis\Girder\plugins
035e0000 LWinFunc.dll 1.0.0.1 C:\Program Files\Promixis\Girder
048f0000 daemon.dll 3.47.0.0 C:\WINDOWS
04930000 PFCTOC.DLL 1.0.0.12 C:\Program Files\D-Tools
04970000 bw5mount.dll 1.0.2.0 C:\Program Files\D-Tools\Plugins\Images
04980000 ccdmount.dll 1.2.0.0 C:\Program Files\D-Tools\Plugins\Images
04990000 mdsmount.dll 1.1.0.0 C:\Program Files\D-Tools\Plugins\Images
049a0000 nrgmount.dll 1.2.0.0 C:\Program Files\D-Tools\Plugins\Images
049b0000 pdimount.dll 1.1.0.0 C:\Program Files\D-Tools\Plugins\Images
049d0000 lxp.dll C:\Program Files\Promixis\Girder
049e0000 LIBEXPAT.dll C:\Program Files\Promixis\Girder
04a30000 lsocket.dll C:\Program Files\Promixis\Girder
04a60000 lmime.dll C:\Program Files\Promixis\Girder
10000000 lua5.dll 5.0.2.0 C:\Program Files\Promixis\Girder
20000000 odbcint.dll 3.525.1117.0 C:\WINDOWS\system32
4ec50000 gdiplus.dll 5.1.3102.2180 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_65 95b64144ccf1df_1.0.2600.2180_x-ww_522f9f82
59990000 wmiaprpl.dll 5.1.2600.2180 C:\WINDOWS\System32\wbem
5ad70000 uxtheme.dll 6.0.2900.2180 C:\WINDOWS\system32
5adb0000 UTILDLL.dll 5.1.2600.0 C:\WINDOWS\system32
5b7e0000 tapiperf.dll 5.1.2600.0 C:\WINDOWS\system32
5b860000 NETAPI32.dll 5.1.2600.2180 C:\WINDOWS\system32
5d300000 hhctrl.ocx 5.2.3790.1280 C:\WINDOWS\System32
5d400000 rsvpperf.dll 5.1.2600.0 C:\WINDOWS\System32
5e1e0000 pschdprf.dll 5.1.2600.0 C:\WINDOWS\system32
5e740000 perfts.dll 5.1.2600.0 C:\WINDOWS\system32
5e750000 perfproc.dll 5.1.2600.2180 C:\WINDOWS\system32
5e760000 perfos.dll 5.1.2600.2180 C:\WINDOWS\system32
5e780000 perfnet.dll 5.1.2600.0 C:\WINDOWS\system32
5e790000 perfdisk.dll 5.1.2600.2180 C:\WINDOWS\system32
5e7a0000 Perfctrs.dll 5.1.2600.2180 C:\WINDOWS\system32
5edd0000 olepro32.dll 5.1.2600.2180 C:\WINDOWS\system32
60c70000 msdtcuiu.DLL 2001.12.4414.258 C:\WINDOWS\system32
66000000 MSVBVM60.DLL 6.0.97.82 C:\WINDOWS\system32
662b0000 hnetcfg.dll 5.1.2600.2180 C:\WINDOWS\system32
666f0000 inetmib1.dll 5.1.2600.2180 C:\WINDOWS\system32
6e560000 MSDTCPRX.dll 2001.12.4414.258 C:\WINDOWS\system32
711a0000 odbcbcp.dll 2000.85.1117.0 C:\WINDOWS\system32
71a50000 mswsock.dll 5.1.2600.2180 C:\WINDOWS\System32
71a90000 wshtcpip.dll 5.1.2600.2180 C:\WINDOWS\System32
71aa0000 WS2HELP.dll 5.1.2600.2180 C:\WINDOWS\system32
71ab0000 ws2_32.dll 5.1.2600.2180 C:\WINDOWS\system32
71ad0000 WSOCK32.dll 5.1.2600.2180 C:\WINDOWS\system32
71b20000 MPR.dll 5.1.2600.2180 C:\WINDOWS\system32
71bf0000 SAMLIB.dll 5.1.2600.2180 C:\WINDOWS\system32
71f60000 snmpapi.dll 5.1.2600.2180 C:\WINDOWS\system32
72830000 MFC42u.DLL 6.2.4131.0 C:\WINDOWS\system32
72d10000 msacm32.drv 5.1.2600.0 C:\WINDOWS\system32
72d20000 wdmaud.drv 5.1.2600.0 C:\WINDOWS\system32
72f60000 loadperf.dll 5.1.2600.2180 C:\WINDOWS\system32
73000000 winspool.drv 5.1.2600.2180 C:\WINDOWS\system32
73590000 TRAFFIC.dll 5.1.2600.0 C:\WINDOWS\system32
74000000 pdh.dll 5.1.2600.2180 C:\WINDOWS\system32
74320000 ODBC32.dll 3.525.1117.0 C:\WINDOWS\system32
745e0000 msi.dll 3.1.4000.2435 C:\WINDOWS\system32
74ae0000 CFGMGR32.dll 5.1.2600.2180 C:\WINDOWS\system32
750b0000 RESUTILS.DLL 5.1.2600.2180 C:\WINDOWS\system32
750f0000 MTXCLU.DLL 2001.12.4414.258 C:\WINDOWS\system32
75290000 wbemcomn.dll 5.1.2600.2180 C:\WINDOWS\System32\wbem
76080000 MSVCP60.dll 6.2.3104.0 C:\WINDOWS\system32
76360000 WINSTA.dll 5.1.2600.2180 C:\WINDOWS\system32
76390000 IMM32.dll 5.1.2600.2180 C:\WINDOWS\system32
763b0000 comdlg32.dll 6.0.2900.2180 C:\WINDOWS\system32
769c0000 USERENV.dll 5.1.2600.2180 C:\WINDOWS\system32
76b20000 ATL.DLL 3.5.2284.0 C:\WINDOWS\system32
76b40000 winmm.dll 5.1.2600.2180 C:\WINDOWS\system32
76bf0000 Psapi.dll 5.1.2600.2180 C:\WINDOWS\system32
76d10000 CLUSAPI.DLL 5.1.2600.2180 C:\WINDOWS\system32
76d30000 WMI.dll 5.1.2600.2180 C:\WINDOWS\system32
76d40000 MPRAPI.dll 5.1.2600.2180 C:\WINDOWS\system32
76d60000 iphlpapi.dll 5.1.2600.2180 C:\WINDOWS\system32
76e10000 adsldpc.dll 5.1.2600.2180 C:\WINDOWS\system32
76e80000 rtutils.dll 5.1.2600.2180 C:\WINDOWS\system32
76eb0000 TAPI32.dll 5.1.2600.2180 C:\WINDOWS\system32
76f20000 DNSAPI.dll 5.1.2600.2180 C:\WINDOWS\system32
76f60000 WLDAP32.dll 5.1.2600.2180 C:\WINDOWS\system32
76fb0000 winrnr.dll 5.1.2600.2180 C:\WINDOWS\System32
76fd0000 CLBCATQ.DLL 2001.12.4414.258 C:\WINDOWS\system32
77050000 COMRes.dll 2001.12.4414.258 C:\WINDOWS\system32
77120000 OLEAUT32.dll 5.1.2600.2180 C:\WINDOWS\system32
771b0000 WININET.dll 6.0.2900.2627 C:\WINDOWS\system32
773d0000 COMCTL32.dll 6.0.2900.2180 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
774e0000 ole32.dll 5.1.2600.2595 C:\WINDOWS\system32
77690000 NTMARTA.DLL 5.1.2600.2180 C:\WINDOWS\system32
77920000 SETUPAPI.dll 5.1.2600.2180 C:\WINDOWS\system32
77a80000 CRYPT32.dll 5.131.2600.2180 C:\WINDOWS\system32
77b20000 MSASN1.dll 5.1.2600.2180 C:\WINDOWS\system32
77bd0000 midimap.dll 5.1.2600.2180 C:\WINDOWS\system32
77be0000 MSACM32.dll 5.1.2600.2180 C:\WINDOWS\system32
77c00000 version.dll 5.1.2600.2180 C:\WINDOWS\system32
77c10000 msvcrt.dll 7.0.2600.2180 C:\WINDOWS\system32
77cc0000 ACTIVEDS.dll 5.1.2600.2180 C:\WINDOWS\system32
77d40000 USER32.dll 5.1.2600.2622 C:\WINDOWS\system32
77dd0000 ADVAPI32.dll 5.1.2600.2180 C:\WINDOWS\system32
77e70000 RPCRT4.dll 5.1.2600.2180 C:\WINDOWS\system32
77f10000 GDI32.dll 5.1.2600.2180 C:\WINDOWS\system32
77f60000 SHLWAPI.dll 6.0.2900.2627 C:\WINDOWS\system32
77fe0000 Secur32.dll 5.1.2600.2180 C:\WINDOWS\system32
79170000 mscoree.dll 1.1.4322.2032 C:\WINDOWS\system32
79760000 CorperfmonExt.dll 1.1.4322.2032 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
79970000 perfcounter.dll 1.1.4322.2032 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
79e60000 aspnet_isapi.dll 1.1.4322.2032 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
79fd0000 netfxperf.dll 1.1.4322.573 C:\WINDOWS\system32
7c340000 MSVCR71.dll 7.10.3052.4 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
7c800000 kernel32.dll 5.1.2600.2180 C:\WINDOWS\system32
7c900000 ntdll.dll 5.1.2600.2180 C:\WINDOWS\system32
7c9c0000 SHELL32.dll 6.0.2900.2620 C:\WINDOWS\system32
7d9a0000 query.dll 5.1.2600.2180 C:\WINDOWS\System32
hardware:
+ Computer
- ACPI Multiprocessor PC
+ Disk drives
- Adaptec Array SCSI Disk Device
- GENERIC USB Storage-CFC USB Device
- GENERIC USB Storage-MSC USB Device
- GENERIC USB Storage-SDC USB Device
- GENERIC USB Storage-SMC USB Device
- ST3250823AS
+ Display adapters
- NVIDIA GeForce 6600 (driver 7.1.8.9)
+ DVD/CD-ROM drives
- _NEC DVD_RW ND-3520A
- Generic DVD-ROM SCSI CdRom Device
+ IDE ATA/ATAPI controllers
- Intel(R) 82801FB Ultra ATA Storage Controllers - 2651 (driver 6.1.0.1004)
- Primary IDE Channel
- Secondary IDE Channel
+ IEEE 1394 Bus host controllers
- Texas Instruments OHCI Compliant IEEE 1394 Host Controller
+ Infrared devices
- Built-in Infrared Device
+ Keyboards
- Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
+ Mice and other pointing devices
- PS/2 Compatible Mouse
+ Monitors
- Default Monitor
+ Network adapters
- 1394 Net Adapter
- Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller (driver 7.29.4.3)
+ Ports (COM & LPT)
- Communications Port (COM1)
- Printer Port (LPT1)
+ Printers
- Canon PIXMA iP4000 (driver 1.80.2.50)
+ Processors
- Intel(R) Pentium(R) 4 CPU 3.20GHz
- Intel(R) Pentium(R) 4 CPU 3.20GHz
+ SCSI and RAID controllers
- Adaptec SATA RAID 2810SA Controller (driver 4.1.0.7244)
- D347PRT SCSI Controller
+ Sound, video and game controllers
- Audio Codecs
- C-Media Azalia Audio Device (driver 5.12.1.7)
- Legacy Audio Drivers
- Legacy Video Capture Devices
- Media Control Devices
- Video Codecs
+ System devices
- ACPI Fixed Feature Button
- ACPI Power Button
- Adaptec RAID Management Device (driver 4.1.0.7244)
- Direct memory access controller
- Intel(R) 82801 PCI Bridge - 244E (driver 6.0.0.1013)
- Intel(R) 82801FB LPC Interface Controller - 2640 (driver 6.0.0.1013)
- Intel(R) 82801FB/FBM SMBus Controller - 266A (driver 6.0.0.1013)
- Intel(r) 82802 Firmware Hub Device
- Intel(R) 915G/P/GV PCI Express Root Port - 2581 (driver 6.2.0.1006)
- Intel(R) 915G/P/GV Processor to I/O Controller - 2580 (driver 6.2.0.1006)
- ISAPNP Read Data Port
- Logical Disk Manager
- Microcode Update Device
- Microsoft ACPI-Compliant System
- Microsoft System Management BIOS Driver
- Microsoft UAA Bus Driver for High Definition Audio
- Motherboard resources
- Motherboard resources
- Motherboard resources
- Numeric data processor
- PCI bus
- Plug and Play Software Device Enumerator
- PnP BIOS Extension (driver 3.47.0.0)
- Printer Port Logical Interface
- Programmable interrupt controller
- System board
- System CMOS/real time clock
- System speaker
- System timer
- Terminal Server Device Redirector
- Terminal Server Keyboard Driver
- Terminal Server Mouse Driver
- Volume Manager
+ Universal Serial Bus controllers
- Intel(R) 82801FB/FBM USB Universal Host Controller - 2658 (driver 6.0.0.1011)
- Intel(R) 82801FB/FBM USB Universal Host Controller - 2659 (driver 6.0.0.1011)
- Intel(R) 82801FB/FBM USB Universal Host Controller - 265A (driver 6.0.0.1011)
- Intel(R) 82801FB/FBM USB Universal Host Controller - 265B (driver 6.0.0.1011)
- Intel(R) 82801FB/FBM USB2 Enhanced Host Controller - 265C (driver 6.0.0.1011)
- USB Mass Storage Device
- USB Printing Support
- USB Root Hub
- USB Root Hub
- USB Root Hub
- USB Root Hub
- USB Root Hub
disassembling:
[...]
02d1980b add edi, 4
02d1980e dec ecx
02d1980f jz loc_2d197c0
02d19811 mov edx, $7efefeff
02d1980f
02d19816 sub_2d19816: ; function entry point
02d19816 > mov eax, [esi]
02d19818 add edx, eax
02d1981a xor eax, -1
02d1981d xor eax, edx
02d1981f mov edx, [esi]
[...]
Rob H
June 10th, 2005, 03:48 PM
And all the examples use a string as well.
Promixis
June 10th, 2005, 03:49 PM
Ok, then we have not yet converted this over to the new format :(
In the mean time you could do a workaround...
function tempcallback ()
function (...) return SageTV:GetDataFromSage (unpack (arg)) end
end
and use 'tempcallback'
Please email this one to Ron :)
Only 2 more days and I am off the hook!
Promixis
June 10th, 2005, 03:54 PM
And all the examples use a string as well.
Bad Ron. BAD BAD Ron! :lol:
We will be removing those. All callbacks should be specified by passing a function reference. Passing a string is just not good coding (IMHO) so we are thinking of completely removing this facility - any contrary thoughts?
The one thing about passing a function reference, is an object cannot be garbagecollected until that reference is freed. So, a timer callback will keep an object from being collected. That way, objects don't go missing when a timer or etc fires. It also means you have to clean up after yourself.
Rob H
June 10th, 2005, 04:00 PM
Bad Ron. BAD BAD Ron! :lol:
:lol: :lol:
We will be removing those. All callbacks should be specified by passing a function reference. Passing a string is just not good coding (IMHO) so we are thinking of completely removing this facility - any contrary thoughts?
I agree entirely. If people really want to use a string for some strange reason they could always have a table of callback functions indexed by the string.
danward79
June 10th, 2005, 04:12 PM
Thanks for the answer Mike,
by the way, most of my bug reports are getting bounced back, I am using bugz@promixis.com or support @...
birty
June 10th, 2005, 04:30 PM
should be gbugz@promixis.com
danward79
June 10th, 2005, 04:47 PM
Ah, ok thanks
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.