Author Topic: File association: Error & Crash  (Read 8765 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
File association: Error & Crash
« on: February 20, 2006, 09:40:59 am »
Dear all,
I'm using revision 2044 under Windows (unicode) as of now. I'm not an administrator on my machine which might be related to the following problems:
1.) If I click in the settings dialog of C::B on the button "Manage..." file association C::B crashes immediately without even producing a crash report.
2.) If I run C::B as administrator (using the "Run as.." menu of the explorer) I receive an error: "XRC resource 'askAssoc' (class 'wxDialog') not found!". If I click on OK then C::B is frozen and can only be killed by the task manager.
Anyone else experiencing the same?
With regards, Morten.

Edit 2: Removed "Edit 1" because of mistake.
« Last Edit: February 20, 2006, 09:49:35 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: File association: Error & Crash
« Reply #1 on: February 20, 2006, 09:42:52 am »
confirmed

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: File association: Error & Crash
« Reply #2 on: February 20, 2006, 09:50:36 am »
It seems like Thomas forgot to add the dialog's XRC :P
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: File association: Error & Crash
« Reply #3 on: February 20, 2006, 09:54:30 am »
It seems like Thomas forgot to add the dialog's XRC :P
Alright! ...that would be the explanation why I cannot find any resource named "askAssoc"... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: File association: Error & Crash
« Reply #4 on: February 20, 2006, 11:42:47 am »
It seems like Thomas forgot to add the dialog's XRC :P
Not quite.... :)
It was there until you accidentially deleted it in revision 2043 :lol:

No worries, I'll re-add it.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: File association: Error & Crash
« Reply #5 on: February 20, 2006, 11:50:17 am »
2045 should work again.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: File association: Error & Crash
« Reply #6 on: February 20, 2006, 11:53:34 am »
It seems like Thomas forgot to add the dialog's XRC :P
Not quite.... :)
It was there until you accidentially deleted it in revision 2043 :lol:

No worries, I'll re-add it.

Hmm, it seems we 've just found a bug (?) in wxSmith.
You see, I edited env_settings.xrc using wxSmith but it seems that it doesn't support more than one top-level window (i.e. a second dialog defined in the same XRC).
Still, why didn't you just add a new XRC file? ;)
Be patient!
This bug will be fixed soon...

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: File association: Error & Crash
« Reply #7 on: February 20, 2006, 11:55:35 am »
Well, I thought it belongs to environment.
If you like, we can always separate it - luckily with XRC you don't have the same hassles as with adding new sources (breaking Linux compile).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: File association: Error & Crash
« Reply #8 on: February 20, 2006, 12:06:47 pm »
Moved it to its own XRC (manage_assocs.xrc).
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: File association: Error & Crash
« Reply #9 on: February 20, 2006, 01:15:36 pm »
Moved it to its own XRC (manage_assocs.xrc).
I can confirm that 2048 is working properly. This applies for being an Admin as well as for being a Non-Admin (User) on a Windows machine (thus different registry sections are used). The new dialog is a great enhancement for setting up the associations in addition. I noticed the "Fortran sources" as new file type as well. Good work though, well done!
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: File association: Error & Crash
« Reply #10 on: February 20, 2006, 01:33:17 pm »
There is one thing to note about that dialog. If you compile a development version, it will show everything unassigned, even if types *are* indeed assigned (to the other version). Also, if you enable automatic assoc checking with two different copies of Code::Blocks, they will be fighting over the associations on every application start (this has always been the case).

That "problem" arises because the application does not only check  whether or not a type is generally assigned, but also whether it is assigned with itself.

I was uncertain for quite a while whether this should be "fixed", and whether this is actually a bug or a misfeature. Finally, I settled it as "correct behaviour". Not only because it is a lot less work :lol: but also because it is really correct. You normally don't have two different versions of Code::Blocks running on the same machine, and if you install a new version, you're normally interested  mainly in that one, and having your files open in the wrong version although everything looks OK in the config dialog is a big turn-off.
If you really do have two versions regularly, you are either a developer (so you know about the issue) or you are doing something wrong.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: File association: Error & Crash
« Reply #11 on: February 20, 2006, 02:00:20 pm »
... or you like living on the 'cutting' edge, you use the stable version (in this case RC2 ;-) ), and you want to try out 'the latest and greatest' nightly build version.

I will post this issue (side effect) on the nightly build forum. I agree with you Thomas, no need to change the code for this issue.