NAV6 NAS hangs on calling OCX-Function

svensk.tigersvensk.tiger Member Posts: 31
We have a small VB5 OCX for systemfuctions like "basename" or some pipe and window handling ...
It is registered with "regsvr32"

The NAS runs fine on Win2003 and other Win2008 R2 Servers 32 and 64 bit.

I'm just installing on a new System Windows 2008 R2 x64 and SQL 2008 R2 x64 and NAV6/2009 Classic-Client and NAS - Build 32900

The NAS-Process, runnung as a service, hangs, when calling any of the OCX-functions.
No events in the eventlog.
i've traped it by placing Messages at the important points of the code.

It runs fine, if I run the NASSQL.EXE with the same Windows-User-Id from the desktop:
"nassql.exe" servername=SRV-24c01,Database=KEZII,company=KEZII,startupparameter=BANKEN[,debug]"

where is the difference between running NASSQL.EXE as a Service and running in a CMD-Box?
Svensk.Tiger (Henning Möller)
PASS Multibank Solutions AG
(Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    edited 2012-11-19
    I've seen something similar that depends on wether the user is logged on or not.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • svensk.tigersvensk.tiger Member Posts: 31
    this is not the cause, it hangs, even if the Service-User is logged on or not with a desktop at the same time the service is running.
    Svensk.Tiger (Henning Möller)
    PASS Multibank Solutions AG
    (Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Is there any security warning that might be raised by Windows?
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • svensk.tigersvensk.tiger Member Posts: 31
    Is there any security warning that might be raised by Windows?

    nothing, the application eventlog shows my Debug-Messages, thats all,
    no events in other parts (security / system) at that time.
    Svensk.Tiger (Henning Möller)
    PASS Multibank Solutions AG
    (Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    I mean Windows Security Warnings that possibly pop up when you run your app, e.g. about untrusted source.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • svensk.tigersvensk.tiger Member Posts: 31
    I mean Windows Security Warnings that possibly pop up when you run your app, e.g. about untrusted source.


    no, no Pops, wenn running from the desktop

    but I'm bit further,

    I'm watching the nassql.exe with syinternals process explorer.

    it is not hanging, it is looping while acessing the registry with alternating these two keys:
    - HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Time Zones\W. Europe Standard Time\Dynamic DST REPARSE
    - HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\W. Europe Standard Time\Dynamic DST NAME NOT FOUNT

    the "Dynamic DST" part is missing in the reg, both keys and also on systems, where it is running fine.


    That is not from my C/Al-Code.
    I've tried with UTC, but it is the same.
    Svensk.Tiger (Henning Möller)
    PASS Multibank Solutions AG
    (Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)
Sign In or Register to comment.