# Toad Closes while attempting to Connect to Database

**URL:** <https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154>\
**Category:** Toad for IBM DB2\
**Created:** [November 5, 2024, 4:36pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154 "2024-11-05T16:36:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 5, 2024, 4:36pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/1 "2024-11-05T16:36:20Z")

</div>

When I click the "Connect" button, TOAD immediately closes.  
It closes randomly on FACTSTT3 and FACTSUAT.  
In order to open any of the others, I have to connect to one of the two listed above and then connect to the desired one IE FACTSSIC

 ![image](https://global.discourse-cdn.com/quest/original/3X/f/3/f3b1a258d5936640d397fb5cf5a4f9bd2f70a88f.jpeg)

10/25 started to have problems and got a hint on how to fix this by renaming the Roaming folder. Renamed the folder and relaunched Toad and things were fine.

This morning 11/5/2024 it started doing it again. So I did the same thing again.  
Lasted about 30 minutes before it started to do it again

 ![image](https://global.discourse-cdn.com/quest/original/3X/1/a/1af9caf7dcd67504e93d99bc090ebbeba2c75c6e.png)

\*\*

 ![image](https://global.discourse-cdn.com/quest/original/3X/3/4/340980963a341e5d707b3494c019033fda9459df.jpeg)  
\*\*

What are your suggestions?

---

<div class="post-metadata">

**Author:** ![Gita.Sharifi](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gita.sharifi/32/16973_2.png) [@Gita.Sharifi](https://forums.toadworld.com/u/Gita.Sharifi)\
**Post date:** [November 6, 2024, 5:54pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/2 "2024-11-06T17:54:58Z")

</div>

Have you tried the latest edition of Toad [**Version 7.4.1**](https://support.quest.com/toad-for-db2/7.4.1/download-new-releases)?  
It might be best to open a [**open a Support ticket**](https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.quest.com%2Fcreate-service-request&data=05%7C02%7Cgita.sharifi%40quest.com%7Cc4863f5b2d2646a369d308dcef962416%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C638648675355968385%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BAwFgXXvJcPYKnZNNaoXz7xlIQ%2F3iiDZXFGqWha6bcM%3D&reserved=0) if issue persists.

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 6, 2024, 8:42pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/3 "2024-11-06T20:42:52Z")

</div>

We are a state government organization.  
We are not at liberty to try a newer version.

And how do I get a ticket started.

---

<div class="post-metadata">

**Author:** ![Gita.Sharifi](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gita.sharifi/32/16973_2.png) [@Gita.Sharifi](https://forums.toadworld.com/u/Gita.Sharifi)\
**Post date:** [November 6, 2024, 9:03pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/4 "2024-11-06T21:03:48Z")

</div>

You should be able to get a ticket started using this page: [Create Technical Case](https://support.quest.com/create-service-request)

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 6, 2024, 9:17pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/5 "2024-11-06T21:17:46Z")

</div>

Tickets are not allowed for 6.5 version.  
Only for the 7 versions.

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 7, 2024, 7:10pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/6 "2024-11-07T19:10:31Z")

</div>

And when I can get a connect to work.  
I have to continuously hit "Save" because at any moment it will arbitrarily close.

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 12, 2024, 5:08pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/7 "2024-11-12T17:08:49Z")

</div>

Well we did an uninstall and reinstalled the program.  
This worked for a few days.  
The problem is back.

Also when I right click on a selected code, the program closes.

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 14, 2024, 5:29pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/8 "2024-11-14T17:29:47Z")

</div>

Well I found out what is causing it.  
In the "Open on New Connection" and having "Database Explorer" checked:

 ![image](https://global.discourse-cdn.com/quest/original/3X/8/4/84d63dce904148f676d8e001edfd3580c5965647.png)

I uncheck it and the problem goes away.

In addition when I have none of these checked and I have connected to a database, then I go to Tools | Explorer, the program immediately closes.

Now if do Tools | Query Builder first then Tools | Explorer it does not close the program.

The question now is why?

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 20, 2024, 3:30pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/9 "2024-11-20T15:30:55Z")

</div>

Okay, finally updated to 7.4.1 version of Toad.  
It is doing the same thing.

I tried submitting a ticket but am getting an error on clicking the submit button.

 ![image](https://global.discourse-cdn.com/quest/original/3X/b/a/ba177684c196ce6166dd6b2d705165a6a1c56841.png)

clicking on "Customer Service" takes you to here: ( which is worthless )

 ![image](https://global.discourse-cdn.com/quest/original/3X/4/5/45d9491af85c1c82898d7cd0415354d16111b05f.png)

---

<div class="post-metadata">

**Author:** ![Gita.Sharifi](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gita.sharifi/32/16973_2.png) [@Gita.Sharifi](https://forums.toadworld.com/u/Gita.Sharifi)\
**Post date:** [November 22, 2024, 3:30pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/10 "2024-11-22T15:30:00Z")

</div>

Perhaps we can help you in opening a support ticket. I will message you privately for additional details.

---

<div class="post-metadata">

**Author:** ![mojoala](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mojoala](https://forums.toadworld.com/u/mojoala)\
**Post date:** [November 25, 2024, 4:07pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/11 "2024-11-25T16:07:21Z")

</div>

Finally opened a support ticket after calling Quest Software directly after discovering our license is a permanent license and our service contract is permanent.

An Engineer called me back within 5 minutes as this was a "level 1" issue as Toad is 70% of my daily work load during a job as a Software Engineer.

He established a Teams session and spent an hour and fifteen minutes watching me duplicate this issue. We even discovered a new issue. The program would close trying to open an Sql file.

We placed Toad in debug mode by adding " /log=all" at the end of the target. The logs did not report anything at all. He requested I send him my event viewer logs after we filtered them. At the end of the session, he agreed with our IT staff that my Laptop would need to be re-imaged as he believed it was an OS issue. At that point we terminated the Teams session.

I was highly disappointed in the outcome.

About 30 minutes later the Engineer emailed me after he had reviewed the Event Viewer logs.

He found this:

 ![image](https://global.discourse-cdn.com/quest/original/3X/d/4/d4619e33a5acb6793cd23b53478a799815b4731f.png)

It was only 110KB in size.  
I replied that it did exist and it was small.  
at which poiint the Engineer replied:

![image](https://global.discourse-cdn.com/quest/original/3X/0/8/086453c21b4eaa5a73400c08f4d866e9ea621417.png)

I backed it up and deleted it.

This solved the problem. It did not try to re-create the log file.

Being a Software Engineer myself I can speculate there is code in the Toad program that does something like this:

Procedure WriteTodb2diagLog(Information: String);  
Begin  
FileName = "C:\ProgramData\IBM\DB2\DB2COPY1\DB2\db2diag.log";  
If Exists(FileName )  
Try  
FileName.Append(Information)  
Except  
Application.Terminate;  
End;  
End;

So in Summary, db2diag.log became corrupt and no longer was able to be written to and deleting it solved the problem.

---

<div class="post-metadata">

**Author:** ![Julie\_Hyman](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/julie_hyman/32/13709_2.png) [@Julie\_Hyman](https://forums.toadworld.com/u/Julie_Hyman)\
**Post date:** [January 28, 2025, 4:31pm UTC](https://forums.toadworld.com/t/toad-closes-while-attempting-to-connect-to-database/60154/12 "2025-01-28T16:31:25Z")

</div>

Thank you for helping us diagnose this and for the time you spent on this. We have forwarded the case to dev
