Opened 5 years ago

Closed 5 years ago

#130 closed defect (fixed)

Clicking HTTP links doesn't start the browser

Reported by: dmik Owned by:
Priority: major Milestone: Qt 4.6.2
Component: QtGui Version: 4.5.1 GA
Severity: low Keywords:
Cc:

Description

A user reports that he is unable to start the browser by clicking on HTTP links in Qt applications although it has correctly set up the path to the broser executable in HINI_USER_PROFILE\WPURLDEFAULTSETTINGS.

Change History (3)

comment:1 Changed 5 years ago by dmik

The research has shown that this is due to QProcess::startDetached() not actually working again. Further research has shown that we found the first bug due to switching to -Zhigh-mem (high memory support for the LIBC heap): DosStartSession? seems to not be able to work with high memory data blocks pointed to at least through the PgmName? and PgmInputs? members of the STARTDATA structure (probably all other pointers must be in low memory too).

The solution is to use _tmalloc() that will always allocate data in low memory.

BTW, there is another small bug in QProcess::startDetached() on OS/2: it will return garbage as PID. In OS/2, the PID of the process started in the independent session is not known so we should return 0 (and mention it in the docs).

comment:2 Changed 5 years ago by dmik

According to Knut, lmalloc() is the right function for low memory allocation. tmalloc() stands for the tileable malloc.

comment:3 Changed 5 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

All fixed in r600, r601.

Note: See TracTickets for help on using tickets.