|
-
May 1st, 2008, 09:02 AM
#1
Thread Starter
New Member
Debug code in Vista
Hi-
I am trying to reproduce and find a problem in some VB6 code we use, the problem is only seen on windows Vista.
I have installed Vista to a clean machine, installed VB6 along with VB6SP6 and have then loaded the source code. This code makes up a windows service.
I can run the code but it doens't seem to do anything, meaning VB isn't reading the code that I can tell.
I have put breakpoints in the Sub Main routine and then started the code, never gets to the break point. I have also tried to step through the code using F8, when I do, the VB IDE starts to run the code but then doens't get to any of the breakpoint that I know should be triggered.
A simple test app worked as expected.
Has anyone experienced this? Ideas?
Thanks
-
May 1st, 2008, 05:13 PM
#2
Re: Debug code in Vista
no idea. Did you tell it to start from a sub main? It might be looking for a form.
-
May 1st, 2008, 05:25 PM
#3
Re: Debug code in Vista
Normally you build a service so that it accepts a debug switch. Then you set the project's Command Line Arguments to include this switch string.
In the code you bypass some of the service functions when you detect the debug switch. For example when using the NTSVC.OCX you avoid calling its Install, UnInstall, and StartService methods.
-
May 1st, 2008, 07:33 PM
#4
Thread Starter
New Member
Re: Debug code in Vista
well it's got to be environmental. I played more with the project properties and just other testing and nothing.
I also created a test EXE project with just one form with a msgbox, worked as expected.
Tomorrow I will start with a new project of the same type and start importing the mod and cls files. Maybe that will work better.
Joe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|