Opened 15 years ago
Closed 15 years ago
#130 closed defect (fixed)
Clicking HTTP links doesn't start the browser
Reported by: | Dmitry A. Kuminov | 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 by , 15 years ago
comment:2 by , 15 years ago
According to Knut, lmalloc() is the right function for low memory allocation. tmalloc() stands for the tileable malloc.
Note:
See TracTickets
for help on using tickets.
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).