Game Development Community

Torsion problem:: could not inject the debug hook

by Tim Kin Chu · in Torque Game Builder · 06/19/2006 (8:38 pm) · 6 replies

How to solve this??
it say the entry script was lock....

#1
06/19/2006 (8:53 pm)
Did you check to make sure main.cs is ReadWrite?

If the main.cs (in the Game Folder) is Read Only Torsion can't add the debug information on start
#2
06/19/2006 (8:57 pm)
Either your main.cs doesn't exist (or whatever entry script you specified in the project settings) or the main.cs is read only or currently locked by another application. Those are really the only two cases that could happen.
#3
06/20/2006 (6:27 pm)
This happens to me often. Its seems that when you exit a t2d app, it doesnt release the file or something. Then the file just disappears from the project. If I wasn't using source control, I would be pretty bummed out.
#4
06/20/2006 (6:31 pm)
@Steve - I've had people report script files mysteriously disappearing from their projects. I don't say this lightly, but after alot of testing i'm starting to think this is user error and not a Torsion bug. If you do happen to find a reproducible case of this please let me know ASAP!
#5
06/20/2006 (8:09 pm)
I have lost files a few times in Torsion. It was when I was first using Torsion (and has not happened since. Torsion and TGB have perform wonderfully for months now)

Both times the files vanished was when I had somehow hard-terminated both Torsion and TGB editor (This was TGB Beta 2 I think, and a version of Torsion 2 or 3 months ago)

The hard-termination was during a debug from Torsion and (a) I closed TGB process or TGB crashed and (b) Torsion crashed soon after probably because of the bad TGB close

The second time this happened I was "prepared" for it to a point. Torsion crashed and closed and I reopened it and it instantly complained about missing files in my project. MAIN.CS was missing from my project root in this case. The DSO was still there. I am pretty certain in the intermediate crash/reopen I did not delete the main.cs myself

Unfortunately (or fortunately for me!) I cannot reproduce this :(
#6
06/21/2006 (7:00 am)
Tom,
A little more detail for you . The only file that ever disappears is main.cs. The one which resides in the exe directory. I'll try to gather more data.