Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download - Clean, repair and optimize your system



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner 2009 - Free Scan Now

Err.Number 486, Vista Ultimate, Visual Studio, & Visual Basic

microsoft.public.windows.vista.general




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 01-16-2008
Mike
 

Posts: n/a
Err.Number 486, Vista Ultimate, Visual Studio, & Visual Basic
I get the err.number 486 error message when I try to print within a loop to
my HP LJ 1022. After the first page prints, the other 15 pages all choke on
the err.number 486. According to the VB Help files, there is no such error
message.

I run the same program on my Xp Home edition PC and print to the HP LJ 1022
as a network printer attached to the Vista machine via Netgear switch, and
the same code works perfectly even to the same printer as a network printer.

What am I missing here? My new Dell has 4GB of RAM, as compared to 512 MB
on the old Dell, so memory shouldn't be a problem.

The code that chokes is listed below. The statement it chokes on after
printing the first page is "PrintForm":

PrintAllLines:

Dim ipos, LnNbr
LnNbr = 0: ipos = 0
For MtsPropLocRec = 1 To MtsPropLoctotRecords

Call ReadMtsPropLocFile(SysPth, MtsPropLocFname, MtsPropLocBuf1,
MtsPropLocRec, MtsPropLoctotRecords)
If ChooseRptType Then
GoSub testForMatch
If Match = 0 Then
GoTo NextRec
End If
PrtPage = 1
End If
If (allRecs And dtType > 0) Then
GoSub testForMatch
If Match = 0 Then
GoTo NextRec
End If
PrtPage = 1
End If
GoSub BldPrtLine
LnNbr = LnNbr + 1
ipos = ipos + 20
If LnNbr >= 18 Then
If (Page >= beginPage And Page <= endPage) Then
PrintForm
End If
LnNbr = 1: Page = Page + 1
clrDataElements
ipos = 0
LnNbr = 0
'Printer.EndDoc
End If
NextRec:
Next
If ((Page < 2 And PrtPage And prtRange = 0) Or _
(LnNbr > 1 And PrtPage)) Then
PrintForm
PrtPage = 0
End If

Return

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-16-2008
the wharf rat
 

Posts: n/a
Re: Err.Number 486, Vista Ultimate, Visual Studio, & Visual Basic
In article <7B2E0946-7827-48F6-9A48-C8C9BD7F3959@microsoft.com>,
Mike <Mike@discussions.microsoft.com> wrote:
>I get the err.number 486 error message when I try to print within a loop to
>my HP LJ 1022. After the first page prints, the other 15 pages all choke on
>the err.number 486. According to the VB Help files, there is no such error
>message.
>


What happens when you step through it? At the point of the first
failure are data structures and pointers all correct?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008
Mike
 

Posts: n/a
Re: Err.Number 486, Vista Ultimate, Visual Studio, & Visual Basic
It fails ... while stepping through it line by line at:

If LnNbr >= 18 Then
If (Page >= beginPage And Page <= endPage) Then
PrintForm <- fails here on the second thru 15th page **********
End If

I don't know how to check the data structures & pointers, but testing the
identical program on a peer-to-peer Xp Home Edition operating system works
perfectly. The difference is that the program fails while operating under
Windows Vista Ultimate.


"the wharf rat" wrote:

> In article <7B2E0946-7827-48F6-9A48-C8C9BD7F3959@microsoft.com>,
> Mike <Mike@discussions.microsoft.com> wrote:
> >I get the err.number 486 error message when I try to print within a loop to
> >my HP LJ 1022. After the first page prints, the other 15 pages all choke on
> >the err.number 486. According to the VB Help files, there is no such error
> >message.
> >

>
> What happens when you step through it? At the point of the first
> failure are data structures and pointers all correct?
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Visual C++ and/or Visual Basic under Vista Home Premium OS DaleB microsoft.public.windows.vista.general 10 11-20-2007 19:45
How to Installing Visual Studio 2003 on Vista Home Basic kaustubh microsoft.public.windows.vista.installation setup 2 09-20-2007 16:52
Visual Studio 6.0 & Vista Lorne Merner microsoft.public.windows.vista.general 3 05-09-2007 01:00
Visual Studio 2005 on Vista Ultimate =?Utf-8?B?THVjYQ==?= microsoft.public.windows.vista.general 1 03-08-2007 15:01
Visual Studio Team System & Vista =?Utf-8?B?Ymx1ZWV5?= microsoft.public.windows.vista.installation setup 3 01-03-2007 14:28




All times are GMT +1. The time now is 09:20.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119