Hello all,
I am developing an application on Qt-4.6.2 on window platform.
I am using windows XP professional version 2002 with SP3.

Qt Code:
  1. struct {
  2. char Dir[_MAX_PATH];
  3. char Filter[128];
  4. } Param;
  5.  
  6. strcpy (Param.Dir, ".");
  7. strcpy (Param.Filter, "*");
  8.  
  9. QString f = Q3FileDialog::getSaveFileName (Param.Dir, Param.Filter, 0, 0, Title); // crash
To copy to clipboard, switch view to plain text mode 

Here the application is crashing on the last line of code.

Here are some of my observations:

1) QString f = Q3FileDialog::getSaveFileName ("", Param.Filter, 0, 0, Title);
-- OK Works fine

2) QString f = Q3FileDialog::getSaveFileName (" ", Param.Filter, 0, 0, Title);
-- Crash

3) QString f = Q3FileDialog::getSaveFileName ("C:\\", Param.Filter, 0, 0, Title);
-- Crash

Interestingly when I tried the same application with same dlls on my colleague's machine, it is working fine with all options(mentioned above 1,2,3) .

The similar situation arise with Q3FileDialog::getOpenFileName() function also.

Please provide me any help regarding this issue.









it works fine.