473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Out of memory at line __ (Activex/IE/Vbscript)

3
Hello, didn't know where to post this, since you don't have a vbscript section. I thin k however that this applies to javascript as well. I have an asp.net web application which allows the staff to swipe a variety of cards as input. I have a magtek card reader (their tech support is incompetent) for that purpose. It requires an activex component, albeit a reference to a .cab file through an embedded <object> on the webpage. Then I have a vbscript that references that object by its id, and opens the port on window load and closes the port on window unload event on every page.

The web application has over 100 pages, and this is on every page (it's on master page). So eventually what happens is that the clerk gets the following error:

Out of memory at line 28. The line 28 looks something like USBHID.PortOpen = true in vbscript. USBHID is the ID of the embedded <object> mentioned before. Now mind you, the clerk doesn' t necessarily even swipe cards. It just happens after a while. I've looked around over the web, and all i know is that its some kind of a memory leak, which I knew before looking around on the web. If you would like to take a look at the client side code, it's on magtek's demo code page:
http://www.magtek.com/support/softwa...read_parse.asp

Please note this doesn't happen on the demo page since it's just one page. It however happens on my web app since the clerk goes through several pages over time.

I don't think there's a problem with the vbscript really. All it is doing is referencing the object in order to read in and parse some values when a card is swiped in the event handler. But then again, most of the time the clerk doesn't swipe any cards. I think the problem is in the component that they've written, and their tech support is horrible. They don't even respond. Maybe if somebody has encountered something like this before, they could help. I couldn't find of anyway in vbscript to explicitly free the memory taken up by USBHID. If maybe there was a way to free the memory, i think the problem would be solved. Thanks.
Jul 27 '07 #1
0 4244

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tash Robinson | last post by:
Hi I am kind of new to active-x programming, and need a point in the right direction. I have an active-x control that I wrote in VB6. I wrote a testbed in VB and everything seems to work OK....
7
by: Newbie | last post by:
Hi all, I have some activeX code that I use to get the local computer name. (I don't think this is possible using ASP from my research). The rest of my code is ASP. I'd like to know how to...
7
by: NewbieJon | last post by:
I am attempting to send the variable "sComputerName" from my ActiveX script to "GetInfo.asp" using javascript. (Having been advised this is the way to get my ActiveX variable into my ASP script) ...
2
by: Stephanie Stowe | last post by:
Hi. I have never worked on a project that requires IE. So I have done the vast majority of my work server side, delivering cross-browser compliant HTML to the client. I am working on a bug fix to a...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
0
by: leekent | last post by:
I need to write an activeX object to be installed on client machine which will be called using vbscript in web pages. The activeX will be writen in C#, and I need to return an array of strings. I...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
0
by: Frank | last post by:
Any suggestions on how I should handle this? I was asked to convert a small web application that was written in classic ASP into ASP.NET. The original site uses some VBScript to interface with...
0
by: Lee | last post by:
I have an activex control built with VS 2005, C#. I have a "Done" event that I fire from the control when some processing is done. I have tested this with a C++ app as the host, and I do get the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.