Toad World® Forums

"The handle is invalid" whilst switching to Toad over remote desktop

Hi

When I work from home, I access my work PC over Citrix via remote desktop. If Toad is already running, then every single time I switch from a non-Toad app to Toad, or when I switch windows within Toad (eg. Editor to Schema browser, or move databases etc) I get a “The handle is invalid” error.

If I close and restart Toad, then it works without erroring.

Is there any chance this could be fixed? I have the EurekaLog, if someone wants me to email that to them.

Sure, send me the Eurekalog.

same problem. does someone managed to fix it?

EurekaLog 6.0.25

Application:


1.1 Start Date : Wed, 13 May 2015 07:00:16 +0300

1.2 Name/Description: Toad.exe - (Toad for Oracle)

1.3 Version Number : 11.0.0.116

1.4 Parameters :

1.5 Compilation Date: Thu, 25 Aug 2011 22:38:06 +0300

1.6 Up Time : 9 hours, 55 seconds

Exception:


2.1 Date : Wed, 13 May 2015 16:01:11 +0300

2.2 Address : 004B1DD3

2.3 Module Name : Toad.exe - (Toad for Oracle)

2.4 Module Version: 11.0.0.116

2.5 Type : EOutOfResources

2.6 Message : Not enough storage is available to process this command.

.

2.7 ID : A44B

2.8 Count : 1

2.9 Status : New

2.10 Note :

User:


3.1 ID :

3.2 Name : LTD

3.3 Email :

3.4 Company : LTD

3.5 Privileges: SeSystemtimePrivilege - OFF

SeShutdownPrivilege - OFF

SeChangeNotifyPrivilege - ON

SeUndockPrivilege - OFF

SeIncreaseWorkingSetPrivilege - OFF

SeTimeZonePrivilege - OFF

Active Controls:


4.1 Form Class : TfrmMain

4.2 Form Text : Toad for Oracle - [tor (New 1 *)]

4.3 Control Class: TToadCXGridSite

4.4 Control Text :

Computer:


5.1 Name :

5.2 Total Memory : 3053 Mb

5.3 Free Memory : 1787 Mb

5.4 Total Disk : 74.24 Gb

5.5 Free Disk : 36.21 Gb

5.6 System Up Time: 24 days, 7 hours, 36 minutes, 11 seconds

5.7 Processor : Intel® Core™2 Duo CPU E7300 @ 2.66GHz

5.8 Display Mode : 1920 x 1080, 16 bit

5.9 Display DPI : 96

5.10 Video Card : RDPDD Chained DD (driver )

5.11 Printer : HP LaserJet 4 Plus (driver 6.1.7601.17514)

Operating System:


6.1 Type : Microsoft Windows 7

6.2 Build # : 7601

6.3 Update : Service Pack 1

6.4 Language: Hebrew

6.5 Charset : 177

Network:


7.1 IP Address: 010.

7.2 Submask : 255.255.000.000

7.3 Gateway : 010.

7.4 DNS 1 : 010.

7.5 DNS 2 : 010. 7.6 DHCP : ON

Call Stack Information:


|Address |Module |Unit |Class |Procedure/Method |Line |


|Running Thread: ID=51376; Priority=-2; Class=; [Main] |

|-------------------------------------------------------------------------------------------------------|

|76FD7750|ntdll.dll | | |RtlLeaveCriticalSection| |

|7549AC19|USER32.dll | | |CallNextHookEx | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|754A557D|USER32.dll | | |SendMessageW | |

|754A5539|USER32.dll | | |SendMessageW | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|754A1BCE|USER32.dll | | |SetWindowPos | |

|754A1BC4|USER32.dll | | |SetWindowPos | |

|754A634A|USER32.dll | | |PeekMessageW | |

|0238D8B2|Toad.exe |Toad.dpr | | |123[88] |

|753FED5A|kernel32.dll | | |GetDriveTypeW | |

|-------------------------------------------------------------------------------------------------------|

| |

|Running Thread: ID=38456; Priority=0; Class=TWorkerThread |

|-------------------------------------------------------------------------------------------------------|

|76FD6A62|ntdll.dll | | |ZwWaitForSingleObject | |

|751B1730|KERNELBASE.dll| | |WaitForSingleObjectEx | |

|753FC30E|kernel32.dll | | |WaitForSingleObjectEx | |

|753FC2D0|kernel32.dll | | |WaitForSingleObjectEx | |

|753FC2BD|kernel32.dll | | |Sleep | |

|753FC2B0|kernel32.dll | | |Sleep | |

|009E12B5|Toad.exe |virtualtrees.pas |TWorkerThread |Execute |5420[3] |

|753FED5A|kernel32.dll | | |GetDriveTypeW | |

|-------------------------------------------------------------------------------------------------------|

|Calling Thread: ID=51376; Priority=-2; Class=; [Main] |

|-------------------------------------------------------------------------------------------------------|

|009E1214|Toad.exe |virtualtrees.pas |TWorkerThread |Create |5385[3] |

|009E11E4|Toad.exe |virtualtrees.pas |TWorkerThread |Create |5382[0] |

|009E117A|Toad.exe |virtualtrees.pas | |AddThreadReference |5335[9] |

|009E1148|Toad.exe |virtualtrees.pas | |AddThreadReference |5327[1] |

|009EB01E|Toad.exe |virtualtrees.pas |TBaseVirtualTree |Create |12037[87]|

|009EAD50|Toad.exe |virtualtrees.pas |TBaseVirtualTree |Create |11950[0] |

|00A04E86|Toad.exe |virtualtrees.pas |TCustomVirtualStringTree|Create |30440[1] |

|00A04E70|Toad.exe |virtualtrees.pas |TCustomVirtualStringTree|Create |30439[0] |

|021BEF0B|Toad.exe |tdSchemaCombobox.pas|TtdSchemaCombobox |Create |666[90] |

|01E769AA|Toad.exe |frmToad.pas |TToadForm |Create |146[3] |

|01E7698C|Toad.exe |frmToad.pas |TToadForm |Create |143[0] |

|01C79048|Toad.exe |frmToadMDI.pas |TTOADMDIForm |Create |673[2] |

|021589F0|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayForm |1075[55] |

|021587B4|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayForm |1020[0] |

|0215C82D|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayEditor |2830[59] |

|0215C660|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayEditor |2771[0] |

|01B479E6|Toad.exe |BackupEngine.pas |TBackupEngine |Restore |665[33] |

|01B47820|Toad.exe |BackupEngine.pas |TBackupEngine |Restore |632[0] |

|0171FBA3|Toad.exe |mainform.pas |TfrmMain |TmMainformShown |4703[32] |

|76FD7750|ntdll.dll | | |RtlLeaveCriticalSection| |

|754A507D|USER32.dll | | |DefWindowProcW | |

|754A1B52|USER32.dll | | |CallWindowProcW | |

|01716F71|Toad.exe |mainform.pas | |NewWindowProc |1026[12] |

|754ACC6B|USER32.dll | | |DispatchMessageW | |

|754A1B3C|USER32.dll | | |CallWindowProcW | |

|01716EC5|Toad.exe |mainform.pas | |AppWindowProc |1000[16] |

|01716EE1|Toad.exe |mainform.pas | |AppWindowProc |1001[17] |

|7549AC19|USER32.dll | | |CallNextHookEx | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|76FD5992|ntdll.dll | | |ZwFindAtom | |

|754A5BE9|USER32.dll | | |GetPropW | |

|754A5BBE|USER32.dll | | |GetPropW | |

|754ACC79|USER32.dll | | |TranslateMessageEx | |

|754A64E2|USER32.dll | | |TranslateMessage | |

|754ACC61|USER32.dll | | |DispatchMessageW | |

|0238D8B2|Toad.exe |Toad.dpr | | |123[88] |

|753FED5A|kernel32.dll | | |GetDriveTypeW | |


Modules Information:


|Handle |Name |Description |Version |Size |Modified |Path |


|00400000|Toad.exe |Toad for Oracle |11.0.0.116 |12130136|2011-08-25 16:40:52|C:\Program Files\Quest Software\Toad for Oracle 11 |

|079A0000|thumbcache.dll |Microsoft Thumbnail Cache |6.1.7601.17514 |82944 |2010-11-20 04:21:32|C:\Windows\system32 |

|0A040000|oranl11.dll |Oracle SQL*Net ORANL DLL |11.2.0.3 |401408 |2011-09-27 15:43:32|g:\oracle11203\product\11.2.0\client_1\BIN |

|0A0B0000|orantcp11.dll |Oracle SQL*Net ORANTCP DLL |11.2.0.3 |217088 |2011-09-27 15:43:36|g:\oracle11203\product\11.2.0\client_1\BIN |

|0A850000|oci.dll |Oracle Call Interface |11.2.0.1 |1015808 |2011-10-30 08:59:26|g:\oracle11203\product\11.2.0\client_1\BIN |

|0A950000|oranldap11.dll |Oracle SQL*Net ORANLDAP DLL |11.2.0.3 |311296 |2011-09-27 15:44:00|g:\oracle11203\product\11.2.0\client_1\BIN |

|0A9A0000|orancrypt11.dll |Oracle SQL*Net ORANCRYPT DLL |11.2.0.3 |139264 |2011-09-27 15:43:50|g:\oracle11203\product\11.2.0\client_1\BIN |

|0A9F0000|oranro11.dll |Oracle SQL*Net ORANRO DLL |11.2.0.3 |311296 |2011-09-27 15:43:30|g:\oracle11203\product\11.2.0\client_1\BIN |

|0AA50000|oranhost11.dll |Oracle SQL*Net ORANHOST DLL |11.2.0.3 |35328 |2011-09-27 15:43:56|g:\oracle11203\product\11.2.0\client_1\BIN |

|0AA70000|oracommon11.dll |Oracle RDBMS Common Library |11.2.0.3 |2519040 |2011-10-30 09:09:52|g:\oracle11203\product\11.2.0\client_1\BIN |

|0ACE0000|orageneric11.dll |Oracle RDBMS Generic Library |11.2.0.3 |13840384|2011-10-30 09:11:02|g:\oracle11203\product\11.2.0\client_1\BIN |

|0BA20000|oran11.dll |Oracle SQL*Net ORAN DLL |11.2.0.3 |4214784 |2011-09-27 15:44:04|g:\oracle11203\product\11.2.0\client_1\BIN |

|0BE30000|orazt11.dll |Oracle SQLNet SUPPORT DLL |11.1.0.1 |1642496 |2011-10-01 09:20:08|g:\oracle11203\product\11.2.0\client_1\BIN |

|0BFE0000|orancds11.dll |Oracle SQL*Net ORANCDS DLL |11.2.0.3 |7680 |2011-09-27 15:42:50|g:\oracle11203\product\11.2.0\client_1\BIN |

|0C000000|orantns11.dll |Oracle SQL*Net ORANTNS DLL |11.2.0.3 |51200 |2011-09-27 15:43:54|g:\oracle11203\product\11.2.0\client_1\BIN |

|0C040000|orapls11.dll |Oracle PLS runtime Library |11.1.0.6 |4218880 |2011-10-30 09:09:22|g:\oracle11203\product\11.2.0\client_1\BIN |

|0C490000|orahasgen11.dll |Oracle PCW generic Library |11.2.0.3 |4087808 |2011-10-10 16:23:00|g:\oracle11203\product\11.2.0\client_1\BIN |

|0C890000|oraocr11.dll |Oracle OPSM OCR DLL |11.2.0.1 |704512 |2011-10-10 16:22:38|g:\oracle11203\product\11.2.0\client_1\BIN &

That’s an old version of Toad and your machine has been running for nearly a month! The original poster’s issue is with the current release and occurs every single
time she switches between apps. Is this what you’re seeing or did the problem just recently start? If it recently started then try rebooting your machine. It looks like Toad is trying to create a new thread and there aren’t enough resources available to do
so.

Michael

From: zeevga [mailto:bounce-zeevga@toadworld.com]

Sent: Wednesday, May 13, 2015 9:08 AM

To: toadoraclebeta@toadworld.com

Subject: RE: [Toad for Oracle - Beta Discussion Forum] “The handle is invalid” whilst switching to Toad over remote desktop

RE: “The handle is invalid” whilst switching to Toad over remote desktop

Reply by zeevga

same problem. does someone managed to fix it?

EurekaLog 6.0.25

Application:


1.1 Start Date : Wed, 13 May 2015 07:00:16 +0300

1.2 Name/Description: Toad.exe - (Toad for Oracle)

1.3 Version Number : 11.0.0.116

1.4 Parameters :

1.5 Compilation Date: Thu, 25 Aug 2011 22:38:06 +0300

1.6 Up Time : 9 hours, 55 seconds

Exception:


2.1 Date : Wed, 13 May 2015 16:01:11 +0300

2.2 Address : 004B1DD3

2.3 Module Name : Toad.exe - (Toad for Oracle)

2.4 Module Version: 11.0.0.116

2.5 Type : EOutOfResources

2.6 Message : Not enough storage is available to process this command.

                 .

2.7 ID : A44B

2.8 Count : 1

2.9 Status : New

2.10 Note :

User:


3.1 ID :

3.2 Name : LTD

3.3 Email :

3.4 Company : LTD

3.5 Privileges: SeSystemtimePrivilege - OFF

             SeShutdownPrivilege             - OFF

             SeChangeNotifyPrivilege         - ON

             SeUndockPrivilege               - OFF

             SeIncreaseWorkingSetPrivilege   - OFF

             SeTimeZonePrivilege             - OFF

Active Controls:


4.1 Form Class : TfrmMain

4.2 Form Text : Toad for Oracle - [tor (New 1 *)]

4.3 Control Class: TToadCXGridSite

4.4 Control Text :

Computer:


5.1 Name :

5.2 Total Memory : 3053 Mb

5.3 Free Memory : 1787 Mb

5.4 Total Disk : 74.24 Gb

5.5 Free Disk : 36.21 Gb

5.6 System Up Time: 24 days, 7 hours, 36 minutes, 11 seconds

5.7 Processor : Intel® Core™2 Duo CPU E7300 @ 2.66GHz

5.8 Display Mode : 1920 x 1080, 16 bit

5.9 Display DPI : 96

5.10 Video Card : RDPDD Chained DD (driver )

5.11 Printer : HP LaserJet 4 Plus (driver 6.1.7601.17514)

Operating System:


6.1 Type : Microsoft Windows 7

6.2 Build # : 7601

6.3 Update : Service Pack 1

6.4 Language: Hebrew

6.5 Charset : 177

Network:


7.1 IP Address: 010.

7.2 Submask : 255.255.000.000

7.3 Gateway : 010.

7.4 DNS 1 : 010.

7.5 DNS 2 : 010. 7.6 DHCP : ON

Call Stack Information:


|Address |Module |Unit |Class |Procedure/Method |Line |


|Running Thread: ID=51376; Priority=-2; Class=; [Main] |

|-------------------------------------------------------------------------------------------------------|

|76FD7750|ntdll.dll | | |RtlLeaveCriticalSection| |

|7549AC19|USER32.dll | | |CallNextHookEx | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|754A557D|USER32.dll | | |SendMessageW | |

|754A5539|USER32.dll | | |SendMessageW | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|754A1BCE|USER32.dll | | |SetWindowPos | |

|754A1BC4|USER32.dll | | |SetWindowPos | |

|754A634A|USER32.dll | | |PeekMessageW | |

|0238D8B2|Toad.exe |Toad.dpr | | |123[88] |

|753FED5A|kernel32.dll | | |GetDriveTypeW | |

|-------------------------------------------------------------------------------------------------------|

| |

|Running Thread: ID=38456; Priority=0; Class=TWorkerThread |

|-------------------------------------------------------------------------------------------------------|

|76FD6A62|ntdll.dll | | |ZwWaitForSingleObject | |

|751B1730|KERNELBASE.dll| | |WaitForSingleObjectEx | |

|753FC30E|kernel32.dll | | |WaitForSingleObjectEx | |

|753FC2D0|kernel32.dll | | |WaitForSingleObjectEx | |

|753FC2BD|kernel32.dll | | |Sleep | |

|753FC2B0|kernel32.dll | | |Sleep | |

|009E12B5|Toad.exe |virtualtrees.pas |TWorkerThread |Execute |5420[3] |

|753FED5A|kernel32.dll | | |GetDriveTypeW | |

|-------------------------------------------------------------------------------------------------------|

|Calling Thread: ID=51376; Priority=-2; Class=; [Main] |

|-------------------------------------------------------------------------------------------------------|

|009E1214|Toad.exe |virtualtrees.pas |TWorkerThread |Create |5385[3] |

|009E11E4|Toad.exe |virtualtrees.pas |TWorkerThread |Create |5382[0] |

|009E117A|Toad.exe |virtualtrees.pas | |AddThreadReference |5335[9] |

|009E1148|Toad.exe |virtualtrees.pas | |AddThreadReference |5327[1] |

|009EB01E|Toad.exe |virtualtrees.pas |TBaseVirtualTree |Create |12037[87]|

|009EAD50|Toad.exe |virtualtrees.pas |TBaseVirtualTree |Create |11950[0] |

|00A04E86|Toad.exe |virtualtrees.pas |TCustomVirtualStringTree|Create |30440[1] |

|00A04E70|Toad.exe |virtualtrees.pas |TCustomVirtualStringTree|Create |30439[0] |

|021BEF0B|Toad.exe |tdSchemaCombobox.pas|TtdSchemaCombobox |Create |666[90] |

|01E769AA|Toad.exe |frmToad.pas |TToadForm |Create |146[3] |

|01E7698C|Toad.exe |frmToad.pas |TToadForm |Create |143[0] |

|01C79048|Toad.exe |frmToadMDI.pas |TTOADMDIForm |Create |673[2] |

|021589F0|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayForm |1075[55] |

|021587B4|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayForm |1020[0] |

|0215C82D|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayEditor |2830[59] |

|0215C660|Toad.exe |dmCommonActions.pas |TdmCommonActions |DisplayEditor |2771[0] |

|01B479E6|Toad.exe |BackupEngine.pas |TBackupEngine |Restore |665[33] |

|01B47820|Toad.exe |BackupEngine.pas |TBackupEngine |Restore |632[0] |

|0171FBA3|Toad.exe |mainform.pas |TfrmMain |TmMainformShown |4703[32] |

|76FD7750|ntdll.dll | | |RtlLeaveCriticalSection| |

|754A507D|USER32.dll | | |DefWindowProcW | |

|754A1B52|USER32.dll | | |CallWindowProcW | |

|01716F71|Toad.exe |mainform.pas | |NewWindowProc |1026[12] |

|754ACC6B|USER32.dll | | |DispatchMessageW | |

|754A1B3C|USER32.dll | | |CallWindowProcW | |

|01716EC5|Toad.exe |mainform.pas | |AppWindowProc |1000[16] |

|01716EE1|Toad.exe |mainform.pas | |AppWindowProc |1001[17] |

|7549AC19|USER32.dll | | |CallNextHookEx | |

|7549ABE1|USER32.dll | | |CallNextHookEx | |

|76FD5992|ntdll.dll | | |ZwFindAtom | |

|754A5BE9|USER32.dll | | |GetPropW | |

|754A5BBE|USER32.dll | | |GetPropW | |

|754ACC79|USER32.dll | | |TranslateMessageEx | |

|754A64E2|USER32.dll | | |TranslateMessage | |

|754ACC61|USER32.dll | | |DispatchMessageW | |

|0238D8B2|Toad.exe |Toad.dpr | | |123[88] |

I have toad version: 11.0.0.116. and yes, it happen’s every time I open a remote connection from my home pc (win 7) to my work pc (also win 7)