TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

TWAIN User Interface freezes when closing (even if no scan)

Forums › TWAIN Classic › TWAIN User Interface freezes when closing (even if no scan)

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 8 months ago by kbonsall.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 9, 2013 at 5:06 pm #22845 Reply
    kbonsall
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hey there,

    My application uses TWAIN for scanning and it has recently been causing a lot of freezing with more than one type of scanner.

    The issue is that when the User Interface is presented to the user, even if they immediately click Close, the UI attempts to close and freezes causing the calling program to be unresponsive.

    The kicker is, I have two computers trying to replicate this: Both are Windows 7 Pro 64bit. Using the same scanner (Fujitsu Fi-5110c). Using the same TWAIN driver for the scanner. Using the same versions of all twain files and located in the same paths on each computer.
    Computer 1 – Freezes EVERY time I use the TWAIN driver for the fujitsu (does not freeze utilizing the fujitsu through WIA)
    Computer 2 – NEVER freezes

    To me, that is saying that it is not inside my application(code) rather it is an environment issue that I cannot pinpoint.
    Any Help would be GREAT! I have search the web up and down but have not been able to find anything to help me at this point.

    Thanks,
    Kevin

    May 9, 2013 at 5:08 pm #25887 Reply
    kbonsall
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Also, I downloaded the Dosadi logger that captures the log real time and here is what I got (The last line CLIENT DISCONNECTED) did not occur until I forced my application closed through task manager.

    Dosadi Diagnostic Logging 3.98.02
    TWAIN_SelectImageSource(0x00091106)...
    OpenSourceManager(00091106)
    LoadDSM
    State: PRESESSION -> DSM_LOADED
    LicenseReport: nLic=1. bWizAvail=0
    Mgr(1, DAT_PARENT, MSG_OPENDSM) [0ms]=> SUCCESS
    State: DSM_LOADED -> DSM_OPEN
    Mgr(1, DAT_IDENTITY, MSG_USERSELECT)
    [12355ms]=> SUCCESS
    DropToState(1)
    UnloadSourceManager
    CloseDSM
    FlushMsgQ<
    >
    LicenseReport: nLic=1. bWizAvail=0
    Mgr(1, DAT_PARENT, MSG_CLOSEDSM) [0ms]=> SUCCESS
    State: DSM_OPEN -> DSM_LOADED
    Destroying proxy window
    FreeLibrary(hDSMLib)
    State: DSM_LOADED -> PRESESSION
    TWAIN_LogFile(7)
    Start of log
    Product EZTwain Pro
    EZTWAIN version: 3.20.0.22
    This module: C:MedflowAppEztwain3.dll
    Calling Process: C:MedflowAppClinicalMenu.exe
    Logging to: c:eztwain.log
    Universal time: Tue May 07 20:29:20 2013
    Local time: Tue May 07 16:29:20 2013
    OS: Microsoft Windows XP (Build 2600) Service Pack 3
    Current State: PRESESSION
    Loaded Libraries:
    EZSymbol: Not loaded.
    EZOcr: Not loaded.
    EZDcx: Not loaded.
    EZGif: Not loaded.
    EZJpeg: Not loaded.
    EZPdf: Not loaded.
    EZPng: Not loaded.
    EZTiff: Not loaded.
    TWAIN_OpenDefaultSource()
    OpenSourceManager(00000000)
    LoadDSM
    State: PRESESSION -> DSM_LOADED
    LicenseReport: nLic=1. bWizAvail=0
    Mgr(1, DAT_PARENT, MSG_OPENDSM) [15ms]=> SUCCESS
    State: DSM_LOADED -> DSM_OPEN
    Mgr(1, DAT_IDENTITY, MSG_OPENDS)
    [250ms]=> SUCCESS
    State: DSM_OPEN -> SOURCE_OPEN
    Open Source: "FUJITSU fi-5110Cdj" Version 9-21 Vendor: "FUJITSU"
    Mgr(1, DAT_IDENTITY, MSG_GETDEFAULT)
    [218ms]=> SUCCESS
    twid.ProductName=FUJITSU fi-5110Cdj
    NegotiateSettings
    SetXferMech(0)
    DS(1,DAT_CAPABILITY,MSG_SET/ICAP_XFERMECH)(0)[0ms]=> SUCCESS/SUCCESS
    SetUnits(0)
    DS(1,DAT_CAPABILITY,MSG_SET/ICAP_UNITS)(0)[0ms]=> SUCCESS/SUCCESS
    TWAIN_SetPixelType(1) DS(1,DAT_CAPABILITY,MSG_SET/ICAP_PIXELTYPE)(1)[0ms]=> SUCCESS/SUCCESS
    TWAIN_SetResolution(200)
    DS(1,DAT_CAPABILITY,MSG_SET/ICAP_XRESOLUTION)(200)[16ms]=> SUCCESS/SUCCESS
    DS(1,DAT_CAPABILITY,MSG_SET/ICAP_YRESOLUTION)(200)[0ms]=> SUCCESS/SUCCESS
    TWAIN_LogFile(1)
    TWAIN_AcquireMultipageFile(0x00091106, C:MedflowApp4TC001B.tif)
    AcquireMultipage
    LicenseReport: nLic=1. bWizAvail=0
    ..Defaulting XferCount=-1
    ..Defaulting Feeder=1
    ..Defaulting AutoScan=1
    ..Defaulting AutoFeed=1
    PreAcquire <<
    NegotiateSettings
    SelectFeeder(1)
    DS(1,DAT_CAPABILITY,MSG_SET/CAP_FEEDERENABLED)(1)[0ms]=> SUCCESS/SUCCESS
    IsFeederSelected
    DS(1,DAT_CAPABILITY,MSG_GETCURRENT/CAP_FEEDERENABLED)[16ms]=> 1
    SetAutoFeed(1)
    SelectFeeder(1)
    DS(1,DAT_CAPABILITY,MSG_SET/CAP_FEEDERENABLED)(1)[0ms]=> SUCCESS/SUCCESS
    DS(1,DAT_CAPABILITY,MSG_SET/CAP_AUTOFEED)(1)[15ms]=> SUCCESS/SUCCESS
    SetXferCount(-1)
    DS(1,DAT_CAPABILITY,MSG_SET/CAP_XFERCOUNT)(-1)[0ms]=> SUCCESS/SUCCESS
    SetAutoScan(1) DS(1,DAT_CAPABILITY,MSG_SET/CAP_AUTOSCAN)(1)[16ms]=> SUCCESS/SUCCESS
    >> PreAcquire() => 1
    TWAIN_SuppressErrorMessages(1) => 0
    IsFeederSelected
    DS(1,DAT_CAPABILITY,MSG_GETCURRENT/CAP_FEEDERENABLED)[0ms]=> 1
    EnableSource(00091106)
    LicenseReport: nLic=1. bWizAvail=0
    DS(1,DAT_USERINTERFACE,MSG_ENABLEDS)
    ui.ShowUI = 1
    ui.hParent = 0x00091106
    ui.ModalUI = TRUE
    [359ms]=> SUCCESS/SUCCESS
    State: SOURCE_OPEN -> SOURCE_ENABLED
    Disabling parent 0x00091106
    BeginMultipageFile(C:MedflowApp4TC001B.tif)
    LoadLibraryEx(C:MedflowAppEZJpeg.dll)
    OK. Loaded EZJpeg.dll 1.10
    LoadLibraryEx(C:MedflowAppEZTiff.dll)
    EZTIFF Version = 1.52 OK. Loaded EZTiff.dll 1.52
    [EZTiff] EZTiff 1.52
    StartBgWriter
    0 <= BeginMultipageFile
    WaitForNativeXfer
    WaitForXfer
    Source enabled, wait for transition.
    PMUSC<
    Background Writer started
    Dosadi Diagnostic Logging 3.98.02
    received XFERREADY
    State: SOURCE_ENABLED -> TRANSFER_READY
    >PMUSC
    WaitForXfer returning in State 6 [148434ms]
    DS(2,DAT_IMAGEINFO,MSG_GET)[0ms]=> SUCCESS/SUCCESS
    INFO: ImageWidth: 1700, ImageLength: 2200
    XRes: 200, YRes: 200
    PixelType: 1 Planar: 0, Compression: 0
    BitsPerPixel: 8, SamplesPerPixel: 1, BitsPerSample: [8, 0, 0, 0]
    DS(2,DAT_IMAGENATIVEXFER,MSG_GET)
    [4976ms]=> XFERDONE/SUCCESS
    State: TRANSFER_READY -> TRANSFERRING
    RetrieveExtendedImageInfo - nothing to do
    PostProcessDib(010501a4)
    Size=40 Planes=1
    Width=1700 Height=2200 BitCount=8
    Comp=0 SizeImage=3740000
    XPPM=7874 (200 DPI) YPPM=7874 (200 DPI)
    ClrUsed=256 ClrImp=0
    CT[000] = 0, 0, 0, 0
    CT[001] = 1, 1, 1, 0
    CT[002] = 2, 2, 2, 0
    CT[003] = 3, 3, 3, 0
    CT[004] = 4, 4, 4, 0
    CT[005] = 5, 5, 5, 0
    CT[006] = 6, 6, 6, 0
    CT[007] = 7, 7, 7, 0
    ...
    CT[248] = 248,248,248, 0
    CT[249] = 249,249,249, 0
    CT[250] = 250,250,250, 0
    CT[251] = 251,251,251, 0
    CT[252] = 252,252,252, 0
    CT[253] = 253,253,253, 0
    CT[254] = 254,254,254, 0
    CT[255] = 255,255,255, 0
    row[1099]+847: F2 F0 EE C5 8C 45 54 CF
    row[1100]+847: E9 E4 E8 CA 8A 3A 54 D6
    row[1101]+847: F3 F1 E6 CA 9B 38 51 CC
    PostProcessDib took [0ms]
    DS(1,DAT_PENDINGXFERS,MSG_ENDXFER)[16ms]=> SUCCESS/SUCCESS
    pendingXfers.Count=65535, EOJ=0
    State: TRANSFERRING -> TRANSFER_READY
    DibWritePage(010501a4)
    DIB_Copy(010501a4)=>010501ac
    Queued to Bg: 0x010501ac
    Free(010501a4)
    Background Writer - DIB(0x010501ac) received
    WaitForNativeXfer
    WaitForXfer
    WaitForXfer returning in State 6 [0ms]
    DS(2,DAT_IMAGEINFO,MSG_GET)[EZTiff] BmiWritePage...
    [EZTiff] Compression=1
    [EZTiff] PHOTOMETRIC_MINISBLACK
    [EZTiff] RowsPerStrip=19
    [EZTiff] BmiWritePage => 0
    [EZTiff] EZTIFF_BmiWritePage => 0
    DibWritePageNow => 0 [16ms]
    Free(010501ac)
    [16ms]=> SUCCESS/SUCCESS
    INFO: ImageWidth: 1700, ImageLength: 2200
    XRes: 200, YRes: 200
    PixelType: 1 Planar: 0, Compression: 0
    BitsPerPixel: 8, SamplesPerPixel: 1, BitsPerSample: [8, 0, 0, 0]
    DS(2,DAT_IMAGENATIVEXFER,MSG_GET)
    [3494ms]=> XFERDONE/SUCCESS
    State: TRANSFER_READY -> TRANSFERRING
    RetrieveExtendedImageInfo - nothing to do
    PostProcessDib(010501ac)
    Size=40 Planes=1
    Width=1700 Height=2200 BitCount=8
    Comp=0 SizeImage=3740000
    XPPM=7874 (200 DPI) YPPM=7874 (200 DPI)
    ClrUsed=256 ClrImp=0
    CT[000] = 0, 0, 0, 0
    CT[001] = 1, 1, 1, 0
    CT[002] = 2, 2, 2, 0
    CT[003] = 3, 3, 3, 0
    CT[004] = 4, 4, 4, 0
    CT[005] = 5, 5, 5, 0
    CT[006] = 6, 6, 6, 0
    CT[007] = 7, 7, 7, 0
    ...
    CT[248] = 248,248,248, 0
    CT[249] = 249,249,249, 0
    CT[250] = 250,250,250, 0
    CT[251] = 251,251,251, 0
    CT[252] = 252,252,252, 0
    CT[253] = 253,253,253, 0
    CT[254] = 254,254,254, 0
    CT[255] = 255,255,255, 0
    row[1099]+847: FA F0 F5 EF F4 FA FC FB
    row[1100]+847: FB EF F5 FB F4 F6 FB FB
    row[1101]+847: FF F2 F5 FA F6 F8 F4 F5
    PostProcessDib took [0ms]
    DS(1,DAT_PENDINGXFERS,MSG_ENDXFER)
    [421ms]=> SUCCESS/SUCCESS
    pendingXfers.Count=0, EOJ=0
    State: TRANSFERRING -> SOURCE_ENABLED
    DibWritePage(010501ac)
    DIB_Copy(010501ac)=>010501a4
    Queued to Bg: 0x010501a4
    Free(010501ac) Background Writer - DIB(0x010501a4) received
    [EZTiff] BmiWritePage...
    [EZTiff] Compression=1
    [EZTiff] PHOTOMETRIC_MINISBLACK
    [EZTiff] RowsPerStrip=19
    [EZTiff] BmiWritePage => 0
    [EZTiff] EZTIFF_BmiWritePage => 0
    DibWritePageNow => 0 [0ms]
    Free(010501a4)
    WaitForNativeXfer
    WaitForXfer
    Source enabled, wait for transition.
    PMUSC<
    Dosadi Diagnostic Logging 3.98.02
    received CLOSEDSREQ
    DisableSource
    Re-enabling 0x00091106
    DS(1,DAT_USERINTERFACE,MSG_DISABLEDS)
    ui.ShowUI = 1
    ui.hParent = 0x00091106
    ui.ModalUI = FALSE
    [31ms]=> SUCCESS/SUCCESS
    State: SOURCE_ENABLED -> SOURCE_OPEN
    SetActiveWindow(0x00091106)
    >PMUSC
    WaitForXfer returning in State 4 [84380ms]
    Device disabled
    EndMultipageFile...
    FinishBgWriter
    Waiting for Background writer...
    Background Writer exiting
    FinishBgWriter took [16ms]
    [EZTiff] EndMultipageFile
    [EZTiff] CloseOutputFile
    [EZTiff] => 0 (ok)
    EndMultipageFile => 0 [16ms]
    SuppressErrorMessages(0) => 1
    PostAcquire (MultiTransfer=0)
    UnloadSourceManager
    CloseDSM
    FlushMsgQ
    CloseSource()
    Mgr(1, DAT_IDENTITY, MSG_CLOSEDS)
    << Client0 Disconnected
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: TWAIN User Interface freezes when closing (even if no scan)
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Big Ass Photos – Free Huge Butt Porn, Big Booty Pics
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.