Results 1 to 4 of 4

Thread: Debug code in Vista

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    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

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Debug code in Vista

    no idea. Did you tell it to start from a sub main? It might be looking for a form.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    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
  •  



Click Here to Expand Forum to Full Width