AutoHotkey Community

It is currently May 26th, 2012, 11:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Can't create control
PostPosted: August 25th, 2005, 3:48 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi,

sometimes I'll get the Errormessage "Can't create control". It's hughe edit-control with a 33kb Reame inside. Interesting is, that this message only occurs when Photoshop is open. Well it can't be reproduced regulary, but if the message comes, than it won't stop until closing Photoshop. Well, Photoshop uses a lot of my 786 MB Memory.

_________________
Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2005, 2:09 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The message "Can't create control" occurs only when the following CreateWindowEx() call fails to create the Edit control:

control.hwnd = CreateWindowEx(exstyle, "edit", malloc_buf ? malloc_buf : aText, style, opt.x, opt.y, opt.width, opt.height, mHwnd, control_id, g_hInstance, NULL)

Since that's the only line that can cause this error, and since I don't see anything obviously wrong with it, it's probably an OS or memory issue. The only work-around I can think of is to add the text as a separate step after creating the control. In other words, create an empty Edit and then use GuiControl to add the text.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2005, 3:14 am 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi,

thanks, I'll try that.

_________________
Tekl


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group